Computer Science 1




This webpage is for my computer science 1 class. We
are learning code in C#. I have several assignments
that I would like to show you. Programming is difficult
but I call it hard fun.


Goodbye Program

9/11/19

This program has 4 buttons that, when pressed, display the word "Goodbye" in 4 different languages: Spanish, Hawaiian, French and Italian.

About Page

9/17/19

This program is an About Page for the fake company, Modi. It contains the slogan, logo and background of the company. Users can change the font and/or color of the text, as well as clear or exit the program.

Mailing Label

9/18/19

This program displays the mailing information of a customer when entered.

Car Rental

9/26/19

This program allows customers to rent cars. The customer enters their name, address, number of days used and the beginning and ending odometer reading. The program displays the miles driven and total charge to the customer. The manager can see the total amount received that day, the total number of cars returned, and the average amount spent by customers.

Car Rental Upgrade

10/4/19

This program allows customers to rent cars. The customer enters their name, address, number of days used and the beginning and ending odometer reading. The program displays the miles driven and total charge to the customer. The manager can see the total amount received that day, the total number of cars returned, and the average amount spent by customers. Additionally, it allows the customer to choose the type of car and add on any extras, such as a Bose sound system or leather seating.

Test Score

10/9/19

This program allows two users to enter their test scores and see the average score, their individual letter grades and who got a higher score.

Dice Roll

10/15/19

This program rolls two dice. It displays the number rolled on each of the dice, the sum of the dice faces and the total number of rolls. It also displays the probability of rolling each sum of faces and how manny times each sum was rolled.

Craps Game

10/22/19

This program rolls a random number and displays the face of whatever number is rolled on two different dices. It also calculates the sum of the faces and keeps track of the number of rolls. It displays the probabilty of rolling each sum and how many times each sum has been rolled

T-Shirt Sales

11/1/19

This program allows customers to purchase shirts from the company Very Very Boards. Customers can select a certain size and amount of shirts, as well as add a monogram or pocket to each of them. Their subtotal and the price of one shirt is displayed. Managers can see the average sale, total amount of all orders and the number of orders.

Slot Machine

11/8/19

This program allows player to play on the slot maching once money is deposited. One credit = $1; if one color is rolled on all four reels, the player wins!

Rock Paper Scissors

11/15/19

This program allows two players to pick rock, paper or scissors. A picture of whatever is chosen is displayed and a message box shows who won.

Fish

11/18/19

This program simulates an aquarium. It has an array of picture boxes to move the fish around the aquarium. It can move once for every time the "Move" button is pressed and for a certain of time if the "Auto" button is pressed. It keeps track of how many times the fish hits the side of the tank and how many times it has moved.

Fish 2D

12/10/19

This program randomly moves a fish left, right, up and down a figurative fish tank. There is also a shark that eats the fish if they end up in the same spot in the tank. It can automatically move faster or slower.

NCAA Football

1/6/20

This program displays data of two different college football teams, the Michigan State Spartans and the University of Michigan Wolverines. The user can choose the size of each teams' flag, view my opinion on the game and open an information page on each college. It also shows both teams' 2019-2020 bowl game schedule.

Tic-Tac-Toe

1/10/20

This program allows two players can play a game of Tic-Tac-Toe. Message boxes appear when the board is filled to tell players if the game was a tie, or if one player won. Players can press "New Game" to clear the board and play again.

n! Factorial

1/15/20

This program displays a regular, factorial, even number, odd number and fibonacci sequences based on the number the user puts in the textbox.

AI Game

1/27/20

This program allows a player to shoot at an enemy and gain points. Their health can deteriorate if the enemy gets too close or touches it. They can earn points by shooting the enemy.

Starfield

1/30/20

This program uses a timer to move white picture boxes to different corners, creating the illusion of moving through space.

Fish Aquarium

2/3/20

This program is a fish aquarium that has 20 fish in it. They randomly move about the tank, controlled with an array. They face the direction they are going. There is also a shark in the tank that is on a timer and moves around randomly. If the shark gets near a fish, the fish is dead at the bottom of the tank. There is also a bunch of bubbles that float to the surface and regenerate on the bottom. Lastly, a boat is at the top of the form. There is a fishing line in the water. If the fish touches the line, it is stuck to the line.

Number Array

3/3/20

This project is an array of 5000 numbers. It fills the array with random numbers from 1-5000, finds the highest, lowest and the average of the numbers in the array. It makes another array of 5000 random numbers and finds a certain randomly generated number. It displays the average and total times that number was found within the array.

Test Score Histogram

3/5/20

This project generates 100 random numbers to represent the test scores of 100 students. It displays the number of students that got each grade.

Mia DyReyes