Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automation Production Systems and Computer Integrated Manufacturing

Authors: Mikell P.Groover

3rd edition

132393212, 978-0132393218

More Books

Students also viewed these Business Writing questions

Question

What is work-in-process?

Answered: 1 week ago

Question

What is a programmable logic controller?

Answered: 1 week ago