Questions
def main():     # keeping asking user for a word or name until user enters 0    ...

def main():
    # keeping asking user for a word or name until user enters 0
   
while True:
        word = input('Enter a word/name to convert (enter 0 to quit): ').upper()
      if word == '0': break
       
print(convert_to_soundex(word))

Whenever i try to run the program it tells me unintend doesn't match any outer identation level !!!!

In: Computer Science

HCl and H2SO4 Identify the poster’s two additional molecules (HCl and H2SO4) as ionic or covalent...

HCl and H2SO4

  • Identify the poster’s two additional molecules (HCl and H2SO4) as ionic or covalent and then name them according to IUPAC rules.
  • Discuss how you identified each as ionic or covalent and how you named each.
  • Provide the common name for each molecule, if possible.
  • Explain what each molecule is and how it can be used or where it is found.

In: Chemistry

Write a java program which asks the user to enter name and age and calls the...

  1. Write a java program which asks the user to enter name and age and calls the following methods:
    1. printName(): Takes name as parameter and prints it 20 times using a while loop.
    2. printAge(): Takes age as parameter and prints all the numbers from 1 up to age.

  1. Write a java program that will print first 10 multiples of 3 in a single line.

In: Computer Science

complete a pseudocode for the program specifications be sure to declare the contants and it contains...

complete a pseudocode for the program specifications be sure to declare the contants and it contains only 1 if-else statement


You need a program that will calculate the cost of movie tickets. Input will consist of the customer’s name and age. The output is to consist of the customer’s name and ticket cost. If the age is 12 or less, the ticket cost is $5.00. If the age is over 12, the ticket cost is $8.95.

In: Computer Science

HTML 5 (Website Registration Form with Optional Survey) Create a website registration form to obtain a...

HTML 5

(Website Registration Form with Optional Survey) Create a website registration form to obtain a user’s first name, last name and e-mail address. In addition, include an optional survey question that asks the user’s year in college (e.g., Freshman). Place the optional survey question in a details element that the user can expand to see the question.

In: Computer Science

What types of research projects can you think of Cognitive Science? For example, an example of...

What types of research projects can you think of Cognitive Science?

For example, an example of a very famous research project is Dr. Rosalind Picard's Affective computing and autism project. Can you think of 5 research projects that are Cognitive Science research projects? Please include the name of the professor and the name of the university where the research project is being conducted.

In: Psychology

*MATLAB* Ch8E23 Design a nested struct to store information on constellations for a rocket design company....

*MATLAB*

Ch8E23

Design a nested struct to store information on constellations for a rocket design company. Each structure should store the constellation's name and information on the stars in the constellation. The structure for the star information should include the star's name, core temperature, distance from the sun, and whether it is a binary star or not. Create variables and sample data for your data structure.

In: Computer Science

Discussion-Emergent Literacy and Mathematics Share two activities you would design to foster emergent literacy in the...

Discussion-Emergent Literacy and Mathematics

Share two activities you would design to foster emergent literacy in the preschool classroom (e.g., writing each kids' name on the board every day so they begin to recognize the look of their name). Also list two activities for promoting emergent mathematics in the classroom. Write 2-3 paragraph to discuss about this.

In: Psychology

Zynga, located in San Francisco, California, had become a dominant player in the online gaming field,...

Zynga, located in San Francisco, California, had become a dominant player in the online gaming field, almost entirely through the use of social media platforms. The company name was established by the founder and original CEO, Mark Pincus, to pay tribute to his late beloved pet bulldog, named Zinga. Although this seems whimsical, Zynga had quickly become a powerful company. To exemplify Zynga’s prominence, Facebook was reported to have earned roughly 12 percent of its 2011 revenue from the operations of Zynga’s virtual merchandise sales. On the basis of this success, Zynga had gone public in December of 2011.

Zynga had been a dominant force, but had lost market share in recent years due to the absence of a new and innovative product pipeline. Lack of new product-driven growth had led to uneven revenues, with significant losses – over $108 million in 2016. Even though Zynga had released some new mobile games, which accounted for 73 percent of the company’s revenue in 2015, this was not enough to reverse declines from the existing product lineup.

Zynga’s long term viability may be at risk because of questionable decision making. Many of Zynga’s competitors, and even some partners, had been displeased with the company’s actions and had shown it in the form of litigation. Agincourt, a plaintiff of a lawsuit brought against Zynga, was quoted as saying, “Zynga’s remarkable growth has not been driven by its own ingenuity. Rather it has been widely reported that Zynga’s business model is to copy creative ideas and game designs from other game developers and then use its market power to bulldoze the games’ originators.” Zynga had been accused of copyright infringement, breach of written contract, and, internally, had a reputation for a risk-averse company culture that failed to reward innovation and creativity. Regarding its users, complaint resolution consisted of email-only support, and there was concern that customer information was not being properly protected against unauthorized access.

To make matters worse, Zynga had had four CEO changes since 2013, with the most recent one, Frank Gibeau from Electronic Arts, installed in March of 2016, now expected to turn the company around. Although Zynga had once been a dominant force on Facebook, by 2016 it had failed to surface in the top 5 virtual-gaming rankings, with users increasingly choosing to play King Company’s Candy Crush Saga and others.

As Zynga looks to the future, where will its next big hit come from? With all the criticism aimed at Zynga’s past behavior, will the company continue on the path it has become notorious for and reap further accusations of imitating its competitors’ games and putting customers potentially at risk? Or will Zynga change its approach, gain a reputation for intellectual integrity and begin creating true one-of-a-kind games—showing its capa­bilities as a leader in the industry rather than a follower?

  1. Does the organization have positive personal and professional relationships among employees and alliance partners?

In: Accounting

Advanced Inheritance Concepts (Exercise 7) The Cullerton Park District holds a mini-Olympics each summer. Create a...

Advanced Inheritance Concepts (Exercise 7)

The Cullerton Park District holds a mini-Olympics each summer. Create a class named Participant with fields for a name, age, and street address. Include a constructor that assigns parameter values to each field and a toString() method that returns a String containing all the values. Also include an equals() method that determines two participants are equal if they have the same values in all three fields.

Create an application with two arrays of at least eight participants each—one holds participants in the mini-marathon, and the other holds participants in the diving competition. Prompt the user for participant values. After the data values are entered, display values for participants who are in both events.

Participant.java

public class Participant
{
// private variables here

public Participant(String n, int a, String add)
{
// constructor code here
}
public String getName()
{
// method code here
}
public int getAge()
{
// method code here
}
public String getAddress()
{
// method code here
}
public String toString()
{
// method code here
}
public boolean equals(Participant p)
{
// method code here
}
}

TwoEventParticipant.java

import java.util.*;
public class TwoEventParticipants
{
public static void main(String[] args)
{
Participant marathoners[] = new Participant[8];
Participant divers[] = new Participant[8];
int i, j;
String name;
int age;
String address;
Scanner input = new Scanner(System.in);
System.out.println("Enter mini-marathon participants");
for(i = 0; i < marathoners.length; ++i)
{
System.out.print("Enter name: ");
name = input.nextLine();
System.out.print("Enter age: ");
age = input.nextInt();
input.nextLine();
System.out.print("Enter address: ");
address = input.nextLine();
marathoners[i] = new Participant(name, age, address);
}
System.out.println("\nEnter diving participants");
for(i = 0; i < divers.length; ++i)
{
System.out.print("Enter name: ");
name = input.nextLine();
System.out.print("Enter age: ");
age = input.nextInt();
input.nextLine();
System.out.print("Enter address: ");
address = input.nextLine();
divers[i] = new Participant(name, age, address);
}   
System.out.println("\nParticipants who are in both events:");
for(i = 0; i < marathoners.length; ++i)
for(j = 0; j < divers.length; ++j)
if(marathoners[i].equals(divers[j]))
System.out.println(marathoners[i].toString());
}
}

Possible Answer:

Participants who are in both events:

Participant_2

10

Apartment No. 2

Participant_6

13

Apartment No. 6

Participant_7

13

Apartment No. 7

In: Computer Science