

Code
​
Coding is a large part of our lives and has some effect on almost all aspects of our daily routines. I first started coding in my senior year of high school. The endless possibilities drew my attention to it. In high school, I was taught Java and mainly created entertaining programs such as rock-paper-scissors.
In college, I have created more complex programs in Visual Studio that involve an AI that makes more decisions based on the user's inputs. I have also created programs in MATLAB that obtained information from external programs like Excel or from user input. An example of this is my supersonic rocket nozzle project. I created custom VBA code in Excel to calculate the Mach numbers and Mach angles within a rocket nozzle and other variables. These variables were then used to compute the data to design the shape of the rocket nozzle.
I am also teaching myself Python for a Satellite Toolkit (STK) certification. The certification requires me to write in Python to do more complex things in STK than what might be done in STK alone.
​
To return to the Code section of Skills, click here.

Orbital Maneuver Planning
The image shown is a 2D representation of a several space maneuvers. Each maneuver showcases how a rocket can transfer from a Low Earth Orbit (LEO) to a Greater Earth Orbit (GEO). The options that I coded include a simple Hohmann transfer and a bi-elliptical transfer.
The code was written as an ideal case, only the gravitational force due to the Earth was considered, and the code ignores all other forces on the rocket. I wrote the code, so I could update it later to add transfers to other bodies in space at a future time. The code takes the mass and radius of the central body as well as the initial and final orbit altitudes of the rocket. The code then computes a time interval for the transfer and plots the path of the rocket in astronomical units.
3D Graphing Calculator
The program shown is a 3D graphing calculator I created for vector calculus. I made it in MATLAB. I wanted it to ask for the function and bounds, so I would not have to alter the code for every surface I wanted to visualize. The program asks for the lower and upper bounds in rectangular coordinates and for a function in the form f(X,Y). The program calculates and connects the points to create a representation of the surface in an external window.
It was helpful for visualizing surfaces that deviated from the standard surfaces we dealt with.


Jacks or Better
The program on the left is a card game that compares the generated hand for the computer and the player/s. The rules are similar to a standard game of poker, but the players are allowed to swap cards until they are satisfied.
Shown here is what appears in the command window when the program is run and "play with a friend" is selected.
Color Identifying Program
The program on the right is a game that I coded in high school. Instructions are given in the picture, and hovering over it shows the game interface.
The game is a competition between two players to determine who is better at determining which box has a different color. The players can choose the difficulty which determines how close the colors will be. The boxes are assigned a number 0-255 which determines their color, and the difficulty changes how close the random color will be to the other boxes (easy: color - 25, medium: color - 15, hard: color - 5). The random color is assigned to one of the four boxes and points are added or deducted based on the player's choice.
Distance Minigame
The program here is a game that involves a cube traveling on a plank. Shown here is the Unity window running the code from Visual Studio. The "250" is the score assigned to the distance traveled by the cube. Hitting a red block or falling off fails the game and displays the final score. After a short amount of time passes, the block and score are reset.
