Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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 correct

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_2

Step: 3

blur-text-image_3

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

Data Analytics Systems Engineering Cybersecurity Project Management

Authors: Christopher Greco

1st Edition

168392648X, 978-1683926481

Students also viewed these Databases questions

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago