Rajvi2 / CSCN71030_Group11

0 stars 0 forks source link

Test Passed, but a possible enhancement could be made to make the program better. Bug 4: Unhandled System Crashes #4

Open MaryaI4 opened 1 year ago

MaryaI4 commented 1 year ago

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.

MaryaI4 commented 1 year ago

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.