Question
Write program (java code) for the following scenario for: Create a class named SelfService. The program should allow you to enter number of items you
Write program (java code) for the following scenario for:
Create a class named SelfService. The program should allow you to enter number of items you have purchased. You will assume that each item is the same price. Your program should allow you to enter the amount of one of the items, and when you enter the cost of one of the items, your program would automatically calculate the total amount you have to pay and display the total amount. Also, the program will display, Please take your items, place total amount in an envelope and slide it under the office door. Thank you for using the self-service line.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started