C# PET’S NAMEDICE SIMULATIONBINARY SEARCHINHERITANCEDATABASE CONNECTION

PET’S NAME (INDIV.)

Design, implement, test, and debug a C# XXXXX that displays a pet’s name when a button is clicked.

Create a graphical user interface (GUI) with a button labeled “Pet’s name.”
Add three radio option buttons on the form, each representing a different pet name.
When the Pet’s name button is clicked, the program will display the name of the pet selected in the radio option button in a label on the form.

Zip the files of the project together and submit the zipped file.


DICE SIMULATION (INDIV.)

Design, implement, test, and debug a C# XXXXX to simulate the rolling of two dice 20 times, and write and read results from a file.

When the user clicks a Write button, the program will write each die value and the sum of the dice for each roll into a sequential data file.
After the file is written, the user may click a Read button to read the items back in and display the results.

Design a GUI for the program that will be intuitive for a novice user.

Write the code for the program and test the results.

Zip the files of the project together and submit the zipped file


BINARY SEARCH (INDIV.)

Choose one of the following options.

Option A

Build a text file of string objects. They may be people’s names, cities, zip codes, and so forth. Include at least 20 items in the list.

Design, implement, test, and debug a C# XXXXX to read the text file into an array and sort it. The GUI should have a text field into which the user can enter a search term. The program will perform a binary search to determine if the term is found in the array that was read from the file. The program will let the user know whether or not the search term was found and how many comparisons were made during the search.

Submit the project and the text file used.

Option B

Design, implement, test, and debug a C# XXXXX to show the frequencies of the sum of two dice for 100 rolls. The program will read the file you created in the dice simulation in Week Two. Include the following:

Declare an array that represents the possible results of throws of two dice. (2, 3, 4, 5, 6, 7, 8, 9, 10, 11 or 12)
For each entry in the file, increment the element of the array corresponding to that result.
Last, display the frequency count for that simulation. Show the 11 possible values and the frequency that the sum occurs in your file.

INHERITANCE (INDIV.)-

Create a class called Employee that will include the attributes of all employees of your organization. Include at least five PROPERTIES. If you are not currently working, you may use a fictional organization or one with which you are familiar.

Add a second class that inherits from the Employee class and describes a subgroup of employees. For example, you may define the class as Managers. In the case of city employees, you may define the class as Police Officers. Define at least three PROPERTIES that are specific to this subclass.

Design, implement, test, and debug a C# XXXXX that asks the user to enter PROPERTIES for members of the subclass on a single form. The entries will include fields for the PROPERTIES of the main Employee class as well as the subclass. Include a second form that will display a cumulative list of all the employee data that the user has entered.

DATABASE CONNECTION (INDIV.)-

Build a database using the attributes of the Employee class and the subclass you defined in Week Four as your fields. Populate the database with at least five employees.

Design, implement, test, and debug a C# XXXXX to access the database and display the entries. The form should include a dropdown list that lists the employee names. When a selection is made, display the value of the attributes on the form.
Powered by