Question

Please help me with this program.You are to write a C++ program that will read in...

Please help me with this program.You are to write a C++ program that will read in 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 is on separate lines of input. The first data will be the student�s ID number, next line is the students name, next the students classification, and the last line are the 10 grades where the last grade is to be counted twice (final).

Read in the students, compute their averages and print out the following:

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 is NameStruct.txt

Example of inputs are given below.

Example input

                                12345

                                Junior

                                tom archer jones    

                                89 90 90 95 90 95 100 85 90 95

                                51321

                                Senior

                                dewy luewey

                                90 95 100 100 100 95 95 95 100 95

NameStruct.txt file contents:

12345
Junior
Two B Orknot
85 68 85 84 95 100 86 87 85
81032
Senior
Mack Camp
77 73 77 79 80 73 76 73 78
71433
Senior
Cant Never Koud
88 89 83 80 93 95 97 99 100
55231
Junior
Two N Finitee
95 95 100 85 85 70 85 90 85
18382
Junior
Eve N Ghigher
100 100 100 100 100 100 100 100 100
74223
Senior
Tow Jammer
93 88 77 66 77 86 89 95 92
45322
Senior
Uh Nuther
95 90 85 80 70 80 85 90 85
82843
Senior
Lue Knew Lotts
98 99 97 100 100 99 96 96 97
39932
Junior
Ah C Moto
65 67 70 77 73 69 70 66 67
81399
Junior
Too Much
83 84 88 77 88 88 73 75 80
99392
Senior
Just Abot Done
75 80 77 77 77 80 82 79 80
13929
Senior
Al Dah Zame
90 90 90 90 90 90 90 90 90
72221
Junior
Tu Phinish Awf
100 95 90 85 80 75 70 65 60

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Please help me with this program.You are to write a C++ program that will read in...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • C++: Create a grade book program that includes a class of up to 20 students each...

    C++: Create a grade book program that includes a class of up to 20 students each with 5 test grades (4 tests plus a Final). The sample gradebook input file (CSCI1306.txt) is attached. The students’ grades should be kept in an array. Once all students and their test scores are read in, calculate each student’s average (4 tests plus Final counts double) and letter grade for the class. The output of this program is a tabular grade report that is...

  • write a program that uses a function to read in the grades for four classes and...

    write a program that uses a function to read in the grades for four classes and then uses a function to calculate the average grade in each of the classes. input the grades for one student. we will name her Beverly. output how Beverly's grade differs from each classe average. Make sure that your output is very clear. Below is your data: English 90 70 85 45 95 95 82 97 99 65 History 63 94 60 76 83 98...

  • using java Program: Please read the complete prompt before going into coding. Write a program that...

    using java Program: Please read the complete prompt before going into coding. Write a program that handles the gradebook for the instructor. You must use a 2D array when storing the gradebook. The student ID as well as all grades should be of type int. To make the test process easy, generate the grade with random numbers. For this purpose, create a method that asks the user to enter how many students there are in the classroom. Then, in each...

  • A statistics instructor recorded the grades of his students on the final exam. The grades are:

    A statistics instructor recorded the grades of his students on the final exam. The grades are: 65, 72, 85, 92, 60, 52, 75, 79, 80, 89, 50, 59, 95, 99, 89, 77, 62, 65, 67, 73, 85, 23, 89, 94, 97 a. Construct a stem-and-leaf display. b. Describe the shape of the distribution. c. Deterinine the mode and median of these scores. d. What percentage of the students passed (at least a 70).

  • A teacher wanted to see if social anxiety affects performance on an oral assignment. To examine...

    A teacher wanted to see if social anxiety affects performance on an oral assignment. To examine this, students completed social anxiety scales and were classified into “low,” “average,” and “high” levels of social anxiety. The data presented in the table below are the oral presentation grades (in percentages) earned by the 45 students separated by their social anxiety classification. Conduct the most appropriate statistical analysis to determine whether grades on the oral assignment differed based on level of social anxiety....

  • An article of the American Journal of Clinical Pathology, by Metz et al. (A-4) published the...

    An article of the American Journal of Clinical Pathology, by Metz et al. (A-4) published the comparison of three methods to determine the percentage of dysmorphic erythrocytes in the urine. They obtained the following results when using the A (X) and B (Y) methods in 75 urine samples. Draw a scatter diagram and obtain the regression equation and graph it on the diagram. X            Y            X            Y            X            Y            X            Y 0            0            20          16          65          55          89          81 0           ...

  • Consider the below matrixA, which you can copy and paste directly into Matlab.

    Problem #1: Consider the below matrix A, which you can copy and paste directly into Matlab. The matrix contains 3 columns. The first column consists of Test #1 marks, the second column is Test # 2 marks, and the third column is final exam marks for a large linear algebra course. Each row represents a particular student.A = [36 45 75 81 59 73 77 73 73 65 72 78 65 55 83 73 57 78 84 31 60 83...

  • 5. Mark’s class just took the admission test for business school and averaged 87.05. Chapter 10...

    5. Mark’s class just took the admission test for business school and averaged 87.05. Chapter 10 Data Set 2 contains the population of scores for the 10 other classes in Mark’s university. How did Mark’s class do? Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 78 81 96 85 88 78 90 79 96 86 77 78 97 90 88 82 86 93 87 89 78 93 88...

  • please use the c language Assignment 12 The program to write in this assignment is a...

    please use the c language Assignment 12 The program to write in this assignment is a program that calculates score statistics and manages the grades of the students. First, the student list and are given in a file named "student.dat" as in the following: 이성우 77 홍길동 88 scores 201 1710086 2012700091 This program reads the input file "student.dat" and keeps this data in a linear linked list. Each node must be a struct which contains the following: student id...

  • Microsoft Excel Question. I'm having trouble using the vlookup function, I have calculated a final numerical...

    Microsoft Excel Question. I'm having trouble using the vlookup function, I have calculated a final numerical grade for a hypothetical course, and and trying to use a set of numerical grades with their corresponding letter grades to get a vlookup function to return the letter grade from the numerical grade. However the function for some reason only returns the lowest value out of the set grades, not the closest match. Projects Classwork Teamwork/Integrity 100 100 A+ 98 A+ 97 A...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT