Use the code provided in the class ReceiptMaker and correct all the errors so it runs as described below and passes all test cases in the zyBook for Question 1: Greet the user “Welcome to the 10 items or less checkout line” Scan the cart items by prompting the user for the item name and price until either 10 items have been scanned or the user enters “checkout” The prompts should appear as follows: Enter item #1's name and price separated by a space, or enter "checkout" to end transaction early Enter item #2's name and price separated by a space, or enter "checkout" to end transaction early Enter item #3's name and price separated by a space, or enter "checkout" to end transaction early … … ... If the price entered for an item is negative the user should be told the price cannot be negative, and prompted to reenter the price for the item until a valid price is entered (Example output if “-5.0” is entered as the price of an item) Price "-5.0" cannot be negative. Reenter price Upon completion of scanning the Receipt should be displayed followed by the receipt stats and then all the items purchased with their prices in the order they were entered, as shown in the example test cases in zybook. ------------------------------------------------- Subtotal: $ 44.98 | # of Items 10 Tax: $ 03.94 Total: $ 48.92 --------------------THANK YOU-------------------- -----------------RECEIPT STATS----------------- Min Item Name: ice | Price: $ 1.99 Max Item Name: hummus | Price: $ 7.63 Mean price of 10 items purchased: $ 4.50 ---------------RECEIPT BREAKDOWN--------------- Item #01 Name: apples | Price: $ 5.32 Item #02 Name: bananas | Price: $ 3.78 Item #03 Name: cantaloupe | Price: $ 2.99 Item #04 Name: donuts | Price: $ 6.55 Item #05 Name: eggs | Price: $ 4.87 Item #06 Name: flour | Price: $ 3.21 Item #07 Name: grapes | Price: $ 5.89 Item #08 Name: hummus | Price: $ 7.63 Item #09 Name: ice | Price: $ 1.99 Item #10 Name: jello | Price: $ 2.75
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
Use the code provided in the class ReceiptMaker and correct all the errors so it runs as described below and passes all test cases in the zyBook for Question 1: Greet the user “Welcome to the 10 items or less checkout line” Scan the cart items by prompting the user for the item name and price until either 10 items have been scanned or the user enters “checkout” The prompts should appear as follows: Enter item #1's name and price ...
I need help building code in python for this: Create a program that: Creates a sales receipt, displays the receipt entries and totals, and saves the receipt entries to a file Prompt the user to enter the Item Name Item Quantity Item Price Display the item name, the quantity, and item price, and the extended price (Item Quantity multiplied by Item Price) after the entry is made Save the item name, quantity, item price, and extended price to a file...
java; programing language Write a program to calculate the price of a purchase. It should ask the user to enter the name of the item bought (like sweater, apple, …), number of items bought (4, 5 lbs,…), price per item ($40.50, $1.99 per pound,…), and the sales tax rate (8.35% for example). It should calculate the subtotal (price*number of items), sales tax (subtotal*sales tax), and total price (subtotal+ sales tax). It should print all the information in a receipt form
Write a program to keep track of the inventory of grocery store. Write a test program that prompts the user to enter how many items of inventory the store has. After that enter item name, quantity and price of each item in three different arrays called Itemname, Quantity and Price. Than calculate the Total=Quantity*Price of items in store and FinalTotal of all the items and print in following exact format using array: Sample run of program: Enter number of items...
In C++ Programming Write a program in Restaurant.cpp to help a local restaurant automate its breakfast billing system. The program should do the following: Show the customer the different breakfast items offered by the restaurant. Allow the customer to select more than one item from the menu. Calculate and print the bill. Assume that the restaurant offers the following breakfast items (the price of each item is shown to the right of the item): Name Price Egg (cooked to order)...
C++
Retailltem.h, Retailltem.cpp, Store.h, Store.cpp, and Driver.cpp. Description: Write a set of programs that holds data about items in a retail store. Your submission should include 5 files, Retailltem.b, Retailltem.cpp, Store, Store.cpp, and Driver.cpp 1. Retailltem class: The class should have three member variables • description (a string, represent the item's name. A name contains space) quantity (an int, represent how many current available) price (a double, item's price) Member Functions Constructor with default argument get Description getQuantity getPrice setDescription...
Write the following program in Java using
Eclipse.
A cash register is used in retail stores to help clerks enter a
number of items and calculate their subtotal and total. It usually
prints a receipt with all the items in some format. Design a
Receipt class and Item class. In general, one receipt can contain
multiple items. Here is what you should have in the Receipt
class:
numberOfItems: this variable will keep track of
the number of items added to...
*Urgent* I've tried getting help with this a couple times, but nobody has answered my questions, and it's been several days. #################################################################################### This needs to be Python that works in a Zybooks programming window. 1. Build an ItemToPurchase class with the following specifications: Attributes (3 pts) item_name (string) item_price (float) item_quantity (int) Default constructor (1 pt) Initializes item's name = "none", item's price = 0, item's quantity = 0 Method print_item_cost() Example of print_item_cost() output: Bottled Water 10 @ $1...
Assume that you are developing a billing software for a departmental store which sells electronic appliances, clothing, and toys. The store offers discounts on a festival occasion as below: a) 20 % discount on electronic appliances whose prices are greater than or equal to $100 b) 30 % discount on clothing if the price of a clothing item is greater than or equal to $50 c) All the toys greater than or equal to $20 are subject to 10% discount....
Please help I promise positive feedback Part IV. Formulate SQL queries that follow for the database with the following tables: CUSTOMER, PRODUCT, SALES, and ITEM-SOLD. Table: CUSTOMER Primary Key: Account-No Account-No Customer-Name Customer-City 1 A NYC 2 B NYC 3 C MIA Table: PRODUCT Primary Key: Item-No Item-No Price 1 $1.00 2 $2.00 3 $3.00 4 $4.00 Table: SALES Primary Key: Receipt-No Foreign Key: Account-No References CUSTOMER Receipt-No Account-No Sales-Person 1 1 S1 2 1 S1 3 2 S2 4...