Donald Trump has been so stressed lately that he wanted to squeeze a stress ball. As he squeezed a stress ball in the oval office, he realized he can make many stress balls of varying sizes and charge each customer $10.00 per cubic centimeter. Manufacturing these stress balls will generate jobs and Make America Great Again™! Your job is to create a program that solves for the size of each manufactured stress ball given the radius and finally solve for the total sales. Note that a stress ball is a sphere and that's 4 Volume sphere=r³ Input The first line refers to the number of products N (where N is between 1 and 50) products to be made. The next N lines is the radius of the balls (where radius is between 1.00 and 100.00) Output The first N lines of output shows the individual price of the manufactured stress ball. The last line of output shows the total amount of sales with those balls. Sample input/output

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Donald Trump has been so stressed lately that he wanted to squeeze a stress ball. As he squeezed a stress ball in
the oval office, he realized he can make many stress balls of varying sizes and charge each customer $10.00 per
cubic centimeter. Manufacturing these stress balls will generate jobs and Make America Great Again™!
Your job is to create a program that solves for the size of each manufactured stress ball given the radius and finally
solve for the total sales. Note that a stress ball is a sphere and that's
4
Volume sphere=r³
Input
The first line refers to the number of products N (where N is between 1 and 50) products to be made. The next N
lines is the radius of the balls (where radius is between 1.00 and 100.00)
Output
The first N lines of output shows the individual price of the manufactured stress ball. The last line of output shows
the total amount of sales with those balls.
Sample input/output
4
1.16
11.24
8.17
10.22
49.037
44611.7
17132.3
33535.3
95328.4
Transcribed Image Text:Donald Trump has been so stressed lately that he wanted to squeeze a stress ball. As he squeezed a stress ball in the oval office, he realized he can make many stress balls of varying sizes and charge each customer $10.00 per cubic centimeter. Manufacturing these stress balls will generate jobs and Make America Great Again™! Your job is to create a program that solves for the size of each manufactured stress ball given the radius and finally solve for the total sales. Note that a stress ball is a sphere and that's 4 Volume sphere=r³ Input The first line refers to the number of products N (where N is between 1 and 50) products to be made. The next N lines is the radius of the balls (where radius is between 1.00 and 100.00) Output The first N lines of output shows the individual price of the manufactured stress ball. The last line of output shows the total amount of sales with those balls. Sample input/output 4 1.16 11.24 8.17 10.22 49.037 44611.7 17132.3 33535.3 95328.4
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY