APPLIED PROGRAMMING (APR520S) ASSIGNMENT 1
Problem Solving Tools Total Marks: 50 Marks Due: Friday 22 August 2014
Suppose we want to construct a C/C++ program that can be used to calculate the area or the volume for a range of 2-D and 3-D shapes respectively. Consider only the following shapes.
(a) 2-dimensional shapes: triangle, square, rectangle, circle, and trapezium
(b) 3-dimensional shapes: cuboid, cylinder, cone, and sphere
Suppose that we want our program to firstly ask the user whether to calculate the area (2-D) or volume (3-D), then secondly ask for the type of the shape, then thirdly ask for inputs of all required dimensions, then fourthly calculate the required area or volume, and then finally display the required result to the user.
- Construct a flowchart for this C/C++ program. 
- Develop a pseudocode for this C/C++ program. 
- Construct a hierarchy (structure) chart for this C/C++ program. 
- Construct an IPO chart for this C/C++ program.