0% found this document useful (0 votes)
12 views17 pages

Project

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

Project

Read mc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Computer Science and Programing

Project:
To create a program for finding the quantity of
ingredients of making concrete for the slab.

Made By: Muhammad Afaq (244)


Mudassar Fiaz (263)
Furqan Ahmed (272)
Introduction

 In this project we will make a GUI Program that will calculate the quantity of
materials needed to make concrete for construction slab.

 This program will be created on Python (Idle-64 bit).

 Python is one of the most popular programming language often used to build
websites and software, automate tasks, and conduct data analysis.

 Slab: A slab is an important structural element which is constructed to create


flat and useful surfaces such as floors, roofs, and ceilings.

 A concrete slab supported directly by concrete columns without the use of


beams.
Theory:

 Before coming towards the program, let us discuss the basic theory regarding
the concrete required for the roof slab.
 Cement, Sand and Aggregates are the basic materials for making the concrete.
 It is an easy task for calculating the quantities of these materials in construction
slab.
 We will learn this calculation through an example:
 Consider a rectangular slab of given dimensions:
Length=30ft
Width=30ft
Thickness=6inch
 Now in the first step we will
find the volume of slab as
Volume = L x W x H
=30 x 30 x 0.5
=450 Cubic ft.
 Now to find dry volume of slab,
Dry Volume = 450 x 1.54
=693 Cubic ft.
 Now let us consider the ratio of materials used as:
1:2:4
Cement : Sand : Aggregate
Total Ratio of each of these materials will be 7
 To find the volume of cement:

Volume of cement = Ratio of Cement x Dry Volume


Total Ratio
By putting values:
= 1 x 693
7
= 99 Cubic ft.
Number of cement bags:
= Volume of Cement
Volume of 1 bag
= 99 = 79.2~80 bags
1.25
 To find Volume of Sand:

Volume of Sand = Ratio of Sand x Dry Volume


Total Ratio

By putting values:
= 2 x 693 = 198 Cubic ft.
7
 To find volume of Aggregates

Volume of Sand = Ratio of Sand x Dry Volume


Total Ratio

By putting values:
= 4 x 693
7
= 396 Cubic ft.
 Therefore we have the details of quantity of materials used
in concrete:

The number of bags of Cement required = 80bags.


Amount of Sand required = 198 Cubic ft.
Amount of Aggregates required = 396 Cubic ft.

 Hence these quantities of


ingredients will make
enough amount of
concrete for construction
of Slab.

 Now lets move towards the programming part.


Program:
 Now we will make a program for calculating the quantity of these materials.
 In this program we will make a GUI setup, on which the dimensions of the slab
will be given and it will tell you the separate quantities of materials that is required
to make a concrete.
 As we know that for any GUI program we use the toolkit “Tkinter”.

 Now here we use a keyword, ‘class’. This keyword is used to provide the means
of bundling data together. Now as our project is based on Quantity of materials so
‘Quantityofmaterials’ will be our heading towards the class.
 Now various functions will be defined under the class.

 As you can see that the method ‘_init_’ is used here, it lets the class initialize
the objects attribute.

 And by using ‘self’ we can access different attributes of object in python. And
project is the main object which is mainly used throughout the program.

 Now the widgets are created according to the needs of program. The labels are
made in program with specific place and fonts. A
 As you can see our GUI face is created. Now we
need to create function so that by putting values
we get the result.

 Therefore we need to define another function on


calculate button so that by clicking the button we
can get result.
 By using ‘calculate’ function we will calculate important values.

 Also by ‘float’ command we will allow the


program to enter point numbers in length,
width and height sections through ‘.get()’.

 Now to get outputs in result boxes we use


the ‘.insert’ command and give the value in its domain to get specific result.
 Further labelling codes are:
 Codes for calculation include:
 Then by closing the loop.

 Now you can run the program and by


inserting the dimensions of the slab we
can get the quantities of materials used to
make concrete which is required for
construction slab.

 In this way we can find the quantity of


ingredients required to make concrete for
construction slab.
Conclusion
 In conclusion, a slab is one of the important part of building based on steel and
concrete mainly. The amount of concrete and quantity of its materials are
important to be noticed according to dimensions of slab.

 Therefore with the help of Python, a program is made that will give you
accurate results faster.

 The use of this innovative language is increasing day by day and procedure for
its proper performance are well developed and better quality work is regularly
obtained.
Thank You!
Any Questions?

You might also like