Asif buys four products detergent, ghee, milk and soap from Punjab Cash & Carry. You have to write a program in C++ to input prices along with quantity of above items as input and provide 10% discount on ghee, 5% discount on milk and 7% discount on soap. Print discount of each item and the final bill which Asif has to pay

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

Asif buys four products detergent, ghee, milk and soap from Punjab Cash & Carry. You have to write a program in C++ to input prices along with quantity of above items as input and provide 10% discount on ghee, 5% discount on milk and 7% discount on soap. Print discount of each item and the final bill which Asif has to pay.                                                                                                                                                                                                                                                

             Please input price of 1 box of detergent: <User has to type price>

             Please input Quantity in boxes of detergent purchased: <User has to enter boxes purchased>

Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning