How do I construct this program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I construct this program?

I just started learning c language on my own. So, I am a complete newbie when it comes to coding. I've had this task in C. It is a program that runs multiple tasks. It asks for an input from the user. It should look like this: 1. Populate list 2. Search first 3. Search last 4. Find Max 5. Find Min 6. Print List 7. Quit (I am not asking for someone to code it for me, I need some advice on what to do first or should I use Switch-case or the if-else statements. But if it's against the rules or something in the community, please let me know so I can delete this question as soon as possible. Thanks! Any help is welcome)

26th Oct 2021, 3:43 AM
Leoror
Leoror - avatar
2 Answers
0
Hi Jay Matthews . I totally get the idea. I am currently working on it. Thank you!
26th Oct 2021, 3:59 AM
Leoror
Leoror - avatar
0
Create do-while loop Populate options in the loop Create switch case Inside that Case 1 populate the list Case 2 search first Case 3 search last Case 4 find maximum Case 5 find the minimum Case 6 print list Case 7 exit For this application either arrays or linked list is effective
27th Oct 2021, 6:12 AM
sree harsha
sree harsha - avatar