You are on page 1of 17

BFC20802

COMPUTER PROGRAMMING

SEMESTER II (2015/2016) PROJECT

LECTURERS NAME : DR. NICKHOLAS ANTING ANAK GUNTOR


SECTION :4
GROUP MEMBERS:

NAME MATRIC NUMBER


MOHD AZMAN BIN TOHID DF140115
MUHAMMAD AKMAL AFIQ BIN HISHAMUDDIN CF150260
AN-NAZRIN JOHAN BIN A. RAHIM CF150254
NURUL ZETTY IQMA BINTI ABU SAMAH DF150076
NURAQILAH SYAFIQAH BINTI ARIFIN DF150034
LIST OF CONTENT

NO. CONTENT PAGE

LIST OF CONTENT 2

1.0 INTRODUCTION 3

2.0 OBJECTIVE 3

3.0 DESCRIPTION
3.1 Variables 4
3.2 Process Involved
3.2.1 Draw Flowchart
7 3.2.2 Create Pseudocode
7 3.3 User Manual
7

4.0 CONCLUSION 9

5.0 APPENDIX 10

2
1.0 INTRODUCTION

A simple C++ statement is each of the individual instructions of a program, like the
variable declarations and expressions seen in previous sections. They always end with a
semicolon (;), and are executed in the same order in which they appear in a program.

But programs are not limited to a linear sequence of statements. During its process, a
program may repeat segments of code, or take decision and bifurcate. For that purpose, C++
provides flow control statements that serve to specify what has to be done by the program when
and under which circumstances.

As a fundamental subject, this course will equip the students with theory and practice on
problem solving techniques by using the structured approach. Students are required to develop
programs using C++ programming language under windows platform, in order to solve simple to
moderate problems. They will be familiarize with the pre-processor instructions, constants and
variables, data types, input and output statements, text files, control structures: sequential,
selection and loop, built-in and user-defined functions, and one dimension array.

2.0 OBJECTIVE

This system is developed to help supplier to calculate the cost for some construction
materials that is beam, slab and column.

3
3.0 DESCRIPTION

3.1 Variables

A variable provides us with named storage that our programs can


manipulate. Each variable in C++ has a specific type, which determines the
size and layout of the variable's memory; the range of values that can be
stored within that memory; and the set of operations that can be applied to
the variable. The name of a variable can be composed of letters, digits, and
the underscore character. It must begin with either a letter or an
underscore. Upper and lowercase letters are distinct because C++ is case-
sensitive.

A variable definition means to tell the compiler where and how much to
create the storage for the variable. A variable definition specifies a data
type, and contains a list of one or more variables. So that, in this project we
declared the type of variables in C++ as double type variable.

The variables for beam are double length, width, height, volume, and
total beam.

double beam;
double steel_no_beam;
double width_beam;
double height_beam;
double length_beam;
double volume_beam;
double total_beam;

4
The variables for column are double length, width, height, volume, and
total price of concrete and steel.

double column;

double steel_no_col;

double width_col;

double height_col;

double length_col;

double volume_col;

double total_col;

double concrete_price;

double steel_price;

double total_price_concrete;

double total_price_steel;

5
The variables for slab are double thick, width, height, volume, total
slab and total price of BRC

double slab;

double BRC_no;

double width_slab;

double height_slab;

double thick;

double volume_slab;

double total_slab;

double BRC_price;

double total_price_BRC;

6
3.2 Process Involved

There are two process involved in the making of this project. They are
flowchart and pseudocode.

3.2.1 Draw Flowchart

Flowchart is a graph of geometrical shapes that are connected by lines. There are two important
elements in flow chart:

1. Geometrical shapes represent type of statements in the algorithm.


2. Flow line show the order in which the statements of an algorithm are executed.

3.2.2 Create Pseudocode

Pseudocode is a semiformal, English-like language with limited vocabulary that can be


used to design & describe algorithms.

The purpose is to define the procedural logic of an algorithm in a simple, easy-to-


understand for its readers. It is free of syntactical complications of programming language.

3.3 User Manual

Step 1: To calculate the total price of concrete and steel for beam.

i. Insert the beam value


ii. Insert the number of steel
iii. Insert the width value
iv. Insert the height value
v. Insert the length value
vi. Insert the actual price of concrete
vii. Insert the actual price of steel
viii. Press enter to see the total price.

7
Step 2: To calculate the total price of concrete and steel for column.

i. Insert the column value


ii. Insert the number of steel
iii. Insert the width value
iv. Insert the height value
v. Insert the length value
vi. Insert the actual price of concrete
vii. Insert the actual price of steel
viii. Press enter to see the total price.

Step 3: To calculate the total price of concrete and BRC for slab.

i. Insert the slab value


ii. Insert the number of BRC
iii. Insert the width value
iv. Insert the height value
v. Insert the thickness value
vi. Insert the actual price of concrete
vii. Insert the actual price of BRC
viii. Press enter to see the total price.

8
4.0 CONCLUSION

In conclusion, a simple C++ statement is each of the individual instructions of a


program, like the variable declarations and expressions seen in previous sections. They always
end with a semicolon (;), and are executed in the same order in which they appear in a program.

The goal for this Computer Programming project is to study and learn more in-depth
about the selected topic that people familiar with, based on many applications in civil
engineering field. This program is built to help suppliers to calculate the total cost for beam,
column and slab. Besides, it also as a new contribution towards engineering field.

From this project, the students are expected to be more confident in using computer
programming to analyse and solve problems both in study and real-life situations.

9
5.0 APPENDIX

Figure 1: Process to calculate the total price of concrete and steel for beam
and column.

10
Figure 2: Process to calculate the total price of concrete and BRC for slab.

11
Figure 3: The value of the output if the input is zero.

12
MINUTE OF MEETING 1
FACULTY OF CIVIL & ENVIRONMENTAL ENGINEERING

DATE : 9TH MARCH 2016


TIME : 11.00AM - 2.00PM
PLACE : 4TH FLOOR, TUNKU TUN AMINAH LIBRARY

Members Present:
1. Mohd Azman bin Tohid
2. Muhammad Akmal Afiq bin Hishamuddin
3. An-Nazrin Johan bin A. Rahim
4. Nuraqilah Syafiqah binti Arifin
5. Nurul Zetty Iqma binti Abu Samah

Members Apologies: -

NO. SUBJECT ACTION BY FEEDBACK


1.0 CHAIRPERSON ADDRESS Azman

2.0 PAPER PRESENTATION Every group


- Discuss about the project All group members
- Find the problem statement members participated
- Create a question that related in Civil Engineering and shared
their opinion
3.0 CLOSING Nuraqilah Meeting
dismissed

Prepared by:

(Nuraqilah Syafiqah binti Arifin)

13
MINUTE OF MEETING 2
FACULTY OF CIVIL & ENVIRONMENTAL ENGINEERING

DATE : 19TH MARCH 2016


TIME : 8.00PM 10.30PM
PLACE : 1st FLOOR, 24 HOURS ROOM, TUNKU TUN AMINAH LIBRARY

Members Present:
1. Mohd Azman bin Tohid
2. Muhammad Akmal Afiq bin Hishamuddin
3. An-Nazrin Johan bin A. Rahim
4. Nuraqilah Syafiqah binti Arifin
5. Nurul Zetty Iqma binti Abu Samah

Members Apologies: -

NO. SUBJECT ACTION BY FEEDBACK


1.0 CHAIRPERSON ADDRESS Azman

2.0 PAPER PRESENTATION Every group


- Discuss about the project All group members
- Find the problem statement members participated
- Create a problem solving that related in Civil and shared
Engineering their opinion

3.0 CLOSING Azman Meeting


dismissed

Prepared by:

(Nuraqilah Syafiqah binti Arifin)

14
MINUTE OF MEETING 3
FACULTY OF CIVIL & ENVIRONMENTAL ENGINEERING

DATE : 25TH MARCH 2016


TIME : 11.00AM - 4.00PM
PLACE : 1st FLOOR, 24 HOURS ROOM, TUNKU TUN AMINAH LIBRARY
Members Present:
1. Mohd Azman bin Tohid
2. Muhammad Akmal Afiq bin Hishamuddin
3. An-Nazrin Johan bin A. Rahim
4. Nuraqilah Syafiqah binti Arifin
5. Nurul Zetty Iqma binti Abu Samah

Members Apologies: -

NO. SUBJECT ACTION BY FEEDBACK


1.0 CHAIRPERSON ADDRESS Azman

2.0 PAPER PRESENTATION Every group


- Discuss about the project All group members
- Create a flowchart and Pseudocode members participated
- Write a proposal report and shared
their opinion

3.0 CLOSING Nuraqilah Meeting


dismissed

Prepared by:

(Nuraqilah Syafiqah binti Arifin)

15
MINUTE OF MEETING 4
FACULTY OF CIVIL & ENVIRONMENTAL ENGINEERING

DATE : 21st APRIL 2016


TIME : 2.00PM - 5.00PM
PLACE : 4TH FLOOR, TUNKU TUN AMINAH LIBRARY

Members Present:
1. Mohd Azman bin Tohid
2. Muhammad Akmal Afiq bin Hishamuddin
3. An-Nazrin Johan bin A. Rahim
4. Nuraqilah Syafiqah binti Arifin
5. Nurul Zetty Iqma binti Abu Samah

Members Apologies: -

NO. SUBJECT ACTION BY FEEDBACK


1.0 CHAIRPERSON ADDRESS Azman

2.0 PAPER PRESENTATION Every group


- Discuss about the project All group members
- Create a coding with group members members participated
and shared
their opinion
3.0 CLOSING Nuraqilah Meeting
dismissed

Prepared by:

(Nuraqilah Syafiqah binti Arifin)

16
MINUTE OF MEETING 5
FACULTY OF CIVIL & ENVIRONMENTAL ENGINEERING

DATE : 11TH MAY 2016


TIME : 2.00PM - 5.00PM
PLACE : 4TH FLOOR, TUNKU TUN AMINAH LIBRARY

Members Present:
1. Mohd Azman bin Tohid
2. Muhammad Akmal Afiq bin Hishamuddin
3. An-Nazrin Johan bin A. Rahim
4. Nuraqilah Syafiqah binti Arifin
5. Nurul Zetty Iqma binti Abu Samah

Members Apologies: -

NO. SUBJECT ACTION BY FEEDBACK


1.0 CHAIRPERSON ADDRESS Azman

2.0 PAPER PRESENTATION Every group


- Create a coding with group members All group members
- Write a full report members participated
and shared
their opinion
3.0 CLOSING Azman Meeting
dismissed

Prepared by:

(Nuraqilah Syafiqah binti Arifin)

17