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

Vending machine java source code

15/12/2020 Client: saad24vbs 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


length


close to assigned


within assigned


length


length


Functionality


Majority of


Most required


Nearly all required


All required


55%


required function


function parts


function parts work


function parts


parts work as


work as indicted


as indicted in the


work as indicted


indicted in the


in the


assignment text


in the assignment


assignment text.


assignment text


above and submitted


text above and


One major or 3


above and


documentation. One


submitted


minor defects. All


submitted


to two minor


documentation.


major functionality


documentation.


defects.


at least partially


One major or 3


image1.jpg


image2.jpg


working (example


minor defects.


change provided


All major


but not correct).


functionality at


Design document


least partially


does not fully


working


reflect


((example


functionality.


change provided


but not correct).


Code


Majority of the


Most of the code


Almost all code


All code


25%


code conforms to


conforms to


conforms to coding


conforms to


coding standards as


coding standards


standards as


coding standards


explained and


as explained and


explained and


as explained and


demonstrated so far


demonstrated so


demonstrated so far


demonstrated so


in the course (ex.


far in the course


in the course (ex.


far in the course


method design,


(ex. method


method design,


(ex. method


naming,


design, naming,


naming, formatting,


design, naming,


formatting, etc.).


formatting, etc.).


etc.). One to two


formatting, etc.).


Five to six minor


Three to four


minor coding


Appropriate level


coding standard


minor coding


standard violations.


of useful


violations. Some


standard


Appropriate level of


comments.


useful comments.


violations.


useful comments.


Complete


Some JavaDocs


Mostly useful


Public class


JavaDocs as


commenting.


comments.


JavaDocs complete.


specified. Code


Code compiles


Public class


Code compiles.


compiles with no


with multiple


JavaDocs


Code compiles with


errors or


warnings or fails to


complete. Code


no errors or


warnings.


compile with


compiles with


warnings.


difficult to


one to two


diagnose error.


warnings.


Submit


More than one file


All but one file


All file submitted in


All file submitted


5%


package


submitted in


submitted in


correct format but


in correct file


incorrect format.


correct format.


not in the specified


formats and


Files not enclosed


Files not


compressed file.


compressed as


in the specified


enclosed in the


specified.


compressed file.


specified


compressed file.


Applied Sciences

Architecture and Design

Biology

Business & Finance

Chemistry

Computer Science

Geography

Geology

Education

Engineering

English

Environmental science

Spanish

Government

History

Human Resource Management

Information Systems

Law

Literature

Mathematics

Nursing

Physics

Political Science

Psychology

Reading

Science

Social Science

Home

Blog

Archive

Contact

google+twitterfacebook

Copyright © 2019 HomeworkMarket.com

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:

University Coursework Help
Homework Guru
Top Essay Tutor
Best Coursework Help
Helping Hand
Essay & Assignment Help
Writer Writer Name Offer Chat
University Coursework Help

ONLINE

University Coursework Help

Hi dear, I am ready to do your homework in a reasonable price.

$232 Chat With Writer
Homework Guru

ONLINE

Homework Guru

Hi dear, I am ready to do your homework in a reasonable price and in a timely manner.

$232 Chat With Writer
Top Essay Tutor

ONLINE

Top Essay Tutor

I have more than 12 years of experience in managing online classes, exams, and quizzes on different websites like; Connect, McGraw-Hill, and Blackboard. I always provide a guarantee to my clients for their grades.

$235 Chat With Writer
Best Coursework Help

ONLINE

Best Coursework Help

I am an Academic writer with 10 years of experience. As an Academic writer, my aim is to generate unique content without Plagiarism as per the client’s requirements.

$230 Chat With Writer
Helping Hand

ONLINE

Helping Hand

Hello, I an ranked top 10 freelancers in academic and contents writing. I can write and updated your personal statement with great quality and free of plagiarism as I am a master writer with 5 years experience in similar ps and research writing projects. Kindly send me more information about your project. You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$225 Chat With Writer
Essay & Assignment Help

ONLINE

Essay & Assignment Help

I have a Master’s degree and experience of more than 5 years in this industry, I have worked on several similar projects of Research writing, Academic writing & Business writing and can deliver A+ quality writing even to Short Deadlines. I have successfully completed more than 2100+ projects on different websites for respective clients. I can generally write 10-15 pages daily. I am interested to hear more about the project and about the subject matter of the writing. I will deliver Premium quality work without Plagiarism at less price and time. Get quality work by awarding this project to me, I look forward to getting started for you as soon as possible. Thanks!

$225 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

Lección 3 la familia answers - Sony ericsson marketing mix - List the four basic acts of the overarching biblical story - X 2 2x 19 0 - Mental Health Journal - Elite Boat Sales uses a line of credit to help finance its inventory purchases. Elite Boat Sales sells boats and eq - Discussion - The primary objectives of control over inventory are - Telstra device eligibility criteria - Small Group Discussion: Presenting Policy Proposals-wk7-6361 - NURS-6050N-66/NURS-6050C-66-Policy & Advocacy - Getting under the hood of an annual report - 2 Discussions and 1 case Study - "Husband Wife# ( 91=9799046502)~girl / boy love marriage problem solution specialist molvi ji - The treadmill of consumption james roberts - Silicon tetrachloride can be prepared by heating - A subordinate clause is - Ucwv edu elearn - Tweet history by date - Analyzing a Quantitative Research Report - Fischer black exchange rate hedging - Bs en 60079 part 10 - Naval rank for short crossword clue - DAMAIC Project Due - M1 m2 buses timetable bournemouth - We've all been there analysis - Pbs nova cybersecurity lab - Is technology making us dumber synthesis essay - Australian curriculum achievement standards chart - Every round goes higher and higher lyrics - Dowclene 1601 safety data sheet - Please respond if you complete it with in 10-11 hours - All about me speech examples - Employer payroll taxes journal entry - Xerox tqm case study - Baeyer's test for alkanes - Characteristics of accounting information pdf - Canada steamship lines ltd v the king - Operational Excellence(Dis1) - How to view turnitin report monash - Finance and accounting for nonfinancial managers finkler pdf - Raf pay scales 20 21 - Walter industries has billion in sales - 4 2 presentation marketing channel analysis assignment - How to get the cumulative relative frequency - Final marketing plan and presentation mkt 421 - Quiz - Rules to write a sonnet - Macbeth we have scorched the snake - My marketing lab simulation answers chapter 8 - Food inc documentary questions - NURSING: EVIDENCED-BASED PRACTICE PROJECT - Shin etsu microsi g751 - History Essay - Telescope 4mm vs 20mm - Trace the conic x2 2xy y2 3x 2y 3 0 - Randy pausch funeral - Shadow health tina jones abdominal assessment - Pooja ashar kangana english tutor - The marvel way restoring a blue ocean slideshare - Bbc co uk scotland education wwww living index choice shtml - Week 8 discussion - The concept of guanxi, defined as ______, is important in _____ business culture. - Sumerian Civiliztion - Is a name a concrete noun - CC-5 - 2/49 amherst street cammeray - Business chemistry self assessment - Turtles at mon repos - PAAS and IAAS - I need help with a Managerial writing assignment. - 4881 northbank road buckeye lake oh - Create a wbs for one of the following projects - St george fixed term investment rates - Audio post production definition - Sap standard toolbar icons - Ttp help hbonow com answer detail 11 computer browser - Fraud Examination - What is bonding molecular orbital - Why should guns be allowed on college campuses - Musicians and composers were basically servants to courts and/or churches during the Baroque period. What similarities and differences can you draw to the music industry today? - 1400 watts to kwh - How to find weighted average contribution margin - Respond to the following in a minimum of 175 words: - Tennis court builders association of australia - Relying entirely on a firm’s statement of cash flows while ignoring its income statement is - The personal construct theory by kelly states that - Telecommuting at medex - Public library organisational chart - Seven domains of typical it infrastructure - Contingency table in excel - 2 nuns in a bathtub joke - Gladwell something borrowed summary - Consider how to define net exports and net capital outflow - 45 bunbury street footscray - Delta airlines pestel analysis - Kingston family vineyards - Dozier corporation is a fast growing supplier of office products - Is the tiger in life of pi a metaphor - Boolean algebra simplification examples