Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write C++ statements that do the following: a. Define an enum type, awesomeMovies, with the values GUARDIANS, ALIENS, BUCKAROO BONZAI, BLADE RUNNER, INCREDIBLES, and STAR
Write C++ statements that do the following: a. Define an enum type, awesomeMovies, with the values GUARDIANS, ALIENS, BUCKAROO BONZAI, BLADE RUNNER, INCREDIBLES, and STAR TREK. b. Declare a variable weekendMovie of the type awesomeMovies. c. Assign GUARDIANS to the variable weekendMovie. d. Advance weekendMovie to the next value in the list. e. Output, using cout, the value of the variable weekendMovie, so that the user sees the name the movie ("Aliens" instead of 1). You may use other structures in combination with cout to do indirect output. f. Input, using cin, a value to the variable weekendMovie. You may use other structures to do indirect input
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