Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program 5: Prompt the user to enter the three largest Mega Millions jackpots in history as shown in the sample run below. This will require

Program 5:

Prompt the user to enter the three largest Mega Millions jackpots in history as shown in the sample run below. This will require the creation of three variables. You can use a data type of int or float for each an argument could be used for both cases, i.e. round to zero digits after decimal or use two digits after decimal. Display the output shown in the sample run below with commas in thousands place and period at end of the final output line. The numeric output is the numeric input entered by the user. Name the file hw1-5.py.

Sample run:

Three Largest Mega Millions Lottery Jackpots ---------------------------------------------

Largest: 1537000000 Second largest: 1050000000 Third largest: 1025000000 The three largest Mega Millions Lottery jackpots were: $1,537,000,000, $1,050,000,000 and $1,025,000,000

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

Students also viewed these Databases questions