Question: Please help me with this Java program, I will be very appreciated if anyone can help me with this problem!! Thank you in advance!!! Problem

Please help me with this Java program, I will be very appreciated if anyone can help me with this problem!! Thank you in advance!!!

Problem Description: You will be writing classes that represent various parts of a vending machine. You will need to write two files: VendingMachine.java and VendingItem.java. A simple driver class VendingWorld.java (https://cs1331.gitlab.io/fall2018/hw3/VendingWorld.java) has been provided, and it will allow you to interact with your simulation within the command line/terminal.

Please help me with this Java program, I will be very appreciatedif anyone can help me with this problem!! Thank you in advance!!!Problem Description: You will be writing classes that represent various parts ofa vending machine. You will need to write two files: VendingMachine.java andascii table (https://www.cs.cmu.edu/~pattis/15-1XX/common/handouts/ascii.html)

Thank you so much!!!

Solution Description Vendingltem.java (enum) Instances of this enum will represent items in your vending machine. Your boss at Coke has done extensive analysis and determined that the following items and prices are ideal for Georgia Tech students: Price S1.50 1.50 $2.50 Ramblin_Reck Toy $180.75 $30.00 $15.00 $10.00 Graphing Calculator $120.00 S0.10 S3.14 $55.55 1.25 2.50 $4.75 3.15 0.99 Item Lays Doritos Coke Rubiks Cube Rat_Cap FASET_Lanyard UGA Diploma ie Clicker Cheetos Sprite Red Bull Ramen Cold_Pizza The names of the elements in your enum should be exactly as they appear here, and the price should be a parameter to the enum constructor. Your VendingItem enum should have the following fields, methods, and constructors: private final double price. This field is the price of an item, and should be set in the constructor e VendingItem(double price). This is the constructor for the enum type, and it takes the price as its single parameter. Review the links and details in the Background section if this confuses you public double getPrice(). This method is just a simple getter method for the price. price is final and has no setter because it does not make sense for an object's price to change at runtime public String tostring(). This method returns a String representation of a VendingItem for use in your simulation. The string should look like "(name): $xx.xx" where (name) is the name of the Vendingitem and xx.xx is its price

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!