Question: Create a C++ program that shall ask the user to input the length and width of a rectangle and outputs both the perimeter and the

Create a C++ program that shall ask the user to input the length and width of a rectangle and outputs both the perimeter and the area. The program should respond with Wrong Input. if the user enters a parameter that is <= 0. The program also outputs This is a square! if both parameters are equal.

Provide executions for L=6 and W=7, L=0 and W=10, L=5 and W=-1, L=3.5 and W=3.5.

The program should keep soliciting input from the user and doing the computations until the user says to quit (hint: ask the user whether to continue or quit).

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!