Question
Create a flowchart and program for the Lucky Spin competition. Anyone can join in the competition and the winner will be determined based on the
Create a flowchart and program for the "Lucky Spin" competition.
Anyone can join in the competition and the winner will be determined based on the below criteria.
- Users will spin a wheel that has numbers from 1-50.
- A user is allowed to spin the wheel 5 times and total/sum up all the numbers that he spun.
- If the final total is even, then the user wins. If it's odd, then he/she loses.
Sample Output-1:
***Welcome to the Lucky Spin competition***
What's your name - Mike
Spin 1 result - 10
Spin 2 result - 25
Spin 3 result - 49
Spin 4 result - 11
Spin 5 result - 9
Mike, You win the competition.
Sample Output-2:
***Welcome to the Lucky Spin competition***
What's your name - Milka
Spin 1 result - 21
Spin 2 result - 36
Spin 3 result - 28
Spin 4 result - 12
Spin 5 result - 10
Milka You lose the competition.
Note - This is just an assumption for sample output.
Hint:
Use Random functions, loops, and if-else statements.
Submission Requirement:
Please need to submit your work in word format, and each question should provide the below requirements:
- FlowChart
- The code
- The results in screenshots
Step by Step Solution
There are 3 Steps involved in it
Step: 1
The Cprogram code for the above Lucky scompetition is ...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