Académique Documents
Professionnel Documents
Culture Documents
COMPUTER PROGRAMMING
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 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.
Flowchart is a graph of geometrical shapes that are connected by lines. There are two important
elements in flow chart:
Step 1: To calculate the total price of concrete and steel for beam.
7
Step 2: To calculate the total price of concrete and steel for column.
Step 3: To calculate the total price of concrete and BRC for slab.
8
4.0 CONCLUSION
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
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: -
Prepared by:
13
MINUTE OF MEETING 2
FACULTY OF CIVIL & ENVIRONMENTAL ENGINEERING
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: -
Prepared by:
14
MINUTE OF MEETING 3
FACULTY OF CIVIL & ENVIRONMENTAL ENGINEERING
Members Apologies: -
Prepared by:
15
MINUTE OF MEETING 4
FACULTY OF CIVIL & ENVIRONMENTAL ENGINEERING
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: -
Prepared by:
16
MINUTE OF MEETING 5
FACULTY OF CIVIL & ENVIRONMENTAL ENGINEERING
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: -
Prepared by:
17