Write an if/else if statement that performs the same actions as in the above question when the value of quantityOnHand is equal to 0 or is greater than 0, but less than 10. However, when the value is 10 or more it should display the message “Quantity OK”.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 10RQ
icon
Related questions
icon
Concept explainers
Question

Write an if/else if statement that performs the same actions as in the above question when the value of quantityOnHand is equal to 0 or is greater than 0, but less than 10. However, when the value is 10 or more it should display the message “Quantity OK”.

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Control Structure
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
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT