Jump to content



Photo
- - - - -

If Statement And A Nice Presentation Of Results


  • Please log in to reply
1 reply to this topic

#1 Madmike

Madmike

    Newbie

  • Members
  • Pip
  • 2 posts

  • Calculators:
    Casio Fx 9750GII

Posted 20 March 2016 - 03:32 PM

Hello everyone, Im trying to learn some programming, and right now Im practicing making programs on my Casio fx 9750gii
 
This program is a like a test for me but will also be a little useful, it calculates bending moment in a concrete beam. 

"b="?->A
"d="?->B
"fcd="?->C
"fyd="?->D
"As="? ->E
"Moment="?->F
                        //so far so good, this is where the magic doesn't happen.. :-(
If F=0
Then
"#E658="
 W->(E*D)/(A*B*C)
"m="
 N=W(1-0,5*W)
"M="
 F=N*A*B^2*C

else

If E=0
Then
"m="
 N->F/(A*B^2*C)
"#E658="
 W=1-(sqrt(1-2*N))
"As="
 E=(W*A*B*C)/D
If end

How should the statements be designed to make this work.. In the end I would like all the values to be presented and to make the presentation for the correct letter "M=" for the function F for example.

 

Thanks in advance! :)



#2 Madmike

Madmike

    Newbie

  • Members
  • Pip
  • 2 posts

  • Calculators:
    Casio Fx 9750GII

Posted 22 March 2016 - 08:55 PM

With some trial and error I've managed to create the program :-)

 

1stprogram.png

 

hurray first program :P




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users