Need help with program with reaction.Classpad II program
Posted 19 January 2017 - 08:09 PM
I've started to use my Classpad II in advance of technical school start.
Im trying to make a program that will help me determine if a beam has the right capacity or not.
So far so good, the program do what I describe, but I would love to have it to tell me if suggested beam is good enough or not.
Here is my program (Im norwegian, so text is probably not translated perfectly):
Input A, "Load"
Input B, "Load factor"
Print "Load is:"
Input C, "Beam length"
Print "Torque load is:"
Input D, "Material strenght"
Input E, "Material factor"
Input F, " Material Cross Section"
Print "Dimensioning torque capacity"
I would very much like to have the program to react at the bottom line answer.
Is it possible to make the program to tell me with ex. red letters if Torque load (AxB)xC/4) is higher than Torque capacity (D/ExF/1000000)
It does not have to be in red letters if that's not possible.
Posted 19 January 2017 - 08:44 PM
Hello, Roald, and welcome to UCF!
You should introduce yourself in this topic:
Your program is a good input -- calculations -- output program.
The next step in your programming learning process, is to learn conditionals (if -- then -- else -- EndIf) and then loops. (useful to make the calculator make simple decisions)
I don't know the Classpad language exactly syntax. You should learn control flow statements with a basic programming book, and then translate it to the classpad syntax using the manual.
Good luck with programming!
- Roald likes this
Posted 20 January 2017 - 09:35 AM
Maybe like this
Input B,"load factor"
Input C,"beam length"
Input D,"material strength"
Input E,"material factor"
Input F,"material cross section"
Print "load is:",ColorBlack
Print "torque load is:",ColorMagenta
Print "dimensioning torque capacity",ColorCyan
Print "torque load is higher than torque capacity",ColorRed
Print "torque load is lower than torque capacity",ColorGreen
Notice: You can use 7 colors to specify the colors
- Roald likes this
Posted 23 January 2017 - 06:54 PM
Thank you very much.
I will try this tonight
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users