Robert X.

asked • 08/04/21

Please help with Java Q

1) Create an array of double type and 10 elements long for your daily expenses. Store in the first position the value 60.0 (60 dollars to start with) and prompt user for expenses to enter in the remaining positions. Enter the following expenses: in the next positions ( leave the remaining positions as 0). Enter only numeric values not the text.

Starbucks coffee 2.50

Transportation to school 3.95

Breakfast 5.50

Stationaries 6.00

Lunch 8.50

Snacks 3.25

Transportation home 3.95

Print the array contents on one line

Print your remaining balance at the end of the day on a new line

1 Expert Answer

By:

Patrick B. answered • 08/04/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.