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

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.

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!