Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 : ( 1 0 marks ) Write a program showing that the volume and surface area of a sphere of radius 0 .

Question 1: (10 marks)
Write a program showing that the volume and surface area of a sphere of radius
0.1234567789e2 is about 7881.948508 and 1915.313445, respectively.
The volume of a sphere is 43 radius ?3 and the area is 4 radius ?2.
Question 2: (10 marks)
Compute and print the number of minutes in a year.
Question 3: (10 marks)
Write a program that asks the user to enter three test scores. The program should display the
score of the three tests, and the accurate average of the three scores.
Try your program with the following values:
Test 1=89.45
Test 2=78.32
Test 3=92.56
The average score should be 86.78 rounded to 2 digits
Question 4: (15 marks)
Write a program that asks the user to enter their full name. Use a String variable to store the
input. The program should display the following:
The number of characters in the name.
The name in uppercase letters
The name in lowercase letters
The first character in the name
Lab Rubrics
This lab is marked out of 45.
Your code must be compiled using the jGrasp IDE. If your code does not compile using jGrasp
(for any reason), a grade of 0 will be earned. No exceptions!
Upload your completed .java file. Make sure you upload the .java file and not the .class fi
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions