subject

Take a look at the code examples below and see if you can figure out what the code will do and what the output will be. NOTE: These programs do not give very good prompts and outputs and comments - in a normal program, you would want to make sure to always give detailed prompts, outputs and comments. They are missing in these programs so that you are not given any clues as to what the program does. # Program 1 name = input() while not name. isalpha(): name = input() print(name. capitalize()) # Program 2 count = 0 sentence = input() for letter in sentence: if letter in "aAeEiIoOuU": count = count + 1 print(count) # Program 3 letter = input() word = "" for char in word: if char == letter: print(char) # Program 4 letter1 = input() letter2 = input() while letter2 == letter1: letter2 = input() alpha = "" location1 = alpha. find(letter1.lower()) location2 = alpha. find(letter2.lower()) if location1 == -1: letter1 = letter1.upper() else: letter1 = letter1.lower() if location2 == -1: letter2 = letter2.upper() else: letter2 = letter2.lower() alpha = alpha. replace(letter1, letter2) print(alpha)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:00
Which best compares appointments and events in outlook 2010appointments have a subject man, and events do notappointments have a specific date or range of dates, and events do notappointments have a start and end time of day, and events do notappointments have a location option, and events do not
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
Answers: 1
question
Computers and Technology, 24.06.2019 09:00
Technician a says that a new replacement part is always good. technician b says that sometimes recent repair work will be the cause of a complaint. who is correct? a. both technicians a and b b. technician a c. technician b d. neither technician a nor b
Answers: 3
You know the right answer?
Take a look at the code examples below and see if you can figure out what the code will do and what...
Questions
Questions on the website: 13722362