Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a console program called Megalottobaby that accepts a number from the user and determines if it is one of the recent winning Florida Lottery

image text in transcribed

Write a console program called Megalottobaby that accepts a number from the user and determines if it is one of the recent winning Florida Lottery winning numbers. You must use an array to store the six (6) numbers from the most recent Florida Lottery drawing. Visit https://www.flalottery.com/winningNumbers to find the numbers to initialize your array with (you manually type these numbers into your array as you're writing your program, your program doesn't need to visit the website.) When your program runs, it should prompt the user for a single lottery number. If the entered number is present in your array, output "We have a winner!" otherwise output "We have a big loser!" Also, be sure to output the DATE of the lottery drawing numbers your program contains (you may hardcode this date into your program, but the numbers in your lottery results array must match the numbers for the date that you output.) Submit output showing both cases

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

9. What is the purpose of a general process chart?

Answered: 1 week ago