Question: Declare a Course variable called myCourse inside of main. Declare an int variable called choice inside of main. Prompt the user to enter a 0
Declare a Course variable called myCourse inside of main. Declare an int variable called choice inside of main. Prompt the user to enter a 0 for CSC2134, a 1 for CSC2144, or a 2 for CSC2844. Use the choice variable to store the value entered by the user. Assign the value stored in choice to the myCourse variable. Don't forget to cast it as a Course value. Write a void function called print that accepts one Course parameter and prints text representing the value stored in the myCourse variable declared in main. Place a function prototype for the function above main and the function definition below main Write the definition of the function print below main. Call the function inside of main. Write in C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
