Answered step by step
Verified Expert Solution
Question
1 Approved Answer
COMPLETE WORKING THROUGH C# (C SHARP): Write a program that has a user try to guess whether a person is a writer or an actor.
COMPLETE WORKING THROUGH C# (C SHARP):
Write a program that has a user try to guess whether a person is a writer or an actor. To do this, you will have to code two writers and two actors, four names in total, and show the user one of these names. The user then guesses whether they think the displayed name belongs to a writer or an actor. After each guess, the program tells the user if they are correct, displays the name, and reveals the correct answer. The program then continues and repeats through the remaining names. Tasks 1) The program must contain the following: a. A comment header with your name, class, and a description of the program b. At least 5 comments explaining what your code does c. Four string variables, two writers and two actors d. Output asking the user whether they think the name displayed is a writer or an actor i. If the user is correct, congratulate them and output the name and answer ii. If the user is incorrect, output the name and correctStep 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