Write an applet that simulates a soft drink vending machine

Assignment Help Business Management
Reference no: EM131986149

Problem

Make a New Java Project called TheDrinkMachine.

Write an applet that simulates a soft drink vending machine.

The simulated machine dispenses the following soft drinks: cola, lemon-lime soda, and bottled water. These drinks cost $0.75 each to purchase.

When the applet starts, the drink machine should have a supply of 10 of each of the drinks.

The applet should have a text field where the user can enter the amount of money he or she is giving the machine.

The user can then click on a button to select a drink to dispense. The applet should also display the amount of change it is giving back to the user.

The applet should keep track of its inventory of drinks and inform the user if he or she has selected a drink that is out of stock. Be sure to handle operator errors such as selecting a drink with no money entered and selecting a drink with an inadequate amount of money entered.

NOTE: Your applet must be embedded in a webpage. The webpage should have an appropriate title and description of the applet. Feel free to add color and excitement to your webpage. Be sure to follow the instructions on "How to Create and Deploy an Applet" to add your webpage to your project. Export your project as usual for submission.

Reference no: EM131986149

Questions Cloud

Does joe have any moral rights in case : Does Joe have any moral rights in this case or is the decision totally Kim's?
Please read the willowbrook state hospital study : In your opinion, was the injection of hepatitis virus given to the 800 children in the research project ethical since their parents gave consent.
What makes a relational database relational : What makes a Relational Database Relational (Where does the name Relational come from)? Why would we care about Candidate Keys (like SSN)?
What is the annual interest expense for the borrower : What is the annual interest expense for the borrower, and the annual interest income for the lender, during Year 2?
Write an applet that simulates a soft drink vending machine : Write an applet that simulates a soft drink vending machine. When the applet starts, the drink machine should have a supply of 10 of each of the drinks.
How much calcium do you need to help prevent osteoporosis : How much calcium do you need to help prevent osteoporosis? What is the role of vitamin D as far as calcium absorption?
Considering new three-year expansion project : Quad Enterprises is considering a new three-year expansion project that requires an initial fixed asset investment of $2.97 million.
What is the projects average accounting return : what is the projects average accounting return?
Critically analyse and use complex decision making : ITECH7410 - Software Engineering Methodologies - Formal Specification of a Library System Overview - opportunity to apply the knowledge and skills developed

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd