Question: Ubjectives! Continue practicing past concepts Practice using vectors Practice using functions Assignment: Create a program that allows a user to view and alter a class



Ubjectives! Continue practicing past concepts Practice using vectors Practice using functions Assignment: Create a program that allows a user to view and alter a class schedule. To make the class schedule, you'll need to use two string vectors: courseCodes and courseNames. Note: Throughout the lab, you can assume the user will enter the correct data type you're expecting. So, if you're asking for an integer, assume they will correctly always enter an integer. Your program should utilize four functions: main o Parameters: none o Return value: 0 Purpose: Loop through the user menu letting the user choose options until they'd wish to stop viewSchedule O Parameters: codes and class names (both by reference) o Return value: none Purpose: display all the items in the vectors. Keep each course code in line with the corresponding course name addClass o Parameters: codes and class names (both by reference) o Return value: 0 on successful add, 1 on unsuccessful add Purpose: add a course to the vectors. Course codes should be checked for being exactly four characters long -- if it's not, return 1 and end function. If it is, add to the code vector, query for the course name and add to the name vector. Return 0 removeClass o Parameters: codes and class names (both by reference) o Return value: 0 on successful remove, 1 on unsuccessful remove o Purpose: remove a course from the vectors. Should not display the vectors here. Ask the user which item they'd like to remove ... check to see if the number is valid (0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
