Question: Java please Write a program SpendingLog.java that performs the following, Ask user to enter daily spending amount for the week. (Day 1, Monday, through day

Java please  Java please Write a program SpendingLog.java that performs the following, Ask

Write a program SpendingLog.java that performs the following, Ask user to enter daily spending amount for the week. (Day 1, Monday, through day Sunday). Save the numbers in an array. Calculate the total, the average spending for the week. Print the results of total and average spending. Count the number of days that the spending is less than the average. Print it out. Print out the highest spending day. Sample output: Enter spending on day 1: 12.0 Enter spending on day 2: 65.0 Enter spending on day 3: 8.0 Enter spending on day 4: 5.0 Enter spending on day 5: 15.0 Enter spending on day 6: 80.0 Enter spending on day 7: 20.0 Total spending: $205 Average: $29.29/day #of days below average spending: 5 Highest spending day: Saturday

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!