FINALS IN DCIT-25
Car Maintenance Log
Members:
Pugay, Normand Nieander M.
Sampilo, Jerald B.
Pallega, Justine Jio B.
Figure 1.
Figure 1 shows that we used that switch case for handling condition when asking
what to choose because the switch statement provide short syntax than if statement. The
case 1 adds a car which will be shown in Figure 2.
Figure 2.
This show the add car function that adds the cars in the system, it takes user input
about the car and adding it toi the linked list. After it it will redirect to the main method.
Figure 3.
This function function displays the car details. Inside the while is the details of the car
in linked list then loop to the other list after displaying.
Figure 4.
This function ask for the plate number of the car that you want to add maintenance
record, after asking it will compare the plate number to the linked list then in the if statement
it will request input for the maintenance detail to add inside the linked list vector to add the
details of the maintenance.
Figure 5.
This function shows the record of the selected plate number. The while loop is used
to cycle the linked lists and the if statement to check if the plate number is the same with the
plate number inputted by the user. If the plate number is found it will show the date of the
maintenance, details and cost of the maintenance then returns to the main method.
Figure 6.
Figure 6 shows the struct that is used in the system the car struct holds the variables
for the specification of the car. The vector uses the car_record struct to store the details of
the car maintenance.