Intro Java Ch. 5 Conditional Statements (10 Days)
Please write the application for the following scenarios.
1) Write a program, Pay, which will take in the number of hours worked and figure out the weekly pay at or below 40 hours, but if it is more than 40 hours will figure out the over time pay. Include the following:
rate ($) = 15.00
standard (hours) = 40
pay (regular) = hours * rate
pay (overtime) = standard * rate + (hours-standard) * (rate*1.5)
2) Design and implement an application that reads an integer value representing a year input by the user. The program will determine if the year entered is a leap year. A year is a leap year if it is divisible by 4, unless it is divisible by 100 and not divisible by 400. For example 1900 is not a leap year but 2000 is. This is part of the Gregorian calendar therefore produce an error if a year is entered after the adoption of the calendar, 1582.
3) Write the program, TempConverter, which will ask the user which degree they wish to convert and then correctly output the conversion.
4) Write the program, EvenOrOdd, which will output if a number is even or odd.
5) Write the code that will take in three integers and determine which is the smallest integer.
6) Given the following tax table information, write Java code to assign the double TaxRate appropriately given the double pay. Output the amount a person will pay in taxes.
If pay is more than 100,000, tax rate is 40%
If pay is more than 60,000 and less than or equal to 100,000, tax rate is 30%
If pay is more than 30,000 and less than or equal to 60,000, tax rate is 20%
If pay is more than 15,000 and less than or equal to 30,000, tax rate is 10%
If pay is more than 5,000 and less than or equal to 15,000, tax rate is 5%
If pay is less than or equal to 5,000, tax rate is 0%
Challenge when you are finished with the lab: Design and implement an application that produces a multiplication table, showing the result of multiplying the integers from 1 though 12 by themselves.