following (make sure to number your answers): 1. Assign a value of 3.141 to the constant PI  2. Prompt the user to enter the radius (as shown in the example below), convert to an integern and store it in the variable: radius 3. Calculate the color the sphere (formula given below) and store the result in the variable: volumeOfSphere given the formula to compute the volume of a sphere is: 43πr3(where r is the radius) 4. Display the computed volumeOfSphere as a comma separated valu with no decimal places on the console with the prefix as shown in the example below.   For example: if we put 10 for the radius, then your console should display as follows: Enter the radius: 10 Volume of the sphere: 4,188

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter2: Using Data
Section: Chapter Questions
Problem 15E: Write a program named FahrenheitToCelsius that accepts a temperature in Fahrenheit from a user and...
icon
Related questions
Question

Write Python statements and to do the following (make sure to number your answers):

1. Assign a value of 3.141 to the constant PI 

2. Prompt the user to enter the radius (as shown in the example below), convert to an integern and store it in the variable: radius

3. Calculate the color the sphere (formula given below) and store the result in the variable: volumeOfSphere

  • given the formula to compute the volume of a sphere is: 43πr3(where r is the radius)

4. Display the computed volumeOfSphere as a comma separated valu with no decimal places on the console with the prefix as shown in the example below.

 

For example: if we put 10 for the radius, then your console should display as follows:

Enter the radius: 10

Volume of the sphere: 4,188

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Random Class and its operations
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr