Mid Sem Java Programming For Level 200
Mid Sem Java Programming For Level 200
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: