subject

Write a program that will have a user guess whether a person is a musician or a writer. You will create a group of four names, two musicians and two writers, and show the user a name randomly selected from the four. The user will then guess whether they think the name belongs to a musician or writer. After a guess, the program will tell the user whether they are correct, repeat the name, and reveal the correct answer.

Requirements:

The program needs to contain the following

a. A comment header containing your name and a brief description of the program
b. At least 5 comments besides the comment header explaining what your code does
c. Four string variables, two musicians and two writers
d. A way to randomly display one of the four names to the user
e. Output asking the user whether the name displayed is a musician or a writer
i. If the user guesses correctly, congratulate them before outputting the displayed name and the correct answer
ii. If the user guesses incorrectly, output the displayed name and the correct answer
f. "Press enter to continue" and Console. Read(); at the end of your code

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Which of the following would not be considered a pc? a. mainframe b. desktop c. tablet pc d. laptop
Answers: 2
question
Computers and Technology, 24.06.2019 20:00
Avirus enters a computer or network as code embedded in other software directly from another computer
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
How does a vaccine prevent sickness and individual?
Answers: 2
You know the right answer?
Write a program that will have a user guess whether a person is a musician or a writer. You will cre...
Questions
question
Computers and Technology, 06.06.2021 15:50
question
Chemistry, 06.06.2021 15:50
question
Mathematics, 06.06.2021 15:50
question
English, 06.06.2021 15:50
question
Chemistry, 06.06.2021 15:50
Questions on the website: 13722361