This is a continuation from the previous question. Pervious question answer is float hours = sc.nextFloat(); use this for this question    Now that the hours have been entered, write a loop that will run as long as the user enters bad hours data (0 or negative hours).  If the user entered bad hours data, it asks them again with the message Not a valid amount of hours. Enter the hours again:

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question

This is a continuation from the previous question. Pervious question answer is float hours = sc.nextFloat(); use this for this question 

 

Now that the hours have been entered, write a loop that will run as long as the user enters bad hours data (0 or negative hours).  If the user entered bad hours data, it asks them again with the message Not a valid amount of hours. Enter the hours again: 

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Basics of loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT