Assume you have N eggs and you pack them 12 to a carton. Write a program that determines how many egg cartons
you need and how many eggs will be left over.
The output should be formatted as follows:
Total number of eggs is ___
Number of cartons needed is ___
Number of eggs left over is ___
Run your program for N = 11 and N = 37.
An insurance company will adjust the amount of automobile insurance policies according to the following rules:
If a customer is under the age of 25 and has had no claims in the past year, there is no increase to their policy
price. If they are under the age of 25 and they have had any claims in the past year, their policy
price is increased by $100. If they are 25 or older and have had no claims in the past year, there is no
increase to their policy price. If they are 25 or older and have had any claims, their policy price is
increased by $50.
Write a program that will determine the amount of policy price increases.
Use a variable 'age' for the age and a variable numClaims for the number of claims.
Your output should be formatted as follows:
Age = ___ Claims = ___ Policy Increase = ___
Make sure you run enough combinations of data to ensure that your program works correctly.
Please submit .java source code files and screen captures.