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 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
question
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
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
Mathematics, 13.04.2021 18:30
question
Mathematics, 13.04.2021 18:30
question
English, 13.04.2021 18:30
Questions on the website: 13722361