Create a rock-paper-scissors application

Assignment Help Computer Engineering
Reference no: EM132118911

READ THE INSTRUCTIONS!

MUST BE DONE IN CSHARP AS A CONSOLE APPLICATION

Create a Rock-Paper-Scissors Application

Create a Class to contain the game data and any input or output methods. The main method should contain no Console methods, all functionality should be contained within the class.

The program will ask the user's name, and the number of matches to play. This input needs to be validated as an odd number (in order to avoid ties), with a maximum value of 9.

The individual match results should be stored in an array.

The program will then prompt the user to choose rock, paper or scissors. It will generate a random value for the computer and declare a winner. In the case of a tie, that match will repeat until a winner is found.

After the number of matches specified above the program will provide a game summary for each match and the overall winner. For instance:

Match 1 (Player won) Rocks vs Scissors [after 3 ties] Match 2 (Computer won).... Match 3 (Player won)... Overall winner: Player! Congratulations!

Reference no: EM132118911

Questions Cloud

What is the value of stock today : After that, the firm expects to maintain a constant dividend growth rate of 2% per year. What is the value of this stock today if the required return is 14%?
Why data structure you use gives a good tradeoff : Suppose we want to create an address book which contains names, phone numbers, emails, and other personal information.
How much do you need to invest today : If you deposit money now, you can earn 7% per annum with a 50% probability, 6% with a 25% probability and 8% with a 25% probability.
Ensuring the law is fulfilling its purpose : If so, what? If not, why not? What about businesses - do they have a role in ensuring the law is fulfilling its purpose?
Create a rock-paper-scissors application : Create a Rock-Paper-Scissors Application. Create a Class to contain the game data and any input or output methods.
Organizational structure in a global environment : Need help determining the pros and cons of a company using a functional organizational structure in a global environment.
What is a service blueprint : What is a service blueprint, and how does a "poke-yoke" fit into the design of a service blueprint?
Perpetual inventory system : How are discounts recorded in a perpetual inventory system versus a periodic inventory system?
Food and beverages industry : Which of external factors (Legal and regulatory, Global, Economic, Techno-logical, Innovation, Social, Environmental, Competitive Analysis)

Reviews

Write a Review

Computer Engineering Questions & Answers

  Wat are the merits and demerits of easily obtainable

what are the advantages and disadvantages of easily obtainable information? what are the advantages and disadvantages

  Determine a good asymptotic upper bound

Determine a good asymptotic upper bound on the recurrence - write a comment between each pair of lines describing what is true when the program reaches that point in the code.

  When is a good time to utalize a frame

can the information in the frames have been better presented in a table or links rather than a frame.

  Explain the costs involved in the creation of the system

Describe the types of business needs that can be addressed using information technology-based solutions.

  What is olfactory-based warning system and how does it work

What is an olfactory-based warning system and how does it work? And, when and why might an olfactory-based warning system be superior to visual or auditory warning systems for alerting humans to potential danger?

  How many times the terms hardware and software appear

Keep a diary for a week of how many times the terms hardware and software appear in television commercials.

  Write program using array that asks user to input 10 numbers

Write a program using array that asks user to input 10 numbers, then calculates the average of those numbers and finds out the total number that is greater or equal to the average.

  Explain the golden rules and principles of design

Explain the Golden Rules and Principles of Design. Use both knowledge in the world and knowledge in the head. Exploit the power of constraints, both natural and artificial.

  How does the shape of the topology influence message flow

How does the shape of the topology influence message flow through a LAN? What is a gateway and what is its purpose?

  Describe the disaster recovery and business continuity

How was the organization impacted? What losses did it suffer? Describe the disaster recovery and business continuity that the business had in place?

  Discuss the systems operation support and security phase

Discuss the systems operation, support, and security phase. Describe the different system maintenance types and their importance. Critique different backup and disaster recovery options.

  What are the programming paradigms

Modern-day languages do not subscribe to one programming paradigm; multiple programming paradigms are embedded in a language.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd