A company manufactures three products engines, pumps and fans. They give a discount of 10% on orders for engines if the order is for Rs. 10000 or more. The same discount is applicable for pumps whose value is more than Rs. 5000 and fans whose order value is more than Rs. 3000. Write a program to calculate the total bill for 6 engines of Rs. 12000 each, 4 pumps of Rs. 6000 and 6 fans of price 2500. Hint use if else statement

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter4: Control Structures I (selection)
Section: Chapter Questions
Problem 20PE: The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a...
icon
Related questions
Question
A company manufactures three products engines, pumps and fans. They give a discount of 10% on orders for engines if the order is for Rs. 10000 or more. The same discount is applicable for pumps whose value is more than Rs. 5000 and fans whose order value is more than Rs. 3000. Write a program to calculate the total bill for 6 engines of Rs. 12000 each, 4 pumps of Rs. 6000 and 6 fans of price 2500. Hint use if else statement.
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT