Create a flowchart and program for the Lucky Spin competition. Anyone can join in the competition and
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 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
Automation Production Systems and Computer Integrated Manufacturing
ISBN: 978-0132393218
3rd edition
Authors: Mikell P.Groover