Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

image text in transcribed

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

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

Step: 3

blur-text-image

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

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

ISBN: 1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

Ensure continued excellence in people management.

Answered: 1 week ago

Question

Enhance the international team by recruiting the best people.

Answered: 1 week ago