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

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!