Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C sharp/ cod blocks stick to the instructions plz best regards Solved: | Chegg.com xh Stream TV and Movies Li xConnect-Class: Principle x (27) Lesson

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
C sharp/ cod blocks stick to the instructions plz best regards
Solved: | Chegg.com xh Stream TV and Movies Li xConnect-Class: Principle x (27) Lesson su /pid-484099-dt-content-rid-2782342_1/courses/CS-210-01.2018FA 36088/02ProgrammingProject Problem Statement Many students get into computer science to write video games. For this problem, you are to develop a simple computer game that allows two users to play one match of Rock, Paper, Scissors. In the game of Rock, Paper Scissor, players simultaneously choose one of the eponymous elements by flashing a hand gesture and comparin the results. The winner is chosen as follows: Rock beats Scissors (because it breaks them). Scissors beats Paper (because it cuts it). Paper beat Rock (because it covers it and makes it sad). If both players choose the same element, then the match is a tie. Program Specifications For this assignment, you are given the program specification in the form of an analysis and design for a series of functions that must be implemented. Each function accomplishes one task needed for this program. You should write a function and then test it with a main program that ensures that the function works by itself. Once the function is working, move on to the next function, which will require a different main function to test it. Once all of the individual functions work, the final main function that actually will play the game is written. Function: print greeting Analysis: no parameter or returned objects Design: This function's task is simply to print out the greeting at the beginning of the program. See the sample run for the exact text format Function: get_pick Analysis: Objects player's number character user picked converted to uppercase char Type Movement received returned Name int player num ch Design: This function's task is to prompt a user by player number to enter either R for rock, P for paper, or S for scissors and return the character entered in uppercase. Here are the steps to the accomplish this: 1. Ask the user by player number for an input of R, P, or S 2. Convert the input to uppercase 3. Return the input Notes: See the sample run for the exact text format of the prompt. Read the user's input using scant( %c", &ch); Note there is a space before the % symbol. This will make scanf ignore any whitespace before the input. Convert ch to uppercase using the toupper function in the ctype.h library. Don't forget to include the library at the top of your file. The toupper function receives a character argument and returns the uppercase equivalent for alphabetic letters. If the argument is not a letter, it returns the argument . . REMEMBER! Test this function (and all other functions) with a throwaway main function

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

Step: 3

blur-text-image

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

Explain walter's model of dividend policy.

Answered: 1 week ago

Question

d. How will lack of trust be handled?

Answered: 1 week ago

Question

Are the rules readily available?

Answered: 1 week ago