Skip to content

double128/babys-first-MIPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Parking Lot Database Search

This is an assignment I had to write for my computer architecture course. It's the first MIPS program I've ever written and I think it works quite well. Not much explanation is needed here as the code is very heavily commented to provide explanation.

I was provided with this information to complete this program:

"Let’s assume you are asked to code a car-finding system for a local parking lot: You are provided with the location of all the cars in the parking lot. The information is given to you in three arrays. Each array contains specific information about the cars. The first array contains the model of the car, the second array the color and the 3rd array the model.

To find the location of the car you need to find the location that matches the Model, color and year.

You are asked to:

  1. Hard code the values for each of the arrays

  2. Prompt the user to enter 3 values as follows: “Please enter the code for the Model, the Color, and the year of your car”

  3. Read the integer values and store them

  4. Use the function count as a base to elaborate your code and navigate through the arrays

  5. Identify where in the parking lot the car is located, or if the car is not in the parking lot.

  6. Output the results as follows: If the car was found “Your car is located on Position [name]”. If the car was not found “We apologize for the inconvenience, your car is not in this parking lot”.

  7. Exit the program"

I was then given array values to hard-code into the code, each of which having 32 values inside them.

About

Assignment 2 - Parking lot database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published