Write a program to determine if the given grade is within the range of 1.00 to 5.00
Consider the following table:
State a java program that use Switch structure to print one of the above statements depending on the
selected day. Write comments to explain your code.
day statement
Monday " Monday is the first day of the week !"
Tuesday " Tuesday is the second day of the week !"
Wednesday "Wednesday is the third day of the week !"
Thursday "Thursday is the fourth day of the week !"
Friday “Friday is the fourth day of the week !"
Saturday “Saturday is the fifth day of the week !"
Sunday “Sunday is the sixth day of the week !"
Any other day “ Unknown day !"
Use Java to develop a payroll software to assist in paying the salary of employee/staff of a certain university named XYZ University. Assume we have three employees in the university with ranks - Programmer, Admin and Librarian, write a Java program to calculate and printout the total salary of these three employees in the institution. The program should have the following features: 1) Create a public class named: Employee that would get the firstname and lastname of each employee from the keyboard/user 2) Create three objects: prog, adm and lib, for programmer, admin and librarian respectively to access the properties in Employee class. 3) Create EmployeeSalary as parent interface to store basic_sal, housing_all and transport_all. The values for these three items are fixed for all Employee and has abstract function calculateSalary. 4) Create three sub classes namely: programmer, admin and librarian to store bonus, overtime and total salary for each employee
In this project, students are to use Java to develop a payroll software to assist in paying the salary
of employee/staff of a certain university named XYZ University. Assume we have three employees
in the university with ranks - Programmer, Admin and Librarian, write a Java program to calculate
and printout the total salary of these three employees in the institution. The program should have
the following features
Provide the toString method so that when a Quiz object is printed it gives the following Output ID: //id of quiz here Topic ://The topic of the quiz here Total Marks :// marks Obtained Marks :// marks obtained here Percentage // the percentage of marks and the % symbol Also provide a separate Main class that reads the values for the instance variables and creates an instance of the Quiz class
• isWaterFreezing. This function should return the bool value true if the temperature stored in the temperature field is at or below the freezing point of water. Otherwise, the function should return false.
• isWaterBoiling. This function should return the bool value true if the temperature stored in the temperature field is at or above the boiling point of water. Otherwise, the function should return false.
Write a program that demonstrates the class. The program should ask the user to enter a temperature and then display a list of the substances that will freeze at that temperature and those that will boil at that temperature. For example, if the temperature is −20 the class should report that water will freeze and for 100 water will boil.
class that stores a temperature in a temperature member variable and has the appropriate constructor, setter and getter functions. In addition to these, the class should have the following member functions:
• isEthylFreezing. This function should return the bool value true if the temperature stored in the temperature field is at or below the freezing point of ethyl alcohol. Otherwise, the function should return false.
• isEthylBoiling. This function should return the bool value true if the temperature stored in the temperature field is at or above the boiling point of ethyl alcohol. Otherwise, the function should return false. •
Develop car rental desktop application for Honda Sdn Bhd. First, create a class named rentalCar that hold value renter's name, IC no, Size of the car rented, daily rental fee, length of rental in days, and total rental fee. The class contains a set and get method that requires all the rental data except the daily rate and total fee, which are calculated based on the size of the car, economy at RM 60 per day, midsize at RM 80 per day, or full size at RM 120 per day. The class also includes a display () method that displays all the rental data.
Write an application named UseCarRental that prompts the user for the data needed for a rental and creates an object of the correct type. Display the total rental fee. Save the file as
rentalCar.java, UseCarRental.java.
create create a class named Suites it's main method holds an integer variable named number of suites to which he will assign a value Create a method to which you pass number of suites The method displays the suites and dozens For example 40 sweets is three dozens and four left over
Write a program to calculate the property tax. property tax is calculated on 85% of the assessed value of the property. For example, if the assessed value is 500 000, the property tax is 425 000. Assume that the property tax rate is R1,25 for each R100 of the assessed value. Your program should prompt the user to enter the assessed value of the property. Store the output in a file in the following sample format:
Assessed Value: R 500 000.00
Taxable Amount: R 425 000.00
The tax rate for each R100.00 is R 1.25
Property Tax: R 5 312.50