Question: EXERCISE 5 ( a ) Create an array of type float called Square that has 3 rows and 2 columns. ( b ) For each

EXERCISE 5
(a) Create an array of type float called Square that has 3 rows and 2 columns.
(b) For each Square, get the measurements.
(c) Send the array Square to function calculate(...).
(d) In function calculate(...) calculate and display the area for each square.
Measurement for Square 1
Enter measurement 1: 2
Enter measurement 2: 3
Measurement for Square 2
Enter measurement 1: 4
Enter measurement 2: 5
Measurement for Square 3
Enter measurement 1: 6
Enter measurement 2: 7
Measurement 1:2.00
Measurement 2:3.00
Area for Square 1: 6.00
Measurement 1:4.00
Measurement 2:5.00
Area for Square 2:20.00
Measurement 1:6.00
Measurement 2:7.00
Area for Square 3:42.00
Press any key to continue

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!