Computers and Technology

If necessary, create a new project named intermediate23 project and save it in the
cpp8\chap13 folder. also create a new source file named intermediate23.cpp. write
a program that displays the color of the item whose item number is entered by the
user. all item numbers contain exactly seven characters. all items are available in four
colors: blue, green, red, and white. the fourth character in the item number indicates
the item’s color, as follows: a b or b indicates blue, a g or g indicates green, an r or r
indicates red, and a w or w indicates white. if the item number does not contain
exactly seven characters, or if the fourth character is not one of the valid color
characters, the program should display an appropriate message. use a sentinel value to
end the program. save and then run the program. test the program using the following
item numbers: 123b567, 34ag123, 111r222, 111w222, 123, 1234567, and 111k456.

use the len() and substring methods (and of course there are others) to perform the necessary work.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:30, smariedegray
All of the following are characteristics that must be contained in any knowledge representation scheme except
Answers: 3
image
Computers and Technology, 23.06.2019 12:40, melaniem50
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c. transactions o d. rent tab
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, uday50
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
image
Computers and Technology, 23.06.2019 19:00, jacobbecker99
Choose the correct citation for the case which established the "minimum contacts" test for a court's jurisdiction in a case. select one: a. brown v. board of education of topeka, 347 u. s. 483 (1954). b. international shoe co. v. washington, 326 u. s. 310 (1945) c. haynes v. gore, 531 u. s. 98 (2000). d. international shoe co. v. washington, 14 u. s. code 336.
Answers: 1
Do you know the correct answer?
If necessary, create a new project named intermediate23 project and save it in the
cpp8\chap13...

Questions in other subjects:

Konu
Mathematics, 18.12.2020 01:50
Konu
Chemistry, 18.12.2020 01:50
Konu
Mathematics, 18.12.2020 01:50
Konu
Mathematics, 18.12.2020 01:50
Konu
Mathematics, 18.12.2020 01:50