reate a C# program named animals that will simulate a guessing game. Assign a type of animal to a variable and ask the user to guess the animal. Check to see if the animals match and if they do not, ask them for another guess. The program must follow these rules: Get user input and store the value(s) in a variable  Use variables with different data types ( examples: int, string, Arrays, etc)  Use at least one if/else statement  Use at least one method  Create and use at least one class  You program must compile without warnings or errors and show output to the terminal  Feel free to add any other functionality

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
create a C# program named animals that will simulate a guessing game. Assign a type of animal to a variable and ask the user to guess the animal. Check to see if the animals match and if they do not, ask them for another guess. The program must follow these rules:
  • Get user input and store the value(s) in a variable 
  • Use variables with different data types ( examples: int, string, Arrays, etc) 
  • Use at least one if/else statement 
  • Use at least one method 
  • Create and use at least one class 
  • You program must compile without warnings or errors and show output to the terminal 
  • Feel free to add any other functionality 
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning