Question: forget about this one. nvm From the Deitel book 3.13 ( Employee Class) Create a class called Employee that includes three instance variables-a first name

From the Deitel book 3.13 ( Employee Class) Create a class called Employee that includes three instance variables-a first name (type String ), a last name (type String) and a monthly salary ( double ). Provide a constructor that initializes the three instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, do not set its value. Write a test app named Employee Test that demonstrates class Employee's capabilities by creating two Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee 's yearly salary again. 1. If the pay rate is less than $15/hour print "look for another job" 1e;se print "Accept the job" 2. If the total rain was less than an inch then print "It just rained and if the total rain was between 1 to 3 inches the print "It rained hard", otherwise print "It was a wash" 3. Tax calculation on the residential property is as follows: a. If the property's value is less than or equal to $250,000 the tax charged is $100 dollars, b. If the property's value is between $250,000 and less than $500,000 then tax charge is 10 percent of the property's value, otherwise the tax charge is 15% of the property's value. Program should print out the tax charged a b 4. Flight ticked charges are as follows: If the traveler age is less the 2 there is no charge If the traveler's age is between 2 and 10 there is a 10% discount on the ticker price. If the traveler is a senior citizen (age 55 and over) there is a 15 percent discount on the ticket cost, otherwise traveler has to pay the full ticket price. Program should print the age and the final ticket price 5 An UBER has a base charge of $10 and would charge the occupants as follows If UBER occupancy is less than or equal 50% the total UBER charge is, the base charge add to $5 charge per mile If UBER occupancy is higher than 50% and less than 85%, the total UBER charge is the base charge add to $10 charge per mile If UBER occupancy is greater than 85%, the total UBER charge is the base charge add to $15 charge a b C. per mile. Program should print the total UBER charge
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
