Create a java project using netbeans ide

Assignment Help JAVA Programming
Reference no: EM131551824

Assignment: DrinkMachine Applet

Basic Steps in Creating your Program

1. Plan your logic before working on the project and review the syntax you will use in the project. Think about how you want the output to be displayed to the user. You might want to tell the user what the program does and what type of input you expect from the user. You interface structure could do this. Select names of the variables you will use in the program.

2. Create a JAVA project Using NetBeans IDE. And have the code window open to write the project code. Here are some instructions on creating the project.

• Declare variables to hold input information.

• Using the JOptionPane Concept. (Some programs might need just the Scanner.

• Ask the user to enter some information requested and save the response to a variable. This could look like: name = JOptionPane.showInputDialog ("Enter your name").

• Use line spacing (i.e.\n) to separate lines of output to make it easy for the user to read the information and have proper line length.

3. Documentation: All lines of code must be documented.

• Use the syntax to designate lines in code as comments (//)

• These comments can be at the end of a line of code or in a group definition at the beginning of a section of code. All methods and function need a group heading document.

4. Run the program using Run Project menu item.Debug the code, making sure all calculations are correct and the line spacing is suitable for readability.

Your program Assignment

Write an applet that simulates a soft drink vending machine. The simulated machine dispenses the following soft drink:

• Cola
• Lemon-lime
• Grape
• soda,
• root beer
• bottled water

These drinks cost #0.75 each to purchase.

When the applet starts, the drink machine should have a supply of 20 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 whether 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.

Reference no: EM131551824

Questions Cloud

Identify methods of recording the crime scene : Identify the tools needed to collect and process evidence at a crime scene. Identify methods of recording the crime scene.
What type of naming structure would you give to servers : What type of naming structure would you give to servers, network devices and end nodes in this network? Provide a few examples.
Conduct research on the code of hammurabi : Conduct research on the "Code of Hammurabi" and explain its influence on contemporary society.
Find the mean area of the inside bottom of the box : Let X be the inside length, Y be the inside width, and Z be the inside height of a box. Suppose µX = 20, µY = 15, and µZ = 12, while sX = .5, sY = .25.
Create a java project using netbeans ide : Create a JAVA project Using NetBeans IDE. And have the code window open to write the project code. Here are some instructions on creating the project.
Who are the stakeholders of homeland security : Who are the stakeholders of homeland security? Who are the primary stakeholders and who have more of a peripheral role?
Obtain a collection of n small images in png or jpg format : Obtain a collection of n small images in PNG or JPG format, where n is an integer between 3 and 10. Index the images with numbers 1,. . . n.
The services of the national guard units : The services of the National Guard units may respond when needed to save lives, prevent human suffering or mitigate great property damage.
Find a two-sided interval : Refer to the Oil Field Production case in Consider the 52 wells completed using the first method, and assume that oil production from wells.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Define an adt for character strings.

Define an ADT for character strings. Your ADT should consist of typical functions that can be performed on strings, with each function defined in terms of its input and output. Then define two different physical representations for strings.

  How do i display a message in the browsers status bar

How do I display a message in the browser's status bar? What are the main differences between applets and applications?

  Document the current application describing major classes

Add to the Project Management tool the different planned activities needed to implement the changes to the solution and document the current application describing the major classes used by the application.

  Assume that you are developing a java program which uses

suppose that youre developing a java program that uses decimal numbers and youd like to control the formatting of your

  Write client code to call the print method of counter.

Write client code to deposit 7 quarters, 3 dimes, 10 nickels, and 17 pennies in counter. Output the new status of counter using the toString method.

  How the subcomponents of the system work together

You need to have some scenarios of how the user may interact with the system and how the subcomponents of the system work together.

  Determine whether the five-digit input was odd or even

inputs one number consisting of five digits from the user, separates the number into its individual digits and prints the digits separated from one another by three spaces each.

  Develop a application that allows to manage the grades

The objective of this work is to develop a application that allows to manage the grades of several subjects in each course (Course -> subject -> grade).

  Generates a random number between 1 and 100

Write a program that generates a random number between 1 and 100 (inclusive) and then prompts the user to guess the number. The user should be given up to 10 chances to guess the number.

  Implementing inheritance by creating generic superclass

You will be implementing inheritance by creating a generic Racer superclass along with two subclasses called StreetTuner and HotRod. You will make the Racer class abstract and include the abstract method IsDead in the Racer class

  Display a frequency chart for each exam score in the array

Create a Java application that contains methods to display statistics for the numbers in an array. Receive the array as an argument and display a frequency chart for each exam score in the array.

  Design a course registration system

Create an application which represents a simplified course registration system using ArrayLists and HashMaps.

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