Objectives:
To demonstrate the ability of students to:
- design and develop a console program that receives inputs from user and display correct outputs
- manipulate arithmetic calculation via programming
- use appropriate control structures to handle program logics based on different conditions and generate correct outputs. For instance, selection and repetition, multiple selections and others control statements.
- construct their program modularly by using program functions to perform manipulations and operations in solving problems.
Requirements:
a. Your program must:
- Display the equipment list in the learning lab
- Allows user to choose one of the equipment from the list.
- Able display the number of the selected equipment in the lab.
- Allows user to add of remove number of equipment in the lab.
- Display the list of equipment and their amount in the list (show number through display number of ‘*').
b. You should design your program to perform the required tasks modularly and to increase code re-usability. Hence, your program should:
i. create one function for each activity;
ii. make use of parameter(s) passing; and
iii. make use of return value(s).
c. Applying appropriate control structures to handle program logic in your program:
i. Includes at least two (2) different types of selection or multiple selection structure; and
ii. Includes at least two (2) different types of repetition structures