0

I want to create menu driven program

I want to create menu driven program where 1 is for personal details 2 is for marks 3 is for result 0 for exit Now problem is how to output something when user input 3 for result before entering marks Plz suggest

6th Feb 2020, 1:37 PM
Shivang
Shivang - avatar
3 Antworten
+ 1
How do you plan on storing the details, marks and result? How is the menu set up? There are many ways how you could set up something like this. It would be best you show us what you've got so far.
6th Feb 2020, 1:48 PM
HonFu
HonFu - avatar
+ 1
First, you need to have a container that will take up all the marks you enter. Could be a list. Then, when 3 is chosen, you can check with if, if the marks list is empty, and if so, hand out an error message.
6th Feb 2020, 5:18 PM
HonFu
HonFu - avatar
0
https://code.sololearn.com/cOzpCo3vHJrP/?ref=app Like when user directly input 2 For result without entering marks ‚ how to handle that
6th Feb 2020, 5:13 PM
Shivang
Shivang - avatar