Answered step by step
Verified Expert Solution
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 points:
Write a simple script called spvol that calculates the volume of a hollow sphere, that is
where is the inner radius, and 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:
The outer radius is:
The volume of the sphere is: Problem 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!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started