Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Turing Assignment
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Turing_Highschool




PostPosted: Thu Oct 27, 2011 6:30 pm   Post subject: 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!
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Oct 27, 2011 6:33 pm   Post subject: RE:Turing Assignment

what kind of suggestions are you looking for?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Velocity




PostPosted: Tue Nov 08, 2011 7:47 pm   Post subject: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: