| Original Message |
Nicki Eriksen (no login) Posted Feb 27, 2010 5:09 AM
Wow, I must say that I am blown away by the activity on this forum, nice!
About the program: It is just something that I am making to learn programming, while the program itself actually deals with calculations used in an advanced zoophysiologi course I am taking at the University of Ã…rhus. It calculates some basic parameters that are significant when you are discussing the circulation in mammals. The idea was to start out simple, and then later introduce some logarithmic functions and such, if that is actually possible in q-basic. Actually I am trying to understand q-basic because I am taking a beginners course in JAVA, but i felt that I was missing some understanding that I would really like to have. As it is now, my course is soon ending, but I think I might just only have begun programming, if you understand? I think this programming language is charmingly simple, so far at least, and it kinda reminds me of the old days playing Warlords and Commodore 64.
About my seemingly weird option 3, the keyfinder. This was just something I implemented to be able to see what names the keys had, and get my head around the INKEY$-stuff.
About the quick fix: Yes, ok, very nice to see how this could be made, and I agree that it is simpler than my way of doing it. I think the do-loop makes things more elegant to look at for sure. However, I am not sure that it is entirely what I'm looking for, explanation follows. But in any case, thank you very much for taking time to help me out man, I really appreciate it.
But that being said, I still have some questions. They are in no way meant to sound rude or stupid, they are just honest questions.
This SYSTEM thing that I should use to close my program, what is it? I haven't seen it anywhere in the tutorials I have been reading.
Why do i have to declare the subs at the top? They work perfectly fine as it is... Is it because it makes the program easier to get when you look at the code for the first time?
This declaring variables I should be doing, would it look like this?
INPUT "Systolic blood pressure:", Syspress 'This is the systolic pressure
INPUT "Diastolic blood pressure:", Diapress 'This is the diastolic pressure
? "The average systemic blood pressure is:", Diapress+(Syspress-Diapress)*(1/3)
Instead of just:
INPUT "Systolic blood pressure:", Syspress
INPUT "Diastolic blood pressure:", Diapress
? "The average systemic blood pressure is:", Diapress+(Syspress-Diapress)*(1/3)
And about the do-loop, I would like to make the "greeter-menu", the first menu to pop up to return if the user enters a wrong choice. Is this possible if the do-loop ends below the choices? I don't really see how that could work.
Ok, this is a lot, feel free to answer just one of my questions however, any help will be much appreciated.
-Nicki (still a noob to this, but I hope you bear with me) |
|
|