Docsity

The Programming Process - Lecture Notes | CGN 3421, Study notes of Civil Engineering

Toggle sidebar
bg1
  
Page 1 of 15
 


 !"
"#$! 
!"%!#"
&$'!!$(
)*&+$!  "$
!#',-*"!
!! #.!
$+/#."'
/0123"230"$
+0""3#'+$"4
/"$$+#.+$"
! !""
!""#
5"!!$!
!!#
.6$+&7
*8$!++#
$
9:
 $!/&!#"
 !++$"6-"
"""";78#<
"5$$&
#."0!"$!
#= $>=! &$
7! &8"+$>=*.!
& $7!
&8#5&7;8"!
>+78" *+#? $"$
5$$#."!
;$+$!
#
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download The Programming Process - Lecture Notes | CGN 3421 and more Study notes Civil Engineering in PDF only on Docsity!

A  !"$  & 

  B 

C$      

"D #

7 ##9E'F'=2 8

!  #G $  $ "D

8E !+ 7  8

B8!!! !7 ##"  8 

H85$ ! 0!!++! 

$ I! 8

-8. !   0!!+!H$  

,8A     !#= $   

7 A  !! "  

+!J6*

>62KA$ >">2! 

+ /#L&#    

062#H;

  62F(

062KB

B8!!6

H85$ ! 0!!++!  

Please enter a value for the thickness of the skin of the sphere

thickness := 2 These variables will remain constant

Density := 1.25 Diameter :=10.

Calculate outer and inner radius

Router

Diameter 2

:=

Rinner :=Router −thickness

Volume

4 3

:= ⋅ π⋅(^ Router^3 −Rinner^3 )

Volume =430.

what happens if capitalization is wrong in a variable (not consistent)? (^)      7  '*  0!!   &  $ : (#'4!  ("    $+ - ('  +   $+ #        

:+  6 

x := 10ft y := 12in z := x +y z = 11ft z = 132in   G  !  #.        & &!"&" #.   + !   " # 

kip := 1000lbf ksi 1

kip

in^2

:= w 3

kip ft

:= L :=8ft

Mo

w L ⋅^2 8

:=

Mo = 24kip ft⋅ Mo = 288kip in⋅    $   !  #." +   & #.  ! 0!" $ "    & + !   !0   0!+  # 

x := 10ft y := 10kip xx ++ yy= $ $+     #L  $ .  0!(   6  7 5 ' 86  

These variables will remain constant

Density 1.25 kg m^3

:= Diameter :=10.2m

Calculate outer and inner radius

Router Diameter 2

:= Rinner :=Router −thickness

Volume 4 3

:= ⋅ π⋅(^ Router^3 −Rinner^3 )

Volume =430.859m^3

E  ++ 

##M;$$+  

M7 8  

grade

0 23 25 18

=

/8#A  +4  #

 7 4C847  08

062>K!&Q  " $ 

x

4 16 2 3

:=

0 2 H

062>K!&Q " $ 

x

2

46

:=   ";  (^0) ";2,#-

062 B#4HK -# ;#

062 #B

3 6274 8 KR;4708

L##D +  'S

IQ := 40

Words "Go Vols" ifIQ < 80 "Go Gators" otherwise

:=

Words = "Go Vols" 

+4T  7 08T  8  T 7 088

   B 

fact x( ) s ← 1 x ←ceil x( )

s ←s i⋅

for i ∈ 1 ..x

s

:=

fact 2.5( ) = (^6) 

 .  ? 3 ' , 4 @A3 5 %#?B '  0!+$   $   /#.   ) 9 >) /!!  #'3    #   $    # #    4!    M !   +    !      !#  7 8  + !   ##  $  "!+#," !   $ +    

mass := 200 out x( ) x ←x 0.9⋅

while x > 100

x

:=

mass :=out mass( )

mass = 95.659  

C+%    &$ 

M 4! + !    #M 

A& !+ $  

L4  $ $