Question: in C .. please the output to be exactly as below. It is the promotional season and everybody can buy the second item for half

in C .. please the output to be exactly as below. in C .. please the output to be exactly as below. It

It is the promotional season and everybody can buy the second item for half price. You will be given the amount bought ( nr. of items) and the unit price of n items. Calculate the total price. Input specification: You will be first given an integer (n), then in the following n lines you will be given two integers. Nr of items: which can be only one or two. Unit price of each item: an int. Output specification: Show one floating point number with two-digits precision: the total price

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!