Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Design a vending machine java

13/12/2021 Client: muhammad11 Deadline: 2 Day

Please do the following to complete this assignment.

Purpose:

The purpose of this project is to provide non-trivial practice in the use of Java object-oriented programming features to implement an object-oriented design and have a bit of fun doing it.

Resources Needed:

You will need a computer system with Java 7 or greater SE edition run-time and Java Development Kit (JDK). You may optionally use a Java IDE for example NetBeans, Eclipse, etc. However application builders are not allowed.

Submitted Files:

Design and Analysis:

This is an informal essay-style single-spaced word-processed document. The file formats accepted will be announced at project assignment. The length of the document should be between 1 and 1.5 pages. The following subjects should be discussed in this order:

1. General program design. How is the program organized? What major data structures were used? How did you divide the functionality among your classes? How are commands processed? Etc.

2. What alternative approaches were considered and why were they rejected?

3. What did you learn from doing this project and what would you do differently?

Source files:

Each public class must be contained in a separate Java source file. Only one source file will have a main() method and this source will be named VendingMachineSimulator.java. Other source/class names are up to you following the guidelines specified so far in the course.

The format of the Java source must meet the general Java coding style guidelines discussed so far during the course. Pay special attention to naming guidelines, use of appropriate variable names and types, variable scope (public, private, protected, etc.), indentation, and comments. Classes and methods should be commented with JavaDoc-style comments (see below). Please use course office hours or contact the instructor directly if there are any coding style questions.

JavaDocs:

Sources should be commented using JavaDoc-style comments for classes and methods. Each class should have a short comment on what it represents and use the @author annotation. Methods should have a short (usually 1 short sentence) description of what the results are of calling it. Parameters and returns should be documented with the @param and @return annotations respectively with a short comment on each.

JavaDocs must be generated against every project Java source file. They should be generated with a -private option (to document all protection-level classes) and a –d [dir] option to place the resulting files in a javadocs directory/folder at the same level as your source files. See the JavaDocs demonstration for more details.

Submit file:

The submit file is to be a Zip file containing your design and analysis document, your Java sources, and your javadocs directory/folder. Any appropriate file name for this Zip file is acceptable.

If you know how to create a standard Java JAR file, this is also acceptable for your source code. However, make sure you include the source code in your JAR file.

Program Specification:

1. Create a new multi-class Java program which implements a vending machine simulator which contains the following functionality:

A) At program startup, the vending machine is loaded with a variety of products in a variety of packaging for example soda/tonic/Coke in bottles, peanuts in bags, juice in cartons, etc. Also included is the cost of each item. The program should be designed to easily load a different set of products easily (for example, from a file).

Also at program startup, money should be loaded into the vending machine. Money should consist of different monetary objects for the specified currency for example $1 bills, $5 bills, quarters, dimes, etc. Your program should be designed to use different national currencies easily (for example the Euro) without changing source code. Money should be maintained as paper bills and coins, not just amounts.

B) A menu of commands must be provided. At a minimum the menu should consists of the following commands:

1. Display the list of commands

2. Display the vending machine inventory. For each item, this command should result in displaying a description and current quantity.

3. Display the money currently held in the vending machine.

4. Purchase an item. The result of this selection should be the following actions:

1. Prompt the user to indicate what item to purchase

2. Prompt the user to specify what monetary items are being used for payment (the actual items for example quarters, dimes, etc.), not a money amount

3. If the user specified enough money to purchase the selected item, the item is purchased (deducted from inventory), supplied money is added to the vending machine, and any change is returned in the form of monetary items (quarters, dimes, etc.).

4. If the user did not specify enough money for the selected item, the transaction is aborted with the supplied money not added to the machine (not accepted) and the product not purchased (i.e. the state of the vending machine is unchanged).

5. Exit – exits the program displaying a departing message.

2. Additional points to consider:

A) You can use the Java Standard Edition (SE) API library as supplied by Oracle (AKA Sun) except the collection classes other than String and standard arrays (i.e. not ArrayList, Map, Vector, etc.). These other collections will be covered later in the course.

B) When developing complex classes, consider creating a main() method to test them out. Once tested successfully, delete the main() method.

C) You should generate error messages when appropriate, for example on invalid input values or not enough money supplied for the selected item to purchase. Exceptions will be covered later in the course so for this program displaying appropriate messages on the console is fine.

Other Activates:

1. Observe the presentation on JavaDocs.

2. Observe the Vending Machine Simulator demonstration for an example of one implementation.

3. Create a compressed zipped folder containing your Design and Analysis document, your Java source code files, and your javadocs folder.

4. Submit your compressed zipped folder.

Assignment Rubric:

Part

70%

80%

90%

100%

% of

Grade

Design and

All but one subject

All assigned

All assigned subjects

All assigned

15%

Analysis

addressed with

subjects address

address with

subjects address

Document

relevant,

with mostly

accurate and

with accurate,

information. Few

relevant

relevant. Nicely

relevant, and

minor

information.

formatted document.

insightful

typographical

Nicely formatted

Document is within

information. Very

issues. Document

document.

assigned length

nicely formatted.

is close to assigned

Document is

Document is

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Math Exam Success
Assignment Hut
Financial Assignments
Isabella K.
Pro Writer
Assignment Solver
Writer Writer Name Offer Chat
Math Exam Success

ONLINE

Math Exam Success

I have done dissertations, thesis, reports related to these topics, and I cover all the CHAPTERS accordingly and provide proper updates on the project.

$61 Chat With Writer
Assignment Hut

ONLINE

Assignment Hut

As an experienced writer, I have extensive experience in business writing, report writing, business profile writing, writing business reports and business plans for my clients.

$66 Chat With Writer
Financial Assignments

ONLINE

Financial Assignments

I have written research reports, assignments, thesis, research proposals, and dissertations for different level students and on different subjects.

$63 Chat With Writer
Isabella K.

ONLINE

Isabella K.

I have worked on wide variety of research papers including; Analytical research paper, Argumentative research paper, Interpretative research, experimental research etc.

$75 Chat With Writer
Pro Writer

ONLINE

Pro Writer

I have assisted scholars, business persons, startups, entrepreneurs, marketers, managers etc in their, pitches, presentations, market research, business plans etc.

$80 Chat With Writer
Assignment Solver

ONLINE

Assignment Solver

I reckon that I can perfectly carry this project for you! I am a research writer and have been writing academic papers, business reports, plans, literature review, reports and others for the past 1 decade.

$63 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Word document edit - Wednesday - Tantalise in a sentence - Project data sheet template - Speech topic - Benchmark - Collaboration and Communication Action Plan - Nursing - What age group is chuck e cheese for - E lucevan le stelle testo canzone - Fiction book report example - User Requirements - Ap biology biochemistry activity 3 designing a controlled experiment answers - Looking out looking in 14th edition chapter 1 pdf - Al shaqab racing post - Dsi group sri lanka - Ananda everingham speaking english - Reflection paper - Glasbrook bros v glamorgan - Disaster recovery plan - Communication skills self assessment questionnaire pdf - Keeping under god in the pledge - Mobile forensic tools comparison chart - Gc ms training courses - Worldwide paper company case study solution - Nutgrove methodist primary school - Covariance of portfolio with 2 assets - Clone phone fully loaded - Bhopal disaster ethics - Gcu practicum field experience observation and activity log - Digestive system animation game - Once upon a time family tree - Materials for elephant toothpaste - How to Write a most effective Summary in Easy Steps? - Adapted physical education checklist - Contemporary strategic management concepts - Holofernes army crossing the euphrates river - Lync online web app - PP2 - The element ken robinson sparknotes - What are the four characteristics of correctional counseling - Sa power networks meter box lock - Critical Infrastructure: Emergency Services - Additivity of heats of reaction hess's law lab answer key - 1.75 kg in grams - Lab 7: ecological interactions - Three zero one burnside club - Wgu c170 donut shop - How much is a nolan ryan baseball card worth - 17 3 as a mixed number - Sylvia plath johnny panic and the bible of dreams pdf - Amazon alexa marketing - Abandon all hope ye who enter here - Rogue waves tend to occur - Wiring diagram circuit breaker symbol - Nursing - Lead sulphide mineral crossword - Uts student centre appointment - A food handler notices that the water - 1600 words due 9/28/2020- Public and community health impact of driving under the influence of alcohol - Research Paper - Plagiarism Checker - Acorn 2590 003 001 - Medway lea advisory service light sound and hearing answers - Nursing - How does haymitch die - Amp flexible super fund - Bonnie burgess john rubinstein - How is strategic management illustrated by this case story - Coding assignment 2 - Diploma of fire systems design - Alpha medical clinic cobram - Hexapod in a sentence - Math action research project - BUSN603 - Process cost summary - Gonzaga community job board - Trim software training sydney - 2/85 sunshine parade miami - How have ideas about the solar system changed - Cummings and worley organization development and change pdf - Amc clinical exam appeal - Qut student log in - Nutrition label worksheet nscsd answers - Conservation of mechanical energy lab answers - 1 2 5 10 13 26 29 48 - Clipsal 2031vetr3 wiring diagram - Bennigan's danny boy chicken nutrition - Operations management assignment 1 - Average variable cost curve explanation - Visual Literacy - Standardization of naoh with khp procedure - Mackay coastal waters forecast - Sample special power of attorney for authorized representative philippines - 365 - 23/21 park lane south yarra - Sciences po lse dual degree - Dust echoes abc aboriginal stories - Restoration theory of sleep - Vodafone erp implementation failure - Research Project Outline - Organizational Change Presentation