Homework 01

Showcase Showdown!
Due 02/09/2024 by 11:55pm

 

 

Objective: 

Write a program which replicates the final game of a famous price related game show. In this version, a “Showcase” contains exactly 5 unique randomly selected prizes. The user must guess the sum of the prizes within $1,300 below or equal to the sum in order to win.

 

Requirements:

<<Prize’s Name 0>>\t<<Prize’s Price 0>>\n

<<Prize’s Name 1>>\t<<Prize’s Price 1>>\n

 

Example Dialog:

*The following Example Dialog demonstrates the interactions between a user and ONE possible implementation of the required software’s front-end / user interface. The software’s front-end / user interface may be implemented in MANY different ways and will receive full credit as long as it meets the most minimal of the above requirements. While you may use the example dialog as a guide, it is strongly encouraged to create the front-end / user interface in your own way. *

Key

Unhighlighted Text

Program’s Output

Highlighted Text

User’s Input

 

 

Welcome to the showcase show down!

Your prizes are:

Car

Antacid

Cheese

Goat

Guitar

You must guess the total cost of the prizes without going over and within $1,300 of its actual price

Enter your guess

22000

The actual cost was 21710.0

Your guess was over. You lose

Would you like to quit? Enter "yes" to quit

no

Your prizes are:

Fiber Supplement

Espresso Making Ferrets

A Very Very Pretty Ring

Goat

200 Dollars in Cash

You must guess the total cost of the prizes without going over and within $1,300 of its actual price

Enter your guess

1000

The actual cost was 2806.0

Your guess was close, but not close enough. You lose.

Would you like to quit? Enter "yes" to quit

no

Your prizes are:

Car

Beard Supplies

Watch

Microwave

Milk

You must guess the total cost of the prizes without going over and within $1,300 of its actual price

Enter your guess

21000

The actual cost was 21585.0

You win!!!

Would you like to quit? Enter "yes" to quit

yes

Goodbye! 

  

 

Finally:

Submit the source files (.JAVA extension) to the CSCE Dropbox (https://dropbox.cse.sc.edu)