CodeSolved

Solved Programming Questions & Exercises

Calculate the brick required

Practice Easy 1594/ Download 775 Views

Write a program that receives the length and width of the wall and calculates how many bricks do we need 4 x 8 bricks to build this wall?

21 Answers

This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
x=float(input('Tool divar ra vared konid:'))
y=float(input('Arz divar ra vared konid:'))
# Brick area
n=4*8
# Wall area
f=x*y
t=f/n
print(t,'Ajor')
Ati.hamedi Download Python
def required_brick():
    """
    تابع طول و عرض دیوار را میگیرد و میزان اجر مورد نیاز را برمیگرداند 
    """
    length = int(input("please etner the length :")) # Length
    width = int(input("please enter the width :")) # Width
    
    Rectangular_area = length * width # Wall cops
    Dimensions_brick = 8 * 4 # The area of the reward
    result = Rectangular_area / Dimensions_brick  # Division to obtain the required reward
    return f"result : {result} brick" 
print(required_brick())
a = int(input())
b = int(input())
ajor = (a*b)/(4*8)
print(ajor)
Mina.mindo Download Python
a =int(input("tool: "))
b =int(input("arz: "))
m = a * b
print(m)
d = 8
c = 4
h = c* d
print(h)
g = m/h
print(g) 
User 5396 Download Python
print("*******for countig bricks for your wall*******")
length=float(input("enter the wall's lenght>>>"))
show=float(input("enter the wall's show>>>"))
wall_area=length*show
brick_area=32
print("count of bricks---->",wall_area/brick_area)
Shina Download Python
t= int(input("highte: "))
a=int(input("width: "))
ajor=4*8
divar=t*a
print(divar / ajor)
User 2187 Download Python
function numberOfBricks(Walllength,Wallwidth) {
        //Brick area
        const Brick =  4*8;
        // Wall area
        const WallArea = Walllength * Wallwidth;
        const bricks = WallArea / Brick;
        return bricks;
}
Parsa Download JavaScript
<< Previous page 1 2 3 Next page >>

Submit answer

Submitting answers is currently unavailable.

×
×
Close