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

  Write down an application with three labeled text elds one

write an application with three labeled text ?elds one each for the initial amount of a savings account the annual

  Write a program which defines an integer array of size

Write a program which defines an integer array of size three (3), the size of the array should be a constant variable. Read data using loops for this array from the user. The data of this array will be the number of vacation days of an employee in..

  Prepare class to include three data member

Prepare Class called Employee that includes three pieces of information as data members - first name (type string), last name (type string) and monthly salary (type float).

  Program to create new departments to sustem

An ability to add new departments to system. The program should permit you to create new departments. Each department has a name, and a location (e.g. "Sydney" or "Tokyo").

  Design a program allow the user to select air

Design a program that displays a menu allowing the user to select air, water, or steel. After the user has made a selection, he or she should be asked to enter the number of seconds the sound will travel in the selected medium

  Display information about users that are currently logged in

Create a new file titled TestWork.scr Change the permissions on this new file to add the execute bit for user, group, and owner. Edit your new file using Gedit or VI and change it so it performs the following actions:

  Create application to read customer information from file

You have been tasked to create the application which reads customer information from file to determine in which states you have customers.

  List the assembly language program

List the assembly language program (of the equivalent binary instructions), generated by a compiler from the following pseudo-code program. Assume all variables are integer.

  Explain book constructor to accept and initialize data

Create and execute the class called Book which contains instance data for title, author, publisher, and copyright date. Explain the Book constructor to accept and initialize this data.

  Create a directory called registration

All the pages you created in Assignment One should also be present in Assignment Two not just the new pages or modified pages.

  Write a web application which will give report of balance

Write a web application which will provide a report of the balance held in the visitor's account during the past several months.

  Program-twos complement

Overview: The real point of this assignment is to give you a chance to work with exceptions. But you can't do anything with exceptions unless there's something that can go horribly wrong, so we need something with plenty of potential for error . ...

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