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
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