Question: Write the code in the main function to do the following tasks: Declare an array to store up to 20 scores whole numbers. Declare another

Write the code in the main function to do the following tasks:

Declare an array to store up to 20 scores whole numbers.

Declare another array to store up to 20 GPAs real numbers.

Partially fill the arrays in a loop use two sentinel value -1 and -1 to end the data entry.

After the loop, display the number of entries in the arrays.

Write a loop to display both arrays to the screen in 2 columns provide column headers.

Compute the average score display it to the screen.

Use sequential search to display all the scores >= 70.

Inform the user if search fails.

Use sequential search to find the unique GPA = 4.0.

Inform the user if search fails.

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!