Question: I need know how to do the calculation for sphere value and surface area in C#. Only for arithmetic issue, i m confusing with how

I need know how to do the calculation for sphere value andsurface area in C#. Only for arithmetic issue, i m confusing withI need know how to do the calculation for sphere value and surface area in C#. Only for arithmetic issue, i m confusing with how to do the function. Thanks, and happy near year.

1. Sphere Write a class Sphere with the following properties: Private attributes: X.Y. Z coordinates of the center Radius Accessor and mutator methods (or properties) to Set and get the X Y. and Z coordinates Set and get the radius Get the volume and surface area of a sphere. For a sphere, volume = 40103 surface area = 41112 Write a Sphere Tester class to test the Sphere class. C# SphereW using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Spherew le class Sphere static void Main() int radius; int Xcoordinates; int Ycoordinates; int Zcoordinates; int SphereValue; int SurfaceArea; Console.Write("Enter the radius: "); radius = int.Parse(Console.ReadLine(); Xcoordinates = radius; Console.WriteLine($"X coordinates is [0, {Xcoordinates}]"); Ycoordinates = radius; Console.WriteLine($"Y coordinates is [{Ycoordinates},0]"); Zcoordinates = radius; Console.WriteLine($"Z coordinates is [{Xcoordinates}]"); SphereValue = 4*3.14159*radius*radius radius/3; SurfaceArea = 4*3:14159 *radius radius

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!