C package program

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 4PE
icon
Related questions
Question
100%

Write a C package program that reads the price of an integer variable x and the fee of a persona variable coloration from the keyboard ('R' for red, 'Gº for green, 'B' for blue), and decides if the color is suited in accordance to the given range. Red Blue + Green + 10 20 zero 30 If x is between zero and 10, coloration have to be pink If x is between eleven and 20, coloration ought to be inexperienced If x is between 21 and 30, colour have to be blue If the shade is applicable in accordance to the given range, print “correct color”; in any specific case print "wrong color” If x is out of this range, print out of range”  

Expert Solution
steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Knowledge Booster
Algebraic Expressions
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