Description: During flight searches, bookings, or payments, the system could crash or stop working.
Encounter: Users encounter system freezes or crashes when attempting to search for flights, make reservations, or process payments, which causes frustration and the loss of data.
Using rand()% 2 == 0 to mimic faults, we've added deliberate random failures to the bookFlight and processPayment routines. When an error occurs, exit(1) is used to end the program.
Description: During flight searches, bookings, or payments, the system could crash or stop working. Encounter: Users encounter system freezes or crashes when attempting to search for flights, make reservations, or process payments, which causes frustration and the loss of data.