Need help writing this Java program. Any Solvers?

Greg Hosa

New member
Hi everyone, I need help with wrtting this program below, hopefully within hours! Running out of time!. If you could past in the code that would be awsome, goodluck and many thanks!


Write a Java program that prompts for and reads in two integer
values:

• The hour (on a 24 hour clock) a noise reading is taken (you may assume the
user will enter an integer in the range 0..23, inclusive)
• The loudness of the noise in decibels (you may assume the user will enter an
integer in the range 0..200, inclusive)
Your program needs to calculate if a fine should be levied against the producers of the
noise, and what the amount of the fine should be. The program then prints out the fine.
The rules for determining the fine are as follows. The amount of a fine depends of the
time the noise was produced, and the loudness of the noise. Noise during sleeping time
(regarded as being 10pm or later but before 6am) is regarded more seriously than noise
at other times. Outside of sleeping time, a noise louder than 90 decibels incurs a $100
fine. During sleeping time, there are two rates of fine: if the noise is between 70 and 110
decibels, the fine is $200 but if it is 110 decibels or louder, the fine is $300.

Should Keep Everyone Busy! But who on here can do it the fastest i wonder :-)
 
Back
Top