Professional Documents
Culture Documents
Description:
You have been assigned to develop a system that able to solve the problem in the
construction area. Your system must able to show a menu driven program that will give
an option to user to choose the type of problem. Consider the following problem:
Problem one:
A power station is on one side of a river that is one-half mile wide and a factory is eight
miles downstream on the other side of the river. It costs RM7 per foot to run power lines
over land and RM9 per foot to run them under water. Your objectives is to determine
how long the power line should run under water and how long it should run over land to
achieve the minimum total cost of laying the power line.
Power line
over land
mile
y miles
x miles
8 miles
Factor
y
Group Project
Problem two:
A pipe is to be carried around the right angled corner of two intersecting corridors.
Suppose that the widths of the two intersecting corridors are 5 feet and 8 feet. Your
objective is to find the length of the longest pipe, rounded to the nearest foot that can be
carried level around the right-angled corner.
C
5
A
8
Write a program that able to get the input of width of both the hallways. The program
also able to show the length of the longest pipe, rounded to the nearest foot, that can be
carried level around the right-angled corner.
The length of the pipe is given by :
l = AB + BC = 8 / sin + 5 / cos , where 0 < < /2
Instructions:
1. Your program must contain at least TEN (10) functions
2. To include a menu driven program that will show the options of problems.
3. No array will be used in this program. But the techniques used are not limited.
Group Project
Documentation / Report:
Students are needed to prepare a report with the following guidelines:
a)
Cover page (will be provided by the lecture and be uploaded on the website).
b) Table of contents
c)
Report:
i. Section A : Variables to list all variables created.
No.
Line
Variables
In Functions
23
int count
Total()
Descriptions
to represent the total of objects
..
Line
Functions
15
average()
Descriptions
to receive all values from user, calculate the total
and return the average
..
b) Font size: 12 pt
c)
b) Font size: 11 pt
Paragrapah:
i. before: 0 pt
ii. after: 0 pt
iii. Line spacing: 1.5 lines
Faculty of Creative Media and Innovative Technology | BTT121 | Page 3 of 4
Group Project
Markings:
Students are marked based on the following (not limited to):
a)
Creativity
Readable issues
f)
g)
h) Teamwork effort
i)
Plagiarism / copy / outsourcing ( caused for ZERO MARKS) do not ever come
for appeal.