Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write this program in python to hvae the EXACT output as the sample runs provided. The assumptions are the rules you need to follow.

please write this program in python to hvae the EXACT output as the sample runs provided. The assumptions are the rules you need to follow. Thbak you
image text in transcribed
image text in transcribed
image text in transcribed
Write a program that does the following: - Prompts the user if they served in the armed forces-expected answers are y or n - 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. Program is done. Sample Run 02 Did you serve in the armed forces? (y):n Program is done Sample Run 03 Did you serve in the armed forces? (y): I did serve That is an incorrect response. Did you serve in the armed forces? (y):n Program is done. Assumptions - Acceptable responses for the first input are n or 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 are not allowed to have a print statement in your If statement. - You may not use a list or dictionary. - Your print statements can only contain string literals and variables

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

Solve the triangle, if possible. 23 10 131 A C B

Answered: 1 week ago