Question: PYTHON A local computer store is holding a sale, and the store owner has instructed Clark the sales clerk to tabulate the sale prices of
PYTHON


A local computer store is holding a sale, and the store owner has instructed Clark the sales clerk to tabulate the sale prices of their complete inventory. Knowing that their inventory contains hundreds of items, Clark thought it would be a waste to compute each price manually, and decided to write a Python program to do the job. However, Clark is only a novice programmer, and there are several bugs in their code which prevent the program from functioning properly. Help them find the errors in the code and prevent Clark from losing their job! Input Format The first line contains an integer n, the number of items in the inventory. The next n lines each contain an item's original price P (specified to two decimal places) and percent discount D (specified as an integer), separated by a space. Constraints 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
