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 |
- 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:
- Write the program segment to calculate and display the total score for all classes.
(2.5 marks)
Answer:
- 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
Get step-by-step solutions from verified subject matter experts
