Question: When it is complete, the program will ask the user to enter the width and length of a rectangle and then display the rectangles area.

When it is complete, the program will ask the user to enter
the width and length of a rectangle and then display the rectangles area.

The program calls the following functions, which have not been written:
getLength This function should ask the user to enter the rectangles length and
then return that value as a double .
getWidth This function should ask the user to enter the rectangles width and then
return that value as a double .
getArea This function should accept the rectangles length and width as argu-
ments and return the rectangles area. The area is calculated by multiplying the
length by the width.
displayData This function should accept the rectangles length, width, and area
as arguments and display them in an appropriate message on the screen.

 When it is complete, the program will ask the user to

length by width the displayData - This function length, width, and area as arguments and display ther the screen. Compare your output before y Enter the length: 4 Enter the width: 5 Rectangle Data Length: 4 Width: 5 Area: 20 Enter the length: 6.5 Enter the width: 7.8 Rectangle Data Length: 6.5 Width 7.8 Area: 50.7

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!