Question: Complete Project 5 . 1 . Write a program that asks the user to enter a number of pounds and then prints the equivalent number

Complete Project 5.1.
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.
Make sure your file name is main.cpp
Adhere to Programming with Style, Initial File Comments and Inline Comments and Style Conventions.
Keep in mind that Style Conventions is weighted on grading schema.
Do not use any advance features that have not been covered in this course.
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.
Sample output:
Is there a pounds to convert (Y or N)? Y
enter pounds: 4
4 pounds is 64 ounces.
Is there another pounds to convert? Y
enter pounds: 3
3 pounds is 48 ounces.
Is there another pounds to convert? Y
enter pounds: 2
2 pounds is 32 ounces.
Is there another pounds to convert? N

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 Programming Questions!