Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program language is Python Program 2 Loop While Loop) Write a program that does the following: Prompts the user if they served in the armed
Program language is Python
Program 2 Loop While Loop) Write a program that does the following: Prompts the user if they served in the armed forces - expected answers are y orn If the user is a member of the armed forces, prompt them for which branch (see list below) and print the slogan for that branch. . Branch Air Force Nav Army Marloes Coast Guard Assumptions Slogan Aim Hich Fored by the Se Army Strong the few, the proud Bom Ready Acceptable responses for the first input are nor y-the user should be re-prompted until correct data is provided The second prompt will always have a correct response. You may only use constructs that have been presented so far in this course. You may not use a list or dictionary Your print statements can only contain string literals and variables. . . Sample Run 01 Did you serve in the armed forces? (y): y Which branch did you serve: Navy Alm High Program is done. Sample Run 02 Did you serve in the armed forces? (b): n Program is done Sample Run 03 Did you serve in the armed forces? (): I did serve That is an incorrect response. Did you serve in the armed forces? (): Program is done Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started