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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education