[solved]-1 Volume Sphere Computed Equation V Nr3 V Volume R Radius Sphere Write Java Program Called Q39078058
JAVA Programming HELP ASAP

1. The volume of a sphere is computed by the equation V = nr3 where V is the volume and r is the radius of the sphere. Write a java program called VolumeOfSphere.java that declares a constant n as 3.142, inputs the radius of the sphere from the user and prints out the following sample output: Enter the radius of the sphere: 4 The volume of the sphere with radius 4 is 268.117 2. Write a java class called Event.java representing an event set up in someone’s calendar. This class should store three bits of information about the event: • What is the title of the event (a String) • Where is the event going to take place (a String) What is the date the event is going to take place (a GregorianCalendar) • How many hours long is the event (a Double) The Event class should have eight methods • setTitle(String title) for setting and storing the title of the event String getTitle() for returning the title of the event setVenue(String venue) for setting and storing the venue of the event String getVenue() for returning the venue of the event setDate(GregorianCalendar date) for setting and storing the date of the event String getDate() for returning the date of the event in MM/dd/yyyy setDuration(double duration) for setting and storing the duration in hours of the event double getDuration() for returning the length of the event in hours Show transcribed image text 1. The volume of a sphere is computed by the equation V = nr3 where V is the volume and r is the radius of the sphere. Write a java program called VolumeOfSphere.java that declares a constant n as 3.142, inputs the radius of the sphere from the user and prints out the following sample output: Enter the radius of the sphere: 4 The volume of the sphere with radius 4 is 268.117 2. Write a java class called Event.java representing an event set up in someone’s calendar. This class should store three bits of information about the event: • What is the title of the event (a String) • Where is the event going to take place (a String) What is the date the event is going to take place (a GregorianCalendar) • How many hours long is the event (a Double) The Event class should have eight methods • setTitle(String title) for setting and storing the title of the event String getTitle() for returning the title of the event setVenue(String venue) for setting and storing the venue of the event String getVenue() for returning the venue of the event setDate(GregorianCalendar date) for setting and storing the date of the event String getDate() for returning the date of the event in MM/dd/yyyy setDuration(double duration) for setting and storing the duration in hours of the event double getDuration() for returning the length of the event in hours
Expert Answer
Answer to 1. The volume of a sphere is computed by the equation V = nr3 where V is the volume and r is the radius of the sphere. W… . . .
OR

