Computer Science Canada New guy just learning |
Author: | Micro [ Mon Feb 28, 2011 9:42 pm ] | ||
Post subject: | New guy just learning | ||
I've just started using Turing for only about 2 weeks ago. But i still haven't gotten the hang of it. I am to create a program that calculates a person's total income after working at Macdonald's. I'm not sure if i have the program right. But i was wondering if i could post it here and someone would take a look at it and possibly give me some ways of improving it. For example. I want the gross income to be displayed at a different time as take home profit. The same goes for the thank you part. Here it is. (I'm a noob at this so please be nice)
|
Author: | huskiesgoaler34 [ Tue Mar 01, 2011 2:23 pm ] |
Post subject: | Re: New guy just learning |
You can add a delay between your put statements. delay (1000). This will delay the program from outputting the next statement. |
Author: | mirhagk [ Tue Mar 01, 2011 4:14 pm ] |
Post subject: | RE:New guy just learning |
or you could use Input.Pause if you want the classic press any key to continue |
Author: | Micro [ Tue Mar 01, 2011 5:40 pm ] | ||
Post subject: | Re: New guy just learning | ||
Thanks for the help. But i've learnt a lot in class today and i've edited to it to my liking. Tell me what you think ![]()
|
Author: | lordroba [ Tue Mar 01, 2011 7:00 pm ] |
Post subject: | Re: New guy just learning |
Maybe add a Input.Pause before the "Thank you for using our services" line so the user has more than 2 seconds to look at their income. Otherwise, not bad. |
Author: | Micro [ Tue Mar 01, 2011 7:08 pm ] |
Post subject: | Re: New guy just learning |
lordroba @ Tue Mar 01, 2011 7:00 pm wrote: Maybe add a Input.Pause before the "Thank you for using our services" line so the user has more than 2 seconds to look at their income. Otherwise, not bad.
I'm not familiar with the Input.Pause command. Would it work the same way if i just increase the delay time be the message appears? |
Author: | mirhagk [ Tue Mar 01, 2011 8:34 pm ] |
Post subject: | RE:New guy just learning |
no input.pause waits until the user presses something to continue |
Author: | RandomLetters [ Tue Mar 01, 2011 9:01 pm ] |
Post subject: | RE:New guy just learning |
if you're not familiar with Input.Pause you can use what you already know to achieve the same effect, that is, get an input before continuing |