Question: It is vitally important that your program never crash as a result of a menu selection, regardless of what the user have chosen to do.
It is vitally important that your program never "crash" as a result of a menu selection, regardless of what the user have chosen to do. To clarify, if the user chooses to increase the length of a sequence and no sequences are currently in the database, your program must print an error message but it must not crash. Similarly, if a user has loaded a sequence with 0 values (i.e, an empty list) and then asks to decrease its length by 1, the program must print an error message but it must not crash On the following page, you can find a transcript example of how a partial implementation olf this program might appear during execution (but of course the phrases, words, and letters your program replaces are expected to be different). Transcript Example (with user input in red) Welcome to the Number Sequence Database. Your database is currently empty. You can: a) Look at all the sequences currently stored b) Increase the length of a sequence c) Add a new sequence What would you like to do? B That action cannot be completed because your database has no sequences It is vitally important that your program never "crash" as a result of a menu selection, regardless of what the user have chosen to do. To clarify, if the user chooses to increase the length of a sequence and no sequences are currently in the database, your program must print an error message but it must not crash. Similarly, if a user has loaded a sequence with 0 values (i.e, an empty list) and then asks to decrease its length by 1, the program must print an error message but it must not crash On the following page, you can find a transcript example of how a partial implementation olf this program might appear during execution (but of course the phrases, words, and letters your program replaces are expected to be different). Transcript Example (with user input in red) Welcome to the Number Sequence Database. Your database is currently empty. You can: a) Look at all the sequences currently stored b) Increase the length of a sequence c) Add a new sequence What would you like to do? B That action cannot be completed because your database has no sequences
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
