Programming Midterm The Great Word Game. For person1, enter in a name and two ints, a and b. For person2, ask for another name and it’s a and b. Both persons will have a tag, the first three characters of their name and their a and their b. If the name is less than 3, then use the whole name (i.e., should not crash). In the rest of the print statements, you will use this tag. Going in order, each player inputs a word for their word competition to calculate their “score”. Their score is their word’s length + their ‘a’ – the ‘b’ of the other player as their score. (so for p1, p1’s score = p1length+p1a-p2b) Compare the values in the formulae to determine who wins/loses. If the difference is greater than 10, double the a and b values of that player. Note: You do have to update the tag. Print out the result with each player’s win/loss amount (it will either be 1/0 0/1 or 0/0 since there is only one round). Example run: Enter P1’s name, a, and b>> mood 5 4Enter P2’s name, a, and b>> sovde 5 5moo_5_4: enter your word:>> ducksov_5_5: enter your word:>> catsarethebestanimaleversov_5_5 is the winner!sov_5_5 INCREASE!sov_10_10 CURRENT!win counts: moo_5_4: 0 sov_10_10:1
Blog
The nurse would teach the patient with calcium oxalate stone…
The nurse would teach the patient with calcium oxalate stones to reduce consumption of?
You look on a treatment sheet for a cow. This cow was diagno…
You look on a treatment sheet for a cow. This cow was diagnosed with a LDA. What does the medical abbreviation LDA stand for?
True or False: The rumen is the largest compartment of the r…
True or False: The rumen is the largest compartment of the ruminant stomach that serves as a fermentation vat; also called the paunch.
True or False; Gastroenterology is the study of the stomach.
True or False; Gastroenterology is the study of the stomach.
True or False: Peristalsis is the series of wavelike contrac…
True or False: Peristalsis is the series of wavelike contractions of smooth muscles
True or False: The term colitis means inflammation of the ga…
True or False: The term colitis means inflammation of the gallbladder
What are the four categories of Proteins
What are the four categories of Proteins
What does “histology” refer to?
What does “histology” refer to?
I am aware that this course has a midterm exam that must be…
I am aware that this course has a midterm exam that must be completed within the dates assigned by MDC (as shown on the schedule), no exceptions. I also acknowledge that this is a “proctored” (monitored) exam and I agree to make an appointment with ProctorU or an MDC Testing Center before the exam period begins. Lastly, I understand that failure to attempt this exam will result in me being considered an inactive student and that I will no longer be able to pass this course.