Question: help with JAVA code Pete has a parking garage that charges $ 2 0 per half day, $ 3 0 per full day, and $

help with JAVA code
Pete has a parking garage that charges $20 per half day, $30 per full day, and $40 per overnight. Create a
program to output the information given in blue below using the following required steps:
Create 8 variables of type double named sunday, monday, tuesday, wednesday, thursday,
friday, saturday, and weeklyTotal (yes, start the variable names with a lowercase letter) and do
not assign them values yet
Create 3 more variables of named halfday, fullDay, and overnight and set them equal to the
parking fees given above. (Consider your choice of appropriate variable type.)
Use the information in the table below to create an expression to set each weekday variable to the
amount of money taken in that day, be sure to use the variables halfDay, fullDay and overNight in
your equations.
Use print statements* to produce the output shown below in blue.
Sunday: $ (print the value)
Monday: $ (print the value)
Tuesday: $ (print the value)
Wednesday: $ (print the value)
Thursday: $(print the value)
Friday: $ (print the value)
Saturday: $(print the value)
Total Revenues for the Week: $(print the value)
Sample partial output below. (Values shown are incorrect.)
..
Saturday: $100.0
Total Revenues for the Week: $200.0
help with JAVA code Pete has a parking garage

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 Programming Questions!