Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the output must be exact as shown in pic About I would like a program that will read in student's information and allow me to

the output must be exact as shown in pic image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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 36.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: a: add a Student TE remove a student PI print the class summary mi print menu 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: a: add a Student r: remove a Student p: print the class summary m: print menu q: quit program selection: a: add a student Add a student to the end of the Student Vector and their grade to the end of the grade vector . When asking the user for student info make sure to print Please enter student (First Last Grade) Info: remove a student Ask the user for the name of the student they would like to remove When removing a student make sure that the corresponding grade is also removed from the grade vector How to use vectors remove function p Print the class summary m Print the menu . q Quit the program (exit the loop) NOTE Print Not a valid selection. If the user types something other than these options Clans Summary Name Grade Tony Stark Bruce Banner Peter Parker Diana Prince Janet Dyne 87.6 93.5 94.4 100 86.3 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: 5 Average Grade: 92.36 - You can assume Student names will be less than or equal to 20 characters in length o lomanip and setw 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 876 Bruce Banner 93.5 Peter Parker 94.4 Diana Prince 100 Janet Dyne 86.3 P 9 C Aunt Foster 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) info: 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: at add a student I remove a student p! print the class summary m: print menu g. 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 (Eirst 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 : remove a student p! print the class summary mprint 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

What is a questionnaire, and what functions does it serve?

Answered: 1 week ago