Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1 ( 5 points ) : Write a simple script called spvol that calculates the volume of a hollow sphere, that is , 4

Problem 1(5 points):
Write a simple script called spvol that calculates the volume of a hollow sphere, that is,43(ro3-ri3),
where ri=2 is the inner radius, and ro=4 is the outer radius. The script will prompt the user for the
inner and outer radii in the following format. Using these two variables, calculate the volume, and then
output the volume in the following format. Please pay attention to the number of decimal places in the
output.The inner radius is: 2
The outer radius is: 4
The volume of the sphere is: 234.57Problem 2(5 points):
Write a script called echoname that will prompt the user for his or her name, and then echo print the name
in a sentence in the following format.What is your name? Susan
Wow, your name is Susan!
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

Discuss all branches of science

Answered: 1 week ago

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago