Task 1: In the month of RAMZAN people distribute food packages. Carrefour offers a food package which con the following items 10kg flour, Skg rice, Sitr oil, 2pack sait and 500gm spices. Price of above items are: contains 1. Flour per kg 95 2. Rice per kg 210 3. Oil per liter 410 4. Salt per pack So 5. Spices per 10 grams 5 Write a C++ program in which, take number of required bag from user and calculate the total price of required packages and display it on console. Example: Sample input: Enter required number of packages: 2 Sample output: Total bill is: 8800 Task 2: Faisal bank need a ATM machine. In this machine they need to add all possible currency divisions (1, 2, 5, 10, 20, 50, 100, 500, 1000, 5000). Write a C++ program in which, take required amount from user and find the required currency division which will give to user in order to pay the required amount. Example: Sample input: Enter required amount: 7895 Required currency division is: 5000: 1 1000: 2 500: 1 100: 3 50:1 20:2 10:0 5:1 2:0 1:0 Task 3: A carpenter wants to make a bed set; he wants to calculate the required wood for it. 10.5 sq foot wood required for side tables. 15 sq foot required for dressing table and 35.75 sq foot wood required for bed. Cost of each sq foot is 5000. Write a C++ programin which, take number of bed set required and calculate the total required wood and total cost of wood. Example: Sample input: Enter required number of bed set: 3 Sample output: Total bill is: 918750
Task 1: In the month of RAMZAN people distribute food packages. Carrefour offers a food package which con the following items 10kg flour, Skg rice, Sitr oil, 2pack sait and 500gm spices. Price of above items are: contains 1. Flour per kg 95 2. Rice per kg 210 3. Oil per liter 410 4. Salt per pack So 5. Spices per 10 grams 5 Write a C++ program in which, take number of required bag from user and calculate the total price of required packages and display it on console. Example: Sample input: Enter required number of packages: 2 Sample output: Total bill is: 8800 Task 2: Faisal bank need a ATM machine. In this machine they need to add all possible currency divisions (1, 2, 5, 10, 20, 50, 100, 500, 1000, 5000). Write a C++ program in which, take required amount from user and find the required currency division which will give to user in order to pay the required amount. Example: Sample input: Enter required amount: 7895 Required currency division is: 5000: 1 1000: 2 500: 1 100: 3 50:1 20:2 10:0 5:1 2:0 1:0 Task 3: A carpenter wants to make a bed set; he wants to calculate the required wood for it. 10.5 sq foot wood required for side tables. 15 sq foot required for dressing table and 35.75 sq foot wood required for bed. Cost of each sq foot is 5000. Write a C++ programin which, take number of bed set required and calculate the total required wood and total cost of wood. Example: Sample input: Enter required number of bed set: 3 Sample output: Total bill is: 918750
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 28PE
Related questions
Concept explainers
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr