Question: in c++ Write a program that asks the user to enter a number of pounds and then prints the equivalent number of ounces. (1 pound

in c++

Write a program that asks the user to enter a number of pounds and then prints the equivalent number of ounces. (1 pound is 16 ounces.) Then, rewrite the program so that it repeats itself until the user wants to quit. Use a question-type loop. Make sure to follow the patterns introduced in the lesson closely, and make sure that you assume that the user may not want to execute the loop even once.

Examples of input and output are as follows:

input:

Y

4

Y

3

Y

2

N

Output:

Is there a pounds to convert (Y or N)? enter pounds: 4 pounds is 64 ounces. Is there another pounds to convert? enter pounds: 3 pounds is 48 ounces. Is there another pounds to convert? enter pounds: 2 pounds is 32 ounces. Is there another pounds to convert?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!