Question: I need help writing a code in C programming, below I have listed the description. Design a hexadecimal safe similar to a hotel room safe.
I need help writing a code in C programming, below I have listed the description.
Design a hexadecimal safe similar to a hotel room safe. When the safe is open, a user can enter a four hex digit code to lock it. Each hex digit must be entered together with an enter signal. Once a four-digit code has been entered, the safe must show it is armed for locking. Once armed, the user can enter either a lock or cancel locking signal. The safe must always indicate whether it is open or locked. Once the safe is locked, only the code used to lock it can be used to unlock it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
