Write a gui program that is a game to be played by the user.

Assignment Help Programming Languages
Reference no: EM13936077

C#

Creating a random number is not in the book I have. Any help would be most appreciated.

Write a GUI program that is a game to be played by the user. A new employee is working on a classified mission and the program will randomly pick an expected profit to be guessed by the user. The program must randomly select a number within the range of 1 to 900.

Use following steps as a guidance in writing the program.

1. Create a form that displays the rules of the game on a label.

2. Create a textbox for the user to input the guess and also a 'guess' button.

3. If the guess is outside the given range, provide a proper message and allow the user to continue playing.

4. When a user has a valid guess, display a proper message (either too high or too low) and tell the user to guess again, and clear the guess.

5. With a correct guess, display a proper message and change the form's background color to red and disable the guess textbox.

6. Create a `reset' button that allows the user to play another game with a new random number.

7. Create a `show me' button that displays the number and does not generate another random number.

8. Create an `exit' button to exit the program.

9. Ensure that you include error checking to prevent a user guess that is out of the given range and/or contains non-numeric characters.

10. Ensure to provide instruction to the user about how to use the program. Create a menu bar item which contains a `help' function.

11. Create a label that tracks the guess count per game. Each time a new number is generated, start the guess count at 0.

Reference no: EM13936077

Questions Cloud

Which way should you downsize in a crisis : Summarizing the main points of one of the readings. The handout should list the name of the author, the title of the article, the title of the journal, the publication date and page numbers along with a summary of its main points. Which way should..
Create a class diagram and define the classes : Completed class diagram should show each object's encapsulated methods, the inheritance between subject and course, and the composition of students in courses.
Interpretation of the essence of change management : The focus of the presentation should be one's interpretation of the essence of change management that emerged from one's case study analysis, literature, class activities discussion and individual reflection.
What is your optimal cutting strategy : Suppose that the farmer has 100 acres of land and can only grow 500 units of either crop per acre. If the price of water is expected to be $1.8 in 2014, how much water does this farmer consume?
Write a gui program that is a game to be played by the user. : Write a GUI program that is a game to be played by the user. A new employee is working on a classified mission and the program will randomly pick an expected profit to be guessed by the user. The program must randomly select a number within the ra..
Key facts of the case to change management : You need to be able to identify and verify sufficient details about the restructure so that you can link key facts of the case to change management theories from your readings.
Relationship between computer hardware and software : Collect, analyse, present and comment upon business data. · Identify the relationship between computer hardware and software.
Create a c# console application project : Within the namespace and outside of the wrapper class for Main create a class named assignment8 that inherits from System.Windows.Forms.
Compare interest rate parity and purchasing power parity : Comparing parity theories. Compare and contrast interest rate parity, purchasing power parity (PPP), and the international Fisher effect (IFE).

Reviews

Write a Review

Programming Languages Questions & Answers

  User defined function to calculate average of three scores

A user defined function that will calculate and display the average of the 3 scores that remain after dropping the highest and lowest scores the performer received.

  Write a program that must be able to estimate profits

The Barking Lot is a dog boarding facility. It provides boarding for any number of days and additional services such as grooming and walking. The Barking Lot currently has three employees, a list of 40 dog clients, and room to board eight dogs at ..

  Write a function that accepts temperature in degrees

write a function that accepts temperature in degrees fahrenheit degf andcomputes the corresponding value in degrees

  Write method that will take employee-s first name

Implement a class that will have: Implement the method that will take employee's first name and last name as the input and will return full name.

  Create application to generate a series of random numbers

Create the application to generate a series of 100 random numbers in the range of 1 through 1000. Save the series of numbers in a file.

  Design logic for application to allow user to enter item

Design the logic for an application that allows a user to enter an ordered item continuously until a sentinel value is entered. After each item, display its price or the message.

  Create a java application named distancecalculator1

Create a Java application named DistanceCalculator1.java to solve the following problem. An application is needed to allow a user to enter two cities and display the distances between them.

  Implement the factorial function in the io monad

Use imperative-style programming to implement the factorial function in the IO monad. In other words, create and initialize variables (references) using newIORef, modify their values using a while loop with ,readIORef and writeIORef, then have th..

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Program to store highest value using two-dimensional array

Write down a program which uses the two-dimensional array to store highest and lowest temperatures for each month of the year.

  Create a program that keeps track

Create a program that keeps track of the following information input by the user: First Name, Last Name, Phone Number, and Age. Now - let's store this in a multidimensional array that will hold 10 of these contacts. So our multidimensional arra..

  Unix or linux versus microsoft windows server

Programmability - address the benefits and disadvantages of using UNIX or Linux versus Microsoft Windows Server within the organization, then propose one of the products.

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