2023 1 Create a menu system that does the followingAccepts input valid input for numbers 1 | Assignment Collections

Computer Science 2023 Programming

2023 1 Create a menu system that does the followingAccepts input valid input for numbers 1 | Assignment Collections

1.Create a menu system that does the followingAccepts input valid input for numbers 1, 2, 3, 4, 5 and X. Create the following prompt filling in your own messages for xxxxx.

Press 1 to xxxxx

Press 2 to xxxxx

Press 3 to xxxxx

Press 4 to xxxxx

Press 5 to xxxxx

Press X to Exit

Use a do while loop to get input and a switch statement to validate the input. Hint use a char data type for the input.Display an appropriate error message if user does not give a valid input. 

Display the selection with an appropriate message.

SAVE as midtermprogram1.cpp

—————————————————–

2.   Create a grading program that does the following

Uses a for loop by using a program defined amount to get names and grades of the students 

Use a const int to determine how many students in the for loop. Number of students should be between 3 -5). 

Use the following arrays

string names[num or students];

int grades[num or students];

Use the following functions 

void getNames[string []);

void getGrades[int []);

int getOneGrade() – returns the grade of the student;

Call the getNames functions to input the names of the students using for loop

Loop will begin by getting the name of the student using getline.

cout << “Please enter your name: “; 

getline(cin, name[i]);

Next use a for loop to get all of the grades, 

get the grade for each student using grade[i] = getOneGrade();

getOne Grade should use a prompt, cin and then a do while loop that forces the user to put in a valid input between 0 and 100. Use const int LOW_GRADE and HIGH_GRADE

Note – No 2 grades should be the same in order to do the bonus section. 

Remember to do an ignore before the cin to get the grade.

cin.ignore(20,’n’);

cin >> grades

Put the grade input in a do while loop. Use constants for the lowest and highest allowed grades

Use an if else if to get the string grade with the following specifications. Hint start with the highest grades

96 -100A+

93 – 95A

90 – 92A-

86 – 89B+

83 – 85B

80 – 82B-

76 -79C+

73 – 75C

70 – 72C-

66 -69D+

63 – 65D

60 – 62D-

Below 59F

Use another for loop to display the students’ names and their grades

Calculate and display the average of the grades.

Bonus – Determine and display who had the highest grade

SAVE AS midtermprogram2.cpp

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational