Вы находитесь на странице: 1из 4

Group Project

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

Your program must able to identify the following:


- The width of the river
- The distance of the factory downstream on the other side of the river
- The cost of laying the power line under water
- The cost of laying the power line over land
- The total cost of constructing the power line.
- The length of the power line that run under water and the length that run over
land so the cost of constructing the power line is at the minimum.

Faculty of Creative Media and Innovative Technology | BTT121 | Page 1 of 4

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.

Faculty of Creative Media and Innovative Technology | BTT121 | Page 2 of 4

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
..

ii. Section B : Functions


No.

Line

Functions

15

average()

Descriptions
to receive all values from user, calculate the total
and return the average
..

iii. Section C : Source code


iv. Section D : Output
v.

Section E : Difficulties and Personal improvements

d) Group Members evaluation (will be provided by the lecturer).

Format for Documentation / Report:


Format for normal statement:
a)

Font: Times New Roman

b) Font size: 12 pt
c)

Format for sourcecode :


a)

Font: Courier new

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

b) Format for algorithm


c)

C++ Code structure

d) C++ flow of processes


e)

Readable issues

f)

Correct code (based on question needs)

g)

Correct ouput (based on program created and relevant to the questions)

h) Teamwork effort
i)

Plagiarism / copy / outsourcing ( caused for ZERO MARKS) do not ever come
for appeal.

Dateline: FEBRUARY 17th, 2014 (MONDAY) before 5PM

Faculty of Creative Media and Innovative Technology | BTT121 | Page 4 of 4

Вам также может понравиться