Question: Instruction follow please using sentinel programing method to write a program. 1.1 Problem 1 (1 mark) Problem: Write a program that prompts for and reads

 Instruction follow please using sentinel programing method to write a program.

Instruction follow please using sentinel programing method to write a program.

1.1 Problem 1 (1 mark) Problem: Write a program that prompts for and reads strings until a string that starts with the letter "A" is entered (inclusive), then prints the shortest string that was entered. Hint: Use the sentinel pattern. Sample run: Answer: Submit your code as problem1.py and insert screenshots of your program output for the following two scenarios: - Enter a string: The warmth of the sun, Enter a string: Faces all aglow. Enter a string: It's time for summer fun Enter a string: As the happy faces show. - Enter a string: He can't afford a new red suit Enter a string: With boots and matching belt, Enter a string: But his smile is warmer than the sun Enter a string: That can make the snow tops melt. Enter a string: My dad would like to be Santa Enter a string: And fill the world with glee

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!