Alice Community Need some help with the last part of this program.

 Need some help with the last part of this program.
the noise
Guest

Status:
Posts: n/a
Need some help with the last part of this program. - 11-01-2005, 01:07 PM

Hello, i am new to using Alice, just really started programming in this other than that i have had a little bit of VisualBasic. Anyway I don't know i this is the right place ot post but onto the qustion. I am working on a program in alice that converts temperatures from fahrenheit to celsius and does other stuff when the temperatures are at a certain degree. The last step to the project is I have to have all the temperatures average in both degrees celsius and degrees fahrenheit and then tell how far the maximum and minimum temperatures inputted are from the average. If any of you could take a look at it and help me out, i would greatly appreciate it. Thanks in advance.
Attached Files
 my first alice poject.zip (1.06 MB, 671 views)

 gabe Administrator     Status: Offline Posts: 461 Join Date: Jul 2005 Location: Pittsburgh, PA 11-01-2005, 01:40 PM have you learned about lists yet?
 the noise Guest   Status: Posts: n/a 11-01-2005, 01:45 PM no, i tried messing around with that and i e-mailed my teacher about it and told her i tried to do it with lists but i couldnt figure it out, she said it could be done with a variable initialized to zero to keep track of it, but honestly i have no idea what to do with that
 gabe Administrator     Status: Offline Posts: 461 Join Date: Jul 2005 Location: Pittsburgh, PA 11-01-2005, 02:11 PM So, you'll want three separate variables. One will be to keep a sum of all the temperatures. To do this, every time the user inputs another temperature, you'll want the variable to be equal to itself plus the new temperature. From there, you can find the average temperature in C and F. The other two variables will keep track of the lowest temperature and the highest temperature that the user inputs. You'll want to set both of them to the first temperature, and subsequent time the user inputs another temperature, check to see if it's lower than the lowest; if so, make it the new low variable value. If it is not lower than the lowest, check if it's higher than the highest, etc. Take it from there!
 the noise Guest   Status: Posts: n/a 11-01-2005, 02:14 PM thanks

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge