Write a program that declares two LocalDate objects and prompts the user for values.

The Harrison Group Life Insurance company computes annual policy premiums based on the age the customer turns in the current calendar year. The premium is computed by taking the decade of the customer’s age, adding 15 to it, and multiplying by 20. For example, a 34-year-old would pay $360, which is calculated by adding the decades (3) to 15 and then multiplying by 20. Write an application that prompts a user for the current year and a birth year. Pass both to a method that calculates and returns the premium amount, and then display the returned amount. Save the application as Insurance.java.


The Renew Your Home Company estimates each job cost as the cost of materials plus $35 per hour while on the job, plus $12 per hour for travel time to the job site. Create a class that contains a main() method that prompts the user for the name of a job (for example, Patel bathroom remodel), the cost of materials, the number of hours of work required, and the number of hours of travel time. Pass the numeric data to a method that computes an estimate for the job and returns the computed value to the main() method, where the job name and estimated price are displayed. Save the program as JobPricing.java.
Write a program that declares two LocalDate objects and prompts the user for values. Display output that demonstrates the dates displayed when one, two, and three months are added to each of the objects. (When you test the program, be sure to try some date late in the month so you can observe what happens when a following month does not have as many days.) Save the application as TestMonthHandling.java.

Last Completed Projects

topic title academic level Writer delivered