Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program using Java Programming Language Object-oriented Programming Assignment #7 Deadline: Tuesday, May 1 1. Program to be implemented You need to simulate a

Write a program using Java Programming Language

image text in transcribed

Object-oriented Programming Assignment #7 Deadline: Tuesday, May 1 1. Program to be implemented You need to simulate a Vending Machine which Accepts coins of 1,5,10,25 Cents i.e. penny, nickel, dime, and quarter Allow user to select products Coke(25), Pepsi(35), Soda(45) Allow user to take refund by canceling the request. Return selected product and remaining change if any Allow reset operation for vending machine supplier 2. 4 2. Guidelines (1) Implement each class for each shape. At least, implement the following classes VendingMachine to represent a Vending Machine Item to represent ltems served by Vending Machine Coin that to represent Coins supported by Vending Machine (2) Implement VendingMachineSimulator to get a user's input and generate the result. (3) Define methods as many as possible for each class (4) Declare data as private (5) To make this simulator, you can refer to "Design a Vending Machine in Java - Interview Question," http://javarevisited.blogspot.kr/2016/06/design-vending-machine-in-java.html. However, you should not use the knowledge that you have not learned (i.e., Interface, Factory, Exception) 3. Evaluation Criteria (1) Indentation Rules If your code violates the indentation rules, your points will be decreased a lot. (2) Program Description Explanation of the Class Explanation of the Fields and the Methods e Explanation of the Program Structure (3) Program Structure Does the source code include the classes for VendingMachinem, Item, and Coin? Does the source code include the simulator of a vending machinet? (4) Execution of the program 4. Submission of the followings: (1) Source Code (2) Program Description (3) Screenshot of the Results

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions