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 00:30
At an open or uncontrolled intersection, yield if a. your road is paved and the crossroad is not b. the cross road is paved and yours is not c. you have two or more passengers in your vehicle d. you did not yield in the last intersection
Answers: 1
question
Computers and Technology, 22.06.2019 11:10
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
question
Computers and Technology, 23.06.2019 01:20
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
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, 10.02.2021 22:20
question
Mathematics, 10.02.2021 22:20
question
History, 10.02.2021 22:20
question
Mathematics, 10.02.2021 22:20
question
Mathematics, 10.02.2021 22:20
Questions on the website: 13722361