Question: There are 2 parts to this assignment. Write a C + + program following the instructions below AND answer the given questions in a separate
There are parts to this assignment. Write a C program following the
instructions below AND answer the given questions in a separate word document.
I. Program
Open a new project in Visual Studio Community and name it in the form of
LastnameCourseSectionAssignmentnumber.
So I would name my project: MoorthyEGRONLAssignment
Write a C program that uses a switch statement to allow the user to select a
type of pet from the following options: Dog, Cat, Bird, Fish. After selecting
a pet, the program should prompt the user to answer two questions specific to that
pet type.
For example:
If the user chooses Dog, the questions could be:
What is your dog's name?
How old is your dog?
Make sure to include appropriate prompts and responses for each type of pet.
Requirements:
Use a switch statement to handle the pet selection.
Store the answers in variables and display them after both questions for the
chosen pet have been answered. ie something like Your dogs name is Loki
and it is years old!
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
