ITCS 1212L Chapter Notes -Alphabet Inc., Return Loss, Pseudocode
Document Summary
To learn the process of creating functions and function prototypes. To learn the process of calling a function. To learn how to create a modular program. Practice developing the main algorithm which is composed of different functions calls: in this part, we would like to study a menu-driven modular program. You need to look at this code, enter and execute it and answer the following questions: Write pseudocode for the main( ) function, you can use if and switch as they are for the decision making. The program calculates the users" final membership rates. If the user selects choice a, the following functions (starting from main( ) ) are going to be called. main() showmenu() calculatemembershiprate() displaymembership() The functions that were called for choice a will also be called for choice b and c. For choice d, no functions will be called. The program is called menu-driven and modular because it uses functions and is based off menus.