Create 2 static final variables in Java , one for the minimum number of hours you should
Fantastic news! We've Found the answer you've been seeking!
Question:
Create 2 static final variables in Java , one for the minimum number of hours you should spend on this class each week, and the other for the max. These are 18-16 hours. Use MIN_HOURS and MAX_HOURS.
Print that range and then ask the user to enter how many hours they have spent this week to 3 decimal places.
No validation is needed. Just state to the user what you want and assume that they enter it correctly on this assignment.
Use the Decimal Format class to print the rounded value of the user's hours to 1 decimal place.
Both parts 1 and 2 go inside of one program.
Related Book For
Managerial Accounting
ISBN: 9780073526706
12th Edition
Authors: Ray H. Garrison, Eric W. Noreen, Peter C. Brewer
Posted Date: