
-----------------------------------
Turing_Highschool
Thu Oct 27, 2011 6:30 pm

Turing Assignment
-----------------------------------
Hey guys,

I am not following the formal format because I do not need direct help with a problem but I am looking for suggestions with an assignment that i have to do for school, the requirements for this is a very basic program that will take any amount of numbers you give it, and then create an average for it. This is the basic version that I will build upon as I learn more about Turing.

Any help that you guys can provide would be great, 

Thanks!

-----------------------------------
Tony
Thu Oct 27, 2011 6:33 pm

RE:Turing Assignment
-----------------------------------
what kind of suggestions are you looking for?

-----------------------------------
Velocity
Tue Nov 08, 2011 7:47 pm

RE:Turing Assignment
-----------------------------------
Assuming your looking for help...

var numbers : real
var num1, num2 : int
put "How many number do you want to calculate avg for?: " ..
get numbers

if numbers > 2 or numbers = 1 then
    put "Please rephrase your question!"
    put " "
    put "We do not give you the answers."
    put " "
    put "Please be more clear with the question next time."
elsif numbers = 2 then
    put "I can help you by giving you this kindergarden program."
    Time.Delay (2500)
    cls
    put "Enter your first number: " ..
    get num1
    put "Enter your second number: " ..
    get num2

    put "Your average is ", num1 + num2 / 2
    
    put "I don't understand why the answer is wrong (kindergardener)"
end if
