Java VENDING MACHINE Write a program that simulates a vending machine. The program should display a menu of items, along with the price and quantity of each item. The user can select an item and insert money to purchase the item. The program should display the item purchased, the cost of the item, and the amount of change returned to the user. REQUIREMENTS DECISION STRUCTURES Include at least (1) EACH of the following: ·If-Else-Else If Statements ·Switch Statement LOOPS Include at least (2) DIFFERENT TYPES of loops from the following: ·FOR loop ·WHILE loop ·DO-WHILE loop FILE MANAGEMENT Your project should perform at least (1) of the following tasks: ·READ FROM an input file ·WRITE TO an output file ·READ FROM and WRITE TO the same file METHODS Include at least (10) Methods throughout your Project. Include at least (1) Overloaded Programmer-Defined Method in your Project. JAVA CLASSES Include at least (3) Classes in your Project Include at least (1) Class that inherits from another class ARRAYS Include at least (2) Arrays or ArrayLists JAVA LIBRARIES Import at least (3) different Java Libraries throughout your project (e.g., java.util.Scanner) ERROR and/or EXCEPTION HANDLING Be warned: I AM TRYING TO CRASH YOUR PROGRAM! All errors and/or exceptions should be handled gracefully

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
Java VENDING MACHINE Write a program that simulates a vending machine. The program should display a menu of items, along with the price and quantity of each item. The user can select an item and insert money to purchase the item. The program should display the item purchased, the cost of the item, and the amount of change returned to the user. REQUIREMENTS DECISION STRUCTURES Include at least (1) EACH of the following: ·If-Else-Else If Statements ·Switch Statement LOOPS Include at least (2) DIFFERENT TYPES of loops from the following: ·FOR loop ·WHILE loop ·DO-WHILE loop FILE MANAGEMENT Your project should perform at least (1) of the following tasks: ·READ FROM an input file ·WRITE TO an output file ·READ FROM and WRITE TO the same file METHODS Include at least (10) Methods throughout your Project. Include at least (1) Overloaded Programmer-Defined Method in your Project. JAVA CLASSES Include at least (3) Classes in your Project Include at least (1) Class that inherits from another class ARRAYS Include at least (2) Arrays or ArrayLists JAVA LIBRARIES Import at least (3) different Java Libraries throughout your project (e.g., java.util.Scanner) ERROR and/or EXCEPTION HANDLING Be warned: I AM TRYING TO CRASH YOUR PROGRAM! All errors and/or exceptions should be handled gracefully
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr