A wholesale furniture store that sells sofas in bulk needs a program to help their cashiers. Write a C+ program that asks users to enter the sofa price and the number of sofas sold, then calculate the 8% tax per sofa and the delivery fee of 3.40 BD per sofa. The program must calculate and print: 1- Tax per sofa. 2- Total delivery cost. 3- The total price which is the sum of the total price of all sofas, total tax and delivery fees for all sofas. All numbers should be displayed with 1 decimal place. Sample output: Enter Price per table and Number of sofas: 6.3 10 Tax Per Sofa: 0.5 Total delivery cost: 34.0 Total Price = 102.0

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
icon
Related questions
Question
C++
A wholesale furniture store that sells sofas in bulk needs a program to help their cashiers. Write aC++program that asks
users to enter the sofa price and the nurmber of sofas sold, then calculate the 8% tax per sofa and the delivery fee of 3.40
BD per sofa. The program must calculate and print:
1- Tax per sofa.
2- Total delivery cost.
3- The total price which is the sum of the total price of all sofas, total tax and delivery fees for all sofas.
All numbers should be displayed with 1 decimal place.
Sample output:
Enter Price per table and Number of sofas:
6.3 10
Tax Per Sofa: 0.5
Total delivery cost: 34.0
Total Price =: 102.0
Transcribed Image Text:A wholesale furniture store that sells sofas in bulk needs a program to help their cashiers. Write aC++program that asks users to enter the sofa price and the nurmber of sofas sold, then calculate the 8% tax per sofa and the delivery fee of 3.40 BD per sofa. The program must calculate and print: 1- Tax per sofa. 2- Total delivery cost. 3- The total price which is the sum of the total price of all sofas, total tax and delivery fees for all sofas. All numbers should be displayed with 1 decimal place. Sample output: Enter Price per table and Number of sofas: 6.3 10 Tax Per Sofa: 0.5 Total delivery cost: 34.0 Total Price =: 102.0
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Function Arguments
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