Final Exam Document 01. (10 Points) Error Correcting exercise Use the code provided in the class ReceiptMaker and correc

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Final Exam Document 01. (10 Points) Error Correcting exercise Use the code provided in the class ReceiptMaker and correc

Post by answerhappygod »

Final Exam Document 01 10 Points Error Correcting Exercise Use The Code Provided In The Class Receiptmaker And Correc 1
Final Exam Document 01 10 Points Error Correcting Exercise Use The Code Provided In The Class Receiptmaker And Correc 1 (48.45 KiB) Viewed 25 times
Final Exam Document 01 10 Points Error Correcting Exercise Use The Code Provided In The Class Receiptmaker And Correc 2
Final Exam Document 01 10 Points Error Correcting Exercise Use The Code Provided In The Class Receiptmaker And Correc 2 (39.86 KiB) Viewed 25 times
Final Exam Document 01. (10 Points) Error Correcting exercise 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 wybook. Subtotal: $.44.98 Tax: 03.94 - 2 W S X # 3 E D 30 C $ 4 283 R of Itens 10 F V % 5 #t T G 6 B 4: > H & 7 N U 00 8 DIE F ( 9 JK M O H > O L 14 FW P command IN S ww bad bad { [ option ?
Upon completion of scanning the Receipt should be displayed followed by the receipt stats and then all the itens purchased with their prices in the order they were entered, as shown in the example test cases in aybook.. Subtotal: $44.98 Tax: $ 03.94 Total: $48.92 Item #01 Item #02 Item #03 Item #04 Iten #05 Item #06 Min Item Name: Price: $ 1.99 Max Item Name: Price: $ 7.63 Mean price of 10 items purchased: $4.50 8 N W Item #07 Item #08- Iten #09 Name: Item #10 Manet S X Sane Name Name Name: Nane: Name: @= 3 Name: Name E --RECEIPT STATS--- ice hummus D RECEIPT BREAKDOWN-- apples bananas cantaloupe C -THANK YOU-- SUF ✔ of Items 10 $ 4 donuts eggs flour grapes hummus R F ice Jello 1: V 25 Price: $ 5.32 Price: $ 3.78 Price: $ 2.99 Price: $ 6.55 Price: $ 4.87 Price: $ 3.21 Price: $ 5.89 % Price: $ 7.63 Price: $ 1.99 Price: $ 2.75 4: T G 6 B 24% Y H & 7 N 8: U J . 00 8 DI F M - 0 9 K bo O V 26 -O 0 L F P 1 33 { +1 [ command option ?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply