Questions
C++ Summary To make telephone numbers easier to remember, some companies use letters to show their...

C++

Summary

To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be shown as GET LOAN.

In some cases, to make a telephone number meaningful, companies might use more than seven letters. For example, 225-5466 can be displayed as CALL HOME, which uses eight letters.

Instructions

Write a program that prompts the user to enter a telephone number expressed in letters and outputs the corresponding telephone number in digits.

If the user enters more than seven letters, then process only the first seven letters.

Also output the - (hyphen) after the third digit.

Allow the user to use both uppercase and lowercase letters as well as spaces between words.

Moreover, your program should process as many telephone numbers as the user wants.

Use the dialpad below for reference:

The program should accept input and produce output similar to the example program execution below.

Enter Y/y to convert a telephone number from
letters to digits.
Enter any other letter to terminate the program.
Y
Enter a telephone number using letters: Hello world

The corresponding telephone number is:
435-5696
To process another telephone number, enter Y/y
Enter any other letter to terminate the program.
z

In: Computer Science

There are some basic steps in a criminal trial. I want you to walk me through...

There are some basic steps in a criminal trial. I want you to walk me through a trial and then I want you to tell me what you consider to be the most important step and support your thoughts using our library databases.

In: Operations Management

1. What are the primary functions of computer technology in the dentist’s office? In your answer,...

1. What are the primary functions of computer technology in the dentist’s office? In your answer, refer to clinical, administrative, and special-purpose applications.

2. Discuss the advantages and disadvantages of using virtual reality simulations in health care education. Provide examples.

3. Given the many uses of information technology in health care today, anyone entering a health care field must be computer literate and computer competent. Discuss this statement and provide examples.

In: Operations Management

c++ Create a one-dimension array, y, of this struct data type with a length 4. Pass...

c++

Create a one-dimension array, y, of this struct data type with a length 4. Pass y into a function: PrintArrayElement( …). Finish the interface of this function, and loop over each array element inside this function

In: Computer Science

indira was recently promoted to a functional manager position. what challenges will indira face in setting...

indira was recently promoted to a functional manager position. what challenges will indira face in setting goals for her new new subordinates ?

In: Operations Management

BUSINESS LAW: Roderick’s of Burbank, Inc., is a corporation selling lingerie. Roderick’s is incorporated in the...

BUSINESS LAW: Roderick’s of Burbank, Inc., is a corporation selling lingerie. Roderick’s is incorporated in the State of Delaware; it has its headquarters in the State of California; it is registered to do business in Nevada, New Jersey, and Indiana. Roderick’s has repeatedly sent sales representatives into the states of Georgia, Alabama, and Mississippi. It has also, on one occasion, published newspaper advertisements in Rhode Island and Massachusetts. In which states will Roderick’s be subject to in personam jurisdiction? Bonus hint: Look at the International Shoe case.

In: Operations Management

Suppose you're in charge of establishing economic policy for this small island country. Which of the...

Suppose you're in charge of establishing economic policy for this small island country.

Which of the following policies would lead to greater productivity in the fishing industry? Check all that apply.

Imposing a tax on fishing poles

Imposing restrictions on foreign ownership of domestic capital

Sharply increasing the interest rate on student loans to people pursuing advanced degrees in fishing

Offering free public education to every worker in the country

In: Economics

Tom was named the department manager of a large new chemical processing unit to be designed...

Tom was named the department manager of a large new chemical processing unit to be designed and constructed. During the course of his work, Tom suggested to the project designer an alteration to the design that considerably improved safety. After Tom's suggestion has been successfully implemented, Tom was offered a very nice fishing trip to South America by his upper manager for his solution. Should Tom accept the fishing trip? Discuss why or why not tom should accept or decline the gift? Is it bribe or not and why? Write the related NSPE code(s) of ethics.

In: Psychology

What is the purpose of the Product Life Cycle? Identify and explain the four stages of...

What is the purpose of the Product Life Cycle? Identify and explain the four stages of the product life cycle. In your response, be sure to include an indication of how sales, profits, product, price, promotion and place change with each stage. Explain what marketers can do to extend the length of the product life cycle? Provide examples to showcase your ideas.

In: Operations Management

23. What are the three steps in recovering debt? 1. 2. 3.

23. What are the three steps in recovering debt?

1.

2.

3.

In: Operations Management

dentify historical beliefs about the sources of mental illness (along with their proposed treatments), including: wandering...

dentify historical beliefs about the sources of mental illness (along with their proposed

treatments), including: wandering uterus, humorism, supernatural and religious causes

in the middle ages and during the witch hunts

Identify important shifts in mental health care, such as the care provided at from St.

Mary’s of Bethlehem vs. the care provided in the Paris asylum (Pinel) and in the York

Retreat (Tuke)

In: Psychology

You are a given an array of n elements, design an algorithm to find the minimum...

You are a given an array of n elements, design an algorithm to find the minimum element and the 2nd minimum element in the array using as few comparisons as possible.

For example, A[] can be [5, 6, 7, 3, 2, 1]. You should output 1 as minimum, 2 as 2nd minimum element in the array, and at the same time, minimize the number of comparisons used.


(i) describe the idea behind your algorithm in English
(ii) provide pseudocode
(iii) How many comparisons does your algorithm make?

In: Computer Science

1. The ability to adapt to a changing environment will often dictate the success or failure...

1. The ability to adapt to a changing environment will often dictate the success or failure of a team. Why it is important to develop team members?

In: Operations Management

system requiremnt specification about laundry system

system requiremnt specification about laundry system

In: Computer Science

What is the importance of knowledge in relation to health and life chances ?

What is the importance of knowledge in relation to health and life chances ?

In: Psychology