My teacher wanted me to write 3 small programs, one was a program that calculates average rainfall for example. The hard part for me right now is also the most important...My main program is supposed to display a menu with the 3 choices (the 3 smaller programs) for you to select and then that operation runs, and repeat each operation over and over again until the user enters 0, which causes the program to terminate. Here's what the example she gave me looks like:
Choices:
1) Average Rainfall
2) Mileage Calculator
3) Enough Gas
Enter Your Choice (or 0 to Quit):
I'm currently on the control flow section of cprogramming for beginners...this is my weekly assignment due at midnight tonight!!! Any help would be super right now, i'm really lost, i understand programs that let you type a certain number which results in something being printed...but how do you get it so that an entire program runs? Do you just save the 3 seperate programs as .c and then you just direct it to the .c file name? I don't remember her saying anything like that though, or is it something simplier like a switch statement or something? Can you guys give me a basic format of what it should look like...
Thanks guys, hopefully someone will save my buns tonight...
-Anfernee Witherspoon, Jr.