subject

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 22.06.2019 13:00
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
Nathan wants to create multiple worksheet containing common formatting styles for his team members. which file extension him to save these worksheets? nathan to create multiple worksheets with common styles. he needs to save them with the extension.
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
These factors limit the ability to attach files to e-mail messages. location of sender recipient's ability to open file size of file type of operating system used
Answers: 2
You know the right answer?
If necessary, create a new project named intermediate23 project and save it in the
cpp8\chap13...
Questions
question
Biology, 31.10.2020 09:00
question
German, 31.10.2020 09:00
question
Mathematics, 31.10.2020 09:10
question
Mathematics, 31.10.2020 09:10
question
Mathematics, 31.10.2020 09:10
Questions on the website: 13722359