Question: C++ 5. Write a complete C++ program that will prompt the user to input the length and width of a room and calculate and display

C++  C++ 5. Write a complete C++ program that will prompt the

5. Write a complete C++ program that will prompt the user to input the length and width of a room and calculate and display the area of that room. Screen sample (bold is user input) Please enter length of your room (in feet): 10 Please enter width of your room (in feet): 12 The area of your room is 120 square feet The perimeter of your room is 44 feet Do not perform computation in a cout statement. The text, spacing and line spacing should look exactly as shown. 6. Write a program reads a number of cents entered by the user. It computes the number of dollars, quarters, dimes, nickels and pennies in that many cents. HINT: Add variables for the other denominations of coins but reuse the left over variable for the remainder at each point. A sample run might be (user input in bold): Enter a number of cents: 234 234 Total cents Number of dollars: 2 Number of quarters: 1 Number of dimes: 0 Number of nickels 1 Number of pennies: 4

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!