Question: in python: Be sure to INCLUDE the program documentation and to follow the Program Submissions Guidelines document from the readings in Week # 5 .
in python:
Be sure to INCLUDE the program documentation and to follow the Program Submissions Guidelines document from the readings in Week #
Do NOT use methods or procedures that are beyond what we have covered in class so far including user defined functions, etc. You will receive a score of if you do
Write your program directly in the code editor below. Click on the "Run" button to execute the code and interact with the console window below the editor. Make sure that you follow the input and output formats.
Write a program that does the following:
Ask the user to Enter b for bird or m for mammal:
Validate that input to allow only b B m or M
Print "That is not a valid input" if an incorrect value was entered and have the user reenter the input
Upon successful input, display "You chose bird" or "You chose mammal" depending on their input.
Ex: If the input is:
Enter b for bird or m for mammal:B
the output is:
You chose bird
Ex: If the input is:
Enter b for bird or m for mammal:g
the output is:
That is not a valid input Enter b for bird or m for mammal: the input starts over again until successful
Be sure to INCLUDE the program documentation and to follow the Program Submissions Guidelines document from the readings in Week #
Do NOT use methods or procedures that are beyond what we have covered in class so far including user defined functions, etc. You will receive a score of if you do
Write your program directly in the code editor below. Click on the "Run" button to execute the code and interact with the console window below the editor. Make sure that you follow the input and output formats.
Write a program that does the following:
Ask the user to Enter b for bird or m for mammal:
Validate that input to allow only b B m or M
Print "That is not a valid input" if an incorrect value was entered and have the user reenter the input
Upon successful input, display "You chose bird" or "You chose mammal" depending on their input.
Ex: If the input is:
Enter b for bird or m for mammal: B the output is:
You chose bird
Ex: If the input is:
Enter b for bird or m for mammal: g the output is:
That is not a valid input
Enter b for bird or m for mammal:
the input starts over again until successful
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
