Dania Nasereddin's Projects
This program calculates the area of a rectangle from user inputted width and height then compares the width and length.
This program reads user input for base and height of a triangle and then outputs the area of the triangle.
This program has a baseball player class and four objects from that class all in a header file called Bplayer.h. Each baseball player has a role, an ID, and a batting average. The catcher is generated by the default values and the rest of the team has their stats inputted by the user. The batting average must be between 0-1. In the end the program prints out their batting averages and calculates the batting average of the team.
A program that converts from Celsius to Fahrenheit
Daily Sales is a program that takes the total of money from the user and prints them in a table with the total. It only takes three values as ints (without decimals).
The app to rule your world.
This program prompts the user to enter the number of values to be summed. Then it creates a dynamic array of that size and repeatedly prompt the user to enter values until the array is full. Then it will print the sum of the values. You will then ask the user for 3 numbers and for each value it will say whether it is in the array or not. If the value is not in the array append it to the array. In the end it will delete the dynamic array before terminating the program.
This program evaluates an expression from the command line, only includes addition and subtraction.
This program generates the number of elements of the Fibonacci sequence given by user input.
Made a graphic using pygame to test out the different functions.
Class assignment to make a player and food that the player can eat
This program reads input from the terminal until âqâ is entered. Then it draws a histogram to display the lengths of each word in its input.
The program lab13 compares two numbers and prints the smaller value. The program lab13-2 displays a line in y=mx+b form. The program lab13-3 swaps x and y and prints it.
The program lab8-1 calculates the sum and average of a max of 100 user inputs and lab8-2 prints out num.
The program asks the user for how many nodes are in the list. Then it asks the user for a numeric value to store in each node. Once the list has been fully populated, it prints the entire list.
Lab 5 is a program that contains a function that copies one array into another. The program as a whole reads 3 lines of input from the user, and prints the longest line.
Mailing Address is a program that different parts of an address from the user and prints them in in one line at the end.
A recreation of Pac-Man with the addition of portals. Pacman can now shoot portals using spacebar. This was made with three other students using pygame.
This program displays patient ID, patient age, and patient blood type.
This program will make a quiz with the questions and answers that are imputed by the user. The quiz can have up to five questions and it will print it out in the end.
This program contains the functions ptinrect, rectPerimeter, and rectArea. ptinrect tests whether a point structure is inside a rectangle structure. rectPerimeter calculates and returns the perimeter of a rectangle structure. rectArea calculates and returns the area of a rectangle structure.
Recreated space invaders in pygame
This program is a 2D array that takes in three students scores for three test scores and outputs their scores and their average with an option to update their scores.
This program is an RPG that allows the user to attack or to run away from an enemy. The player and enemy will take turns attacking if the player chooses to attack. The player has 20 health and the enemy has 10 health. The game ends when the player or enemy runs out of health.
This is a program that allows the user to interact with a virtual pet. The pet has an age and hunger and happiness status. The user can choose to feed it or play with it. If the user chooses to play, happiness with increase by 1. If the user chooses to feed, hunger with increase by 1. They pet will die at age 5 or if either status reaches 0. Each action will increase its age by 1 and for each action a random status will decrease by 1.
This program prompts the reader to choose what to look for in the text file and then prints the words for that key word chosen.
This program is a tic tac toe game that can result in a player winning or a tie (cat's game). The board is created using a 2D array of chars.
This app is a Trivia Quiz with 10 shuffled questions. The score will increment with each correct answer!