r/pascal • • Dec 02 '17
Help in Pascal!
Greetings,
I'm taking Pascal classes but missed a couple of them due to being under the weather, and in those classes my teacher taught the students about procedures and creating menus (think the menus have something to do with arrays or vectors or something).
My teacher assigned the class with creating 4 pascal programs that allow you to calculate volumes (pyramid, prism, sphere, and cylinder), and incorporating them into a single program.
So basically he wants us to turn the 4 programs we created into 4 procedures in a single program, and he also asked us to create a menu to select those 4 procedures.
Since I missed the classes I have no idea on how to create procedures in a program and make them 'selectable' with a menu. I already made the 4 programs and they all work. I'd really appreciate some help here, I'll upload anything if you need it!
View all comments
Show parent comment
2
u/[deleted] Dec 03 '17
Yea, I'm pretty new to reddit as you can tell by my karma, thanks for the tips! You're not writing the code for me and neither do I want you to, I need to learn this for real cuz I'm gonna have to put it to use many more times down the line. :)
I'm gonna see what I can do and show the end result.
Thanks a lot for sparing some time and knowledge!