Question: Given the following table, answer all questions: Class ID 101 102 103 Score 550.5 650.3 369.5 Declare one-dimensional arrays to store Class ID and Score.

Given the following table, answer all questions:

Class ID

101

102

103

Score

550.5

650.3

369.5

  1. Declare one-dimensional arrays to store Class ID and Score. Class ID array is an integer-type array. Meanwhile, Score array is a floating-type array. Initialize all elements to the arrays.

(2.5 marks)

Answer:

  1. Write the program segment to calculate and display the total score for all classes.

(2.5 marks)

Answer:

  1. Write a function definition using function findHighest(), find the Class ID that scored the highest score. Display both the Class ID and the highest score.

(5 marks)

answer in C++

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!