Explore BrainMass
Share

Java Coffee Application Written

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Write an application that prompts the user to make a choice for a Coffee cup size, S for Small, T for Tall, G for Grande and V for Venti â?" the prices of the cup sizes will be stored in a parallel double array as $2.00, $2.50, $3.25, and $4.50 respectively. Allow the user to choose if they would like to add a flavor to the coffee and add an additional $1.00 to the price of the coffee, display the total price of the cup of coffee after the user enters a selection. Save as Coffee.java

Create a class named TVShow.java. Data Fields can include a String containing the Name of the show, a String containing the day that the show is broadcast(i.e. â??Mondayâ?) and an integer for the channel where the show can be viewed. Methods will include a constructor that requires values for all of the data fields, plus methods to get, set and display the values of the data fields. Create a UseTVShow.java file that prompts the user to input up to 5 TV shows and stores the data in an array of objects first, then displays them as a list.

© BrainMass Inc. brainmass.com October 25, 2018, 5:56 am ad1c9bdddf
https://brainmass.com/computer-science/arrays/java-coffee-application-written-441199

Solution Summary

Java coffee application is written.

$2.19
See Also This Related BrainMass Solution

Microsoft lawsuit

In 1998, the U.S. Justice Department and 20 state attorney generals filed lawsuits against Microsoft. In your discussion, include the reason for the lawsuit, the outcome of the trial, and how this lawsuit affected Microsoft and consumers.

View Full Posting Details