#include #include void ex1(void), ex2(void), ex3(void), ex4(void), ex5(void), ex6(void), ex7(void), ex8(void), ex9(void); int main(void) { int number, running = 1; printf("CE112 Assignment 1\n"); printf("Name: Bart Simpson\n\n"); /* <------- USE YOUR OWN NAME INSTEAD OF BART'S */ while (running) { printf("Enter exercise number (use 0 to quit): "); scanf("%d", &number); getchar(); /* remove the newline char from input buffer */ switch(number) { case 0: running = 0; break; case 1: ex1(); break; case 2: ex2(); break; case 3: ex3(); break; case 4: ex4(); break; case 5: ex5(); break; case 6: ex6(); break; case 7: ex7(); break; case 8: ex8(); break; case 9: ex9(); break; default: printf("Invalid exercise number\n"); } } } /* DO NOT MAKE ANY CHANGES TO THE CODE ABOVE THIS LINE OTHER THAN THE NAME CHANGE */ void ex1(void) { printf("Exercise 1\n"); } void ex2(void) { printf("Exercise 2\n"); } void ex3(void) { printf("Exercise 3\n"); } void ex4(void) { printf("Exercise 4\n"); } void ex5(void) { printf("Exercise 5\n"); } void ex6(void) { printf("Exercise 6\n"); } void ex7(void) { printf("Exercise 7\n"); } void ex8(void) { printf("Exercise 8\n"); } void ex9(void) { printf("Exercise 9\n"); }