Question: In Java: I want to create an array with the months: (Jan, Feb, Mar, April, May, June, July, Aug, Sept, Oct, Nov, Dec) I want

In Java:

I want to create an array with the months: (Jan, Feb, Mar, April, May, June, July, Aug, Sept, Oct, Nov, Dec)

I want the user to enter a bill amount for each month but

I want to ask the user to enter the month they want to enter a bill amount for and have it display the month and the bill amount input then move to the next month(element) asking for bill amount, etc.

Ex. (UI = user input)

What month would you like to enter your bill amount for: UI(March)

Please enter your bill for March: UI($89.43)

Please enter your bill for April: UI ($23.23)

Please enter your bill for May: UI($56.78)

Please enter your bill for June: UI ($19.12)

etc......

So I want to put the month from the above array with the bill amount the user enters and have it display all 12 months at the end

The month they entered shows up along with the bill amount they entered

Output EX:

March: $89.43

April: $23.23

May: $56.78

June: $19.12

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!