Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!