Mid Semester Examination
Java Programming, Level 200
1 ½ hrs.
Answer all
Question 1:
Write a simple java program to convert the temperature in Fahrenheit to Celsius. The formula for
the conversion is as follows Celsius = (5/9) * (Fah-32).
Question 2:
Write a program to compute the volume of a cylinder, given the radius on length of the cylinder.
Using the formulas below;
i. Area = radius * radius * 3.142,
ii. Volume = area * length.
Question 3:
Write a program that reads the following information and prints a payroll statement. Employee’s
Full Name, Number of hours worked in a week, Hourly pay amount and Amount tax rate.
Question 4:
Write a program that reads in investment amount, annual interest rate and number of years, and
display the future investment value using the following formular:
Future investment value = Investment Amount*(1+monthly interest Rate) year*12.
Note:
i. Use java application to solve the above questions
ii. Create a folder with your student ID number only and save all your files in it.
iii. Zip the folder and forward it to: danblow000@gmail.com
iv. Submission Date & Time: Sunday, 24th September 2023, 12:00 pm prompt.