Question: Question 3 : Create a program that a user can use to manage notes for the experiment. ( 2 5 pts . ) ` `

Question 3: Create a program that a user can use to manage notes for the experiment. (25 pts.)
```
CORSmRE st%NU
11at - DLaplay all notes
view - View a note
add - Add a note
de1- Delete a note
exit - Exit program
Command: 1iat
There are no notes in the list.
Conimand: add
Enter your note here;Day 11: The experiment failed again. Sigh.
You added one note up.
Command: add
Enter your note here:Day 12: The experiment failed again. 5igh.
You added one note up.
Command: del
Note to delete: B
Invalld note number.
Command: 1iet
1. Day 11: The experiment Eailed again. Sigh.
2. Day 12: The experiment Eailled again. Sigh.
Command: Viow
number: 1
Day 11: The experiment failed again-5igh.
Command: del
Note to delete: 1
This note is deleted.
Command: 1:et
1. Day 12: The experiment failed again. Sigh.
Command: exit
Bye!
(3a) Follow the logical structure shown in the screenshot. You should create a text file named notes.txt to store all current notes of the experiment. (10 pts.)
(3b) For the list and view commands, if the file notes.txt is blank, display: There are no notes in the list. (2 pts.)
(3c) For the view and del commands, display an error message if the user enters an invalid note number. (4 pts.)
(3d) When you add or delete a note, the change should be saved to the file notes.txt immediately. That way, no changes are lost, even if the program crashes later. (4 pts)
(3e) When appropriate, use f-string to format output messages. (3 pts.)(3f) Be mindful of small details. For example, keep all input commands in lowercase (or at least be consistent), deal with invalid values, add newline characters, format, etc. (2 pts.)
```
Question 3 : Create a program that a user can use

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!