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
icon
Related questions
Question
Task 1:
In the month of RAMZAN people distribute food packages. Carrefour offers a food package which contains
the following items 10kg flour, Skg rice, Sitr oil, 2pack salt and 500gm spices. Price of above items are:
1. Flour per kg 95
2. Rice per kg 210
3. Oil per liter 410
4. Salt per pack 50
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++ program in 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
Transcribed Image Text:Task 1: In the month of RAMZAN people distribute food packages. Carrefour offers a food package which contains the following items 10kg flour, Skg rice, Sitr oil, 2pack salt and 500gm spices. Price of above items are: 1. Flour per kg 95 2. Rice per kg 210 3. Oil per liter 410 4. Salt per pack 50 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++ program in 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
Expert Solution
steps

Step by step

Solved in 4 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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr