6. Write a program that reads in the radius and height of a cone and computes the volume using the following formulas (pi (n) is 3.14159): volume = 1/3 *n* radius* height Enter radius of a cone: 3 Enter height of a cone: 11 The volume is 103.672 l om 7. Write a program that ask user to input 3 values and display the largest values. Enter first value: 33 Enter second value: 74 Enter third value: 66 The largest value is 74 8. A supermarket AEON SDN. BHD offered a special discounts in conjunction of year-end sales on the following items: Discounts (%) 35 Items Clothing (adult) Clothing (children) Stationery Electrical appliances 20 Shoes 40 15 25 Calculate the price to be paid by Pn. Asimah when she bought two dress shirts for her husband with a price RM79.90 for each, five dress shirts for her children with a price RM39.90 for each, five dress pants for children with a price RM49.90 for each, one dozen of pencils with a price RM15.99 and a pair of shoes with a price RM99.90.

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

C++ programming

LAB ACTIVITY 1 - ALGORITHM
Based on the problem below, you are required to:
i. Identify the IPO
ii. Draw the flowchart

6. Write a program that reads in the radius and height of a cone and computes the volume
using the following formulas (pi (1) is 3.14159):
volume = 1/3 * n* radius? • height
Enter radius of a cone: 3
Enter height of a cone: 11
The volume is 103.672
Vol
11 cm
3 cm
7. Write a program that ask user to input 3 values and display the largest values.
Enter first value: 33
Enter second value: 74
Enter third value: 66
The largest value is 74
8. A supermarket AEON SDN. BHD offered a special discounts in conjunction of year-end
sales on the following items:
Items
Discounts (%)
Clothing (adult)
Clothing (children)
35
40
Stationery
Electrical appliances 20
Shoes
15
25
Calculate the price to be paid by Pn. Asimah when she bought two dress shirts for her
husband with a price RM79.90 for each, five dress shirts for her children with a price
RM39.90 for each, five dress pants for children with a price RM49.90 for each, one
dozen of pencils with a price RM15.99 and a pair of shoes with a price RM99.90.
Transcribed Image Text:6. Write a program that reads in the radius and height of a cone and computes the volume using the following formulas (pi (1) is 3.14159): volume = 1/3 * n* radius? • height Enter radius of a cone: 3 Enter height of a cone: 11 The volume is 103.672 Vol 11 cm 3 cm 7. Write a program that ask user to input 3 values and display the largest values. Enter first value: 33 Enter second value: 74 Enter third value: 66 The largest value is 74 8. A supermarket AEON SDN. BHD offered a special discounts in conjunction of year-end sales on the following items: Items Discounts (%) Clothing (adult) Clothing (children) 35 40 Stationery Electrical appliances 20 Shoes 15 25 Calculate the price to be paid by Pn. Asimah when she bought two dress shirts for her husband with a price RM79.90 for each, five dress shirts for her children with a price RM39.90 for each, five dress pants for children with a price RM49.90 for each, one dozen of pencils with a price RM15.99 and a pair of shoes with a price RM99.90.
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Constants and Variables
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
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