Question: Write a program called Ch 2 _ LotterySpending that prompts the user to enter the dollar amount won in the lottery and the number of
Write a program called ChLotterySpending that prompts the user to enter the dollar amount won in the lottery and the number of years that heshe wants it to last. Calculate the maximum monthly spending amount so that the person can spend to avoid running out of money early. Include all team members' names as comments at the top of the file name. Submit a java file. No other file format will be accepted. Sample runs are shown below. Sample Run Enter prize amount and number of years to last: Prize Money: $Number of years to last: Number of months to last: Maximum monthly spending: $ Sample Run Enter prize amount and number of years to last: Prize Money: $Number of years to last: Number of months to last: Maximum monthly spending: $ Sample Run Enter prize amount and number of years to last: Prize Money: $Number of years to last: Number of months to last: Maximum monthly spending: $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
