Question: About I would like a program that will read in student's information and allow me to print a summary based on different options Specifications This




About I would like a program that will read in student's information and allow me to print a summary based on different options Specifications This program will consist of two parts. The first part will read in a Students information from standard in (user entered). The second part of the program is a menu that will allow the user to interact with the students information Part 1 . Ask the user for how many students are in the class Using the Vector library create a vector of Strings to hold the students names. Create a vector of type double to hold a students grade average Loop through the users input and fill in the student and grade vectors When asking the user fodstudent info make sure to print Please enter student (First Last Grade) info: Users input will have the following format Tony Stark 87.6 Bruce Banner 93.5 Peter Parker 94.4 Diana Prince 100 Janet Dyne 86.3 NOTE When storing first and last name in the vector they must be in the same element for each student. For example if I were to execute student vector at (0) I would get back Tony Stark" Part 2 Print the following to the user and read in their selection Thank you for entering your students information! Please choose one of the following options: as add a Student Tremove a student PH print the clos Summary mi print menu NOTE: Print Not a valid selection. If the user types something other than these options Class Summary Name Grade Tony Stark Bruce Banner Peter Parker Diana Prince Janet Dyne 87.6 93.5 94.4 100 86.3 Number of Students: Average Grade: 92.36 You can assume Student names will be less than or equal to 20 characters in length o lomanip and set can be used to create the columns Average Grade must be printed with 2 decimal places. For example 100 must be printed as 100.00 Fixed and Set Precision can be used to accomplish this Sample Run Using input 5 Tony Stark 87.6 Bruce Banner 93.5 Peter Parker 94.4 Diana Prince 100 Janet Dyne 86.3 P CPV Asunt poster zyBooks catalog Sample Run Using input 5 Tony Stark 87.6 Bruce Banner 93.5 Peter Parker 94.4 Diana Prince 100 Janet Dyne 86.3 9 Output is Welcome to the student roster! How many students are in your class?: Please enter student (First Last Grade) info: Please enter student (First Last Grade) info: Please enter student (First Last Grade) infor Please enter student (First Last Grade) Info: Please enter student (First Last Grade) into: Thank you for entering your students information! Please choose one of the following options: a: add a student I remove a student p: print the class summary n: print menu gi quit program selection: Class Summary Name Grade Tony Stark Bruce Banner Peter Parker 87.60 93.50 94.40 Welcome to the student roster! How many students are in your class?: Please enter student (First Last Grade) info: Please enter student (First Last Grade) info: Please enter student (First Last Grade) info: Please enter student (First Last Grade) info: Please enter student (First Last Grade) info: Thank you for entering your students information! Please choose one of the following options: a: add a student r: remove a student P: print the class summary m: print menu q: quit program selection: Class Summary Name Grade Tony Stark Bruce Banner Peter Parker Diana Prince Janet Dyne Number of Students 87.60 93.50 94.40 100.00 86.30 5 Average Grade: 92.36 selection
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
