Looking for Links for Unbelievable Extreme Newbie
Author |
Message |
Traybella
|
Posted: Wed Feb 22, 2006 4:51 pm Post subject: Looking for Links for Unbelievable Extreme Newbie |
|
|
My son just started a new semester at school, he is in grade 10 and taking a Computer Science class, however, he's been off sick for a couple of weeks.
His CompSci teacher told me he needed Turing which I have now(v. 4.04)before he could assign any homework for him.
Well, I got the work today, there is NO instruction whatsoever, how in the heck am I supposed to figure out the program if I have absolutely no idea how to use it or what I'm doing.
Does anyone have and links they could share so I can figure out what to do.
Here's one of the problems he's to solve so you can get some idea of the kind of help I need.
code: | Kelly's house needs some extensive renovations. The roof is shot and it needs new plywood put on and it needs to be reshingled. Each sheet of plywood covers 32 square feet and it sells for $21.50 a sheet. Each bundle of shingles covers the same area and it sells for $12.25/bundle. She must also replace both windows in the garage at $235.50 a piece. The main garage door also must be replaced at a cost of $475.00. Calculate the total cost of the renovations and be sure to include the PST (8%) & GST (7%).
|
Help, I'm completely out of my element here. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Andy
|
Posted: Wed Feb 22, 2006 5:18 pm Post subject: (No subject) |
|
|
this seems more of an arithmetic problem to me. go to the turing tutorial sections, and go through the basics found at
http://www.compsci.ca/v2/viewtopic.php?t=8808
once you're done that, try to break the problem into smaller bits, and solve each part. |
|
|
|
|
|
Traybella
|
Posted: Wed Feb 22, 2006 5:57 pm Post subject: (No subject) |
|
|
<<<<WHOOSH>>>>
That's the sound of it all going over my head.
LOL
I have no clue. If someone could do one for me, I may be able to figure it out. If you are in a very giving mood, here's one:
code: | Write a program that used the get statement to input a students name - then input the mark for math, the mark for science, the mark for history and the mark for geography. Calculate the average and then print a report card similar to this:
NLSS
Report for.................Stan Brown
Math.........................##%
Science.................... ##%
History......................##%
Geography.............. .....##%
----------------------------------
Average......................##% |
|
|
|
|
|
|
Cervantes
|
|
|
|
|
MysticVegeta
|
Posted: Wed Feb 22, 2006 6:11 pm Post subject: (No subject) |
|
|
Well assuming that the mark is real #, here is how to "get" it:
code: | var mathMark : real
get mathMark
|
All you have to do is create 4 of these for the subjects and 1 more for the average. then display it on the screen using put command. |
|
|
|
|
|
Traybella
|
Posted: Wed Feb 22, 2006 6:20 pm Post subject: (No subject) |
|
|
OMG, I did that one and it works
code: | var m,s,h,g,a :real
var n :string(20)
put "Enter Student's Name"
get n :*
put "Enter the grade for Math"
get m
put "Enter the grade for Science"
get s
put "Enter the grade for History"
get h
put "Enter the grade for Geography"
get g
a :=(m + s + h + g) / 4
cls
put "NLSS"
put ""
put "Report for......." ,n
put ""
put "Math..............." ,m :3:2
put "Science............" ,s :3:2
put "History............" ,h :3:2
put "Geography.........." ,g :3:2
put "------------------------"
put "Average............", a :3:2 |
|
|
|
|
|
|
Traybella
|
Posted: Wed Feb 22, 2006 6:28 pm Post subject: (No subject) |
|
|
I just realized that while I was able to write the program, I couldn't figure out how to put the % symbol after each. Can anybody tell me how to do that? |
|
|
|
|
|
Cervantes
|
Posted: Wed Feb 22, 2006 6:31 pm Post subject: (No subject) |
|
|
Just add "%" after the mark.
code: | put "Math..............." ,m :3:2, "%" |
Also, it's good to use variables that are longer than one letter. It helps to make your code more readable and understandable. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Clayton
|
Posted: Wed Feb 22, 2006 8:46 pm Post subject: (No subject) |
|
|
first of all welcome to turing, i hope you enjoy doing programs and discovering what you can do with it, your best option to reinforce your learning at school is check out the Turing Walkthrough often also if you are looking to take your learning further check out all of the forums at compsci and im sure you will find that you will learn much more than you will in class (and you can show off to your friends in your class too while they ooh and aah at your awesome programs) good luck with turing |
|
|
|
|
|
Martin
|
Posted: Thu Feb 23, 2006 1:36 am Post subject: (No subject) |
|
|
Get the kid on the IRC channel! |
|
|
|
|
|
Cervantes
|
Posted: Fri Feb 24, 2006 8:11 pm Post subject: (No subject) |
|
|
Indeed. Learning computer science online is quite natural.
Server: irc.afternet.org
Channel: #compsci.ca
More information on the wiki. |
|
|
|
|
|
|
|