Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using c++ You are asked to write a program that keeps track students' results using a vector. Your program will read a set of students'
using c++
You are asked to write a program that keeps track students' results using a vector. Your program will read a set of students' results (note: a result may contain decimal point, e.g., 83.34) until an out-of-range number is entered (i.e., a number less than 0 or greater than 100). It then determines the grades and provides a summary of all results. (Please read scenarios on the following page to see how the program works) Assumption: The user will not enter more than 10 results (But, he could enter less than 10 results) The user always enters numbers. A result is a number with or without decimal points falling between 0 and 100 inclusively Requirements: No global variables are allowed (-100% if any global variable is used unless it is a constant variable) Use function prototyping technique so that the main function is always the first function in your program Use vector to keep track students' results (-75% if vectors are not used. However, you may use array operation when manipulating the content of the vector) Use loop(s) in your program Use 1 procedure (a procedure is a function of void return type) and 3 functions to implement your solution The procedure/function should be designed in such a way that it can be re-used by other programs Write a procedure named "determine_grade". For each result entered, the program will call this procedure and display its grade Grade A Grade EB Grade C Grade F 80-100 (inclusive) 70 - 79 (inclusive) 60 - 69 (inclusive) 0 - 59 (inclusive) Write a function named "calc_average" that takes the vector and returns the average of the results Write a function named "find_highest" that takes the vector and returns the highest of the results Write a function named "find lowest" that takes the vector and returns the lowest of the results In the summary, all numbers must be formatted with 2 decimal points when they are displaved (e.g 66.66, 78.50, 34.00)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started