subject

Write piece of code that reads a shorthand text description of a color and prints the longer equivalent. acceptable color b for blue, g for green, and r for red. if the user types something other than b, g, or r, the program print an error message. make your program case-insensitive so that the user can type an uppercase or lowercase letter. here are some example executions: what color do you want? b you have chosen blue. what color do you want? g you have chosen green. what color do you want?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:40
For this assignment you have to write a c program that will take an infix expression as input and display the postfix expression of the input. after converting to the postfix expression, the program should evaluate the expression from the postfix and display the result. what should you submit? write all the code in a single file and upload the .c file. compliance with rules: ucf golden rules apply towards this assignment and submission. assignment rules mentioned in syllabus, are also applied in this submission. the ta and instructor can call any students for explaining any part of the code in order to better assess your authorship and for further clarification if needed. problem: we as humans write math expression in infix notation, e.g. 5 + 2 (the operators are written in-between the operands). in computer's language, however, it is preferred to have the operators on the right side of the operands, ie. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix write a program that takes an "infix" expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % ( example infix expression: (7-3)/(2+2) postfix expression: 7 3 2 2 result: rubric: 1) if code does not compile in eustis server: 0. 2) checking the balance of the parenthesis: 2 points 3) incorrect postfix expression per test case: -2 points 4) correct postfix but incorrect evaluation per test case: -i points 5) handling single digit inputs: maximum 11 points 6) handling two-digit inputs: 100 percent (if pass all test cases)
Answers: 3
question
Computers and Technology, 22.06.2019 19:00
In he example code, what does the title attribute create? a tool tip an element a source a markup
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
You know the right answer?
Write piece of code that reads a shorthand text description of a color and prints the longer equival...
Questions
question
Mathematics, 16.09.2020 22:01
question
Spanish, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
English, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
English, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Social Studies, 16.09.2020 22:01
question
Health, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Social Studies, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Biology, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
question
Mathematics, 16.09.2020 22:01
Questions on the website: 13722361