1
Assignment # 7
DEPARTMENT OF ENGINEERING MATHEMATICS
COMPUTER PROGRAMMING
ENGM 1081
ASSIGNMENT # 7
Due Date: Monday October 28, 2013, 10:00 am
1. If you are in a city and have to walk from where you are, having planar coordinates (0, 0),
to a destinatio

Assignment # 2
1
DEPARTMENT OF ENGINEERING MATHEMATICS
COMPUTER PROGRAMMING
ENGM 1081
ASSIGNMENT # 2
Due Date: Monday September 22, 2014 11:00am
1. Write a program which reads a car license plate and then prints the result to the screen. Your
program outp

Assignment # 1
1
DEPARTMENT OF ENGINEERING MATHEMATICS
COMPUTER PROGRAMMING
ENGM 1081
ASSIGNMENT # 1
Due Date: Monday September 15, 2014, 11:00 am
1. Here is part of a program that begins by having the user input the x and y dimensions of a
rectangle in m

Assignment # 4
1
DEPARTMENT OF ENGINEERING MATHEMATICS
COMPUTER PROGRAMMING
ENGM 1081
ASSIGNMENT # 4
Due Date: Monday October 6, 2014, 11:00 am
1. Write a program, derivative.c, to approximate the derivatives of ex , cos(x) and sin(x) at
x = 0 using the l

Assignment # 3
1
DEPARTMENT OF ENGINEERING MATHEMATICS
COMPUTER PROGRAMMING
ENGM 1081
ASSIGNMENT # 3
Due Date: Monday September 29, 2014, 11:00 AM
1. Suppose that at a particular steel mill, steel bars are grouped into classes according to their
yield ten

Assignment # 10
1
DEPARTMENT OF ENGINEERING MATHEMATICS
COMPUTER PROGRAMMING
ENGM 1081
ASSIGNMENT # 10
Due Date: Friday Nov 29, 2013, 10:00 am
For these questions you are not allowed to use the string functions in string.h
1. Write a program which declare

Assignment # 9
1
DEPARTMENT OF ENGINEERING MATHEMATICS
COMPUTER PROGRAMMING
ENGM 1081
ASSIGNMENT # 9
Due Date: Monday November 18, 2013, 10:00 am
1. If we have a system of masses mi at points (xi , yi ), i = 1, 2, . . . , n, in the plane, then the
moments

Assignment # 8
1
DEPARTMENT OF ENGINEERING MATHEMATICS
COMPUTER PROGRAMMING
ENGM 2081
ASSIGNMENT # 8
Due Date: Monday November 4, 2013, 10:00am
1. The ow of toxic waste through a permeable media (e.g. soil) can be modeled using dierential equations. Howev

/* File rectangle.c
Given the dimensions of a rectangle in metres, compute its area and
perimeter length.
Programmer: Jiang Silong Date:2015/9/21
/* Question 1 source code */
include our libraries
#include <stdio.h>
#include <stdlib.h>
/start our program