Exercise 2

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

CE6750 CAD in Civil Engineering

Exercise 2: Arrays, Loops and Conditional statements

Question 1
Write a VB.NET program that computes the sum, average and standard deviation of all the numbers
input by the user.

Question 2
Write a program that computes the sum of all the positive numbers input by the user.

Question 3
The cross section of a built-up I beam is shown in Figure 1. Write a program to calculate the total weight
of steel for constructing beams of all combinations of flange thickness and depth of web given below (42
combinations in total):

Flange thicknesses in mm. (same for top and bottom): 8, 10, 12, 14, 16, 18, 20.

Depth of web in mm: 100, 110, 120, 130, 140, 150.

Values for other variables are given below:

wtf - width of top flange – 80 mm

tw- thickness of web – 12 mm

wbf - width of bottom flange – 80 mm

L – length of the beam – 6 m

The density of steel - 7800 kg/m3.


CE6750 CAD in Civil Engineering

wtf
Variables:
ttf
wtf - width of top flange

ttf - thickness of top flange


dw
dw - depth of web

tw- thickness of web


tbf
wbf - width of bottom flange
tw
tbf- thickness of bottom flange
wbf
L – length of the beam

Figure 1. Built-up I beam

You might also like