Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with this C++ code that I have no clue from where, to begin with, plz help if possible!! Create a program that
I need help with this C++ code that I have no clue from where, to begin with, plz help if possible!!
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 O Purpose: Loop through the user menu letting the user choose options until they'd wish to stop view Schedule O Parameters: codes and class names (both by reference) O Return value: none o 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 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 (0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started