Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[20} [10 marks} Write a C++ program [not a function] that prompts the user to enter an number from 1 to 4 to claim a
[20} [10 marks} Write a C++ program [not a function] that prompts the user to enter an number from 1 to 4 to claim a prize or a penalty. Display the following message depending on the number: 1. You win $113! 2. You lose $10! 3. You winl'lose nothing! 4. You win $5! For any other number, display the message: You entered an inoorreot number! You lose $1M! Use the using directive for oout. but only for cin. You must use an else if structure
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