0% found this document useful (0 votes)
236 views

Group Project Question C++

The document describes a group project to develop a menu-driven program that solves construction and piping problems. It provides two sample problems: 1) determining the optimal placement of a power line across a river to minimize costs, and 2) calculating the maximum pipe length that can fit around a right-angled corner based on corridor widths. The program must include at least 10 functions and not use arrays. Students must also submit a report with source code, output, and evaluations.

Uploaded by

Aljawad14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
236 views

Group Project Question C++

The document describes a group project to develop a menu-driven program that solves construction and piping problems. It provides two sample problems: 1) determining the optimal placement of a power line across a river to minimize costs, and 2) calculating the maximum pipe length that can fit around a right-angled corner based on corridor widths. The program must include at least 10 functions and not use arrays. Students must also submit a report with source code, output, and evaluations.

Uploaded by

Aljawad14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy