Question: [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

[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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!