1: Volume.cpp) Write a program that reads a radius and prints the volume and surface area of the sphere with that radius. (V = 4/3 n r; S = 4 n r2; use n = 3.14159) %3D
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
Please use C++ and only use header<iostream>. Any others will not be accepted. Thank you!
![**Title: Sphere Volume and Surface Area Calculation Program**
**Objective:**
To develop a C++ program named "Volume.cpp" that calculates and displays the volume and surface area of a sphere based on a given radius.
**Instructions:**
1. **Program Requirements:**
- The program should prompt the user to input a radius.
- Calculate the volume and surface area of the sphere using the provided formulas.
- Print the calculated volume and surface area.
2. **Mathematical Formulas:**
- **Volume of a Sphere (V):**
\[
V = \frac{4}{3} \pi r^3
\]
- **Surface Area of a Sphere (S):**
\[
S = 4 \pi r^2
\]
- Use \(\pi = 3.14159\) for the calculations.
By implementing this program, students can practice basic programming, mathematical calculations, and understand the properties of a sphere.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3f71a40a-4cff-4959-8946-a68dc332c184%2F1b30ff46-65d0-4001-8098-283a59fae81e%2F3smonvq_processed.jpeg&w=3840&q=75)

Step by step
Solved in 3 steps








