subject

Java program + Create another class named Cash_Register that can be used with the Retail_Item class. The Cash_Register class should be able to internally keep a list of Retail_Item objects. The class should have the following methods:•A method named display_menu that displays the snapshot of data in the store.

•A method named purchase_item that accepts a Retail_Item object as an argument. Each time the purchase_item method is called, the Retail_Item that is

passed as an argument should be added to the list.

• A method named get_total that returns the total price of all the Retail_Items objects stored in the Cash_Register’s internal list.

• A method named show_items that displays data about the Retail_Item objects stored in the Cash_Register object’s intern al list.

• A method named clear that should clear the Cash_Register object’s internal list. Write a TestBonus class that uses

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
What must you do before formatting a paragraph?
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
How do you write an argumentative essay about the importance of free enterprise ?
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
You know the right answer?
Java program + Create another class named Cash_Register that can be used with the Retail_Item class....
Questions
question
Mathematics, 19.12.2019 03:31
Questions on the website: 13722363