Write a C++ program, in space given below, that implements following functionality: a) Asks user the number
Fantastic news! We've Found the answer you've been seeking!
Question:
a) Asks user the number of students in class and creates a dynamic array of doubles of that size.
b) Asks user each student's grade (range is 1-100) and stores in array created in step 1.
c) Calculates average of class.
d) Stores the information in a file named "class_grades.dat" - all grades on first line separated by spaces and average on the second line.
e) Reads from the file and displays class average only (You must read from file).
f) Handles any potential exceptions e.g. unable to create or read file.
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date: