Computers and Technology
Computers and Technology, 10.03.2020 07:37, raiindrxp

The robots are invading (your written work)! Robots are sneaking into your text files. Write a program that reads in a line of text from the user and prints out whether there is a robot in the line of text. If the word robot occurs in all lowercase letters in the line, print out: There is a small robot in the line. If the word ROBOT occurs in all uppercase letters in the line, print out: There is a big robot in the line. If the word robot occurs in the line in any combination of upper and lowercase letters, print out: There is a medium sized robot in the line. Otherwise, if none of these conditions hold true, you should print out: No robots here. Your program should work like this:Line: I'm baking chocolate robot brownies There is a small robot in the line. Here is another example: Line: Look at the roBOt down the road There is a medium sized robot in the line. If the letters robot occur in the line, but as part of a bigger word, you should not report any robots found. Line: There's a strobotron at the concert. No robots here.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:30, amaliabarrera9
The can be used to paste text in any order
Answers: 1
image
Computers and Technology, 23.06.2019 05:30, savyblue1724707
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
image
Computers and Technology, 23.06.2019 11:00, la200564
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
image
Computers and Technology, 23.06.2019 14:30, Vanesssajohn2962
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
Do you know the correct answer?
The robots are invading (your written work)! Robots are sneaking into your text files. Write a progr...

Questions in other subjects:

Konu
Mathematics, 03.02.2021 22:30
Konu
Mathematics, 03.02.2021 22:30