CSC404 Assignment1
CSC404 Assignment1
PROGRAMMING II
Lab Assignment 1
b. Assignment Submission
Lab assignments are submitted in a form of softcopy (MS Words and .cpp)
which consists of:
Algorithm
C++ program
Sample input and output
a) triangle ()
b) square ()
which can calculate the area of triangle and square respectively. Both functions receive parameters
length and width form user input and return the area for display.
Area for triangle and square can be calculated using equations below: