Question
Input data: http://pastebin.ca/3374639 C++ Program using Structs, and functions outside main. You are to write a program that will read the input file (must read
Input data: http://pastebin.ca/3374639
C++ Program using Structs, and functions outside main.
You are to write a program that will read the input file (must read into struct) abobe in for up to 15 students with student information and grades. Your program will compute an average and print out certain reports.
Format: The information for each student in on separate lines of input. The first data will be the students ID number, next the students classification, next line is the students name and the last line are the 9 grades where the last grade is a final and is to be counted twice.
Read in the students, compute their averages and print out the following reports:
Print out each student ID and their average.
Print out all the Seniors in a list with their name and average.
Print out all the Juniors in a list with their name an average.
Sort the students on ID and print out ID and average.
Print out the class average, (average of the averages.)
Be sure to label each list and line up all output in straight columns. (No waves)
Input file: http://pastebin.ca/3374639
Example of inputs are given below.
Example input
12345
Junior
tom archer jones
89 90 95 90 95 100 85 90 95
51321
Senior
dewy luewey
90 95 100 100 95 95 95 100 95
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