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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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