CompSci

A bunch of Java for usage in my Comp Sci class. Expect messy code.

An online business sells “cool devices” for $250 each. The customer can choose one of three possible delivery methods; priority ($15), express ($12) and standard ($5). Shipping is a one-time cost regardless of the number of “cool devices” ordered.

Create a CoolDevices application that prompts the user for the number of “cool devices” they wish to purchase and the method of shipping they prefer. Calculate the total cost of “cool devices” with shipping. Use the currency format from the NumberFormat class.

Program Run Sketch:

Enter the number of cool devices you wish to purchase:

4

Which shipping method do you prefer, priority(1), express(2), or standard(3)?

3

Your total cost is $1005