MedVision ad

someone help! =\ (1 Viewer)

boinkBOINK

hustler
Joined
Feb 5, 2003
Messages
862
Gender
Undisclosed
HSC
N/A
hey! uhmm this is for comp115
and like well to put it frankly
i dont really know anything beyond well basic if statements
so what do you sugest i do to get this all in before the finals? =\
im gonna cry =\\
 

pb

Inside The Hollow
Joined
Jan 20, 2004
Messages
775
Location
Westie!
Gender
Female
HSC
2003
well i don't know any more than u do :(

if u went to the comp lecture on monday, doche said that if u know these things well u should pass:
types and operations on variables
selection statements and logic
loops
functions (reference and value parameters)

so when u cram they're the things u gotta try to understand well, and they're the things i'm gonna study most.

but yeh still... i am like FULLY screwed for comp :(:(

oh yeh.. and dont forget to do the past paper on the comp 155 site... they have a past paper for comp115 :D
 
Last edited:

...

^___^
Joined
May 21, 2003
Messages
7,723
Location
somewhere inside E6A
Gender
Male
HSC
1998
ok..

go to the wkly exercises
download the solutions

read them
and try to understand them

then, open ur textbook
and start read all the stuff you don't know about..and read the examples cpp file

finally, go to the thread flyin' made, it has a zip file..download that, and open those files, do them and if you have any questions, ask anyone that can provide suitable help
 

flowin'

Member
Joined
May 20, 2004
Messages
81
All of the above look good. Importantly, don't give up.

If possible look at lecture notes, which are (usually) shorter than the textbook, and try to make sense. Once you've covered a section do as many tute/prac questions as you can. Then try some exam questions.
 

doe

Member
Joined
Jan 23, 2004
Messages
751
Gender
Undisclosed
HSC
N/A
tute questions

if you understand your tutes, you understand you subject and youll do ok.
 

boinkBOINK

hustler
Joined
Feb 5, 2003
Messages
862
Gender
Undisclosed
HSC
N/A
well ive been trying to read the huge textbook
however i dont really think thats gonna help me all that much \=
ugh
how demoralising
 

pb

Inside The Hollow
Joined
Jan 20, 2004
Messages
775
Location
Westie!
Gender
Female
HSC
2003
to solve that problem i bought a thinner book
lol
 

redruM

Breathe and Stop
Joined
May 11, 2004
Messages
3,954
Gender
Male
HSC
2003
the book is shit....too thick:p

absolute waste of $100 :chainsaw:

the questions in the exam are logic more than anything. what i would recommend is get someone smart to go through the tutes with you. you'll pick it up fine.
reading the text will hardly get you anywhere, imo.
Originally posted by sukiyaki
the comp 155 website has last years exam up
:eek: u serious?
 

boinkBOINK

hustler
Joined
Feb 5, 2003
Messages
862
Gender
Undisclosed
HSC
N/A
yea like thats what i mean about the textbook
sure it explains it all
but then jus reading it isnt gonna help me get through the exam imho
so im kinda stiffled on what to do
so im deciding to read the book anyways =\
~500pages to go
 

redruM

Breathe and Stop
Joined
May 11, 2004
Messages
3,954
Gender
Male
HSC
2003
2. 20 marks in total
(a) (4 marks) Complete the following function which when given an integer will return true if the integer is negative and otherwise false. WRITE ONE LINE ONLY.
Code:
bool isNegative(int n)
{ // supply this code - write ONE line only
}
does anyone know the answer to this?

its like that funny 1 line if statement with a '?' ?
 

doe

Member
Joined
Jan 23, 2004
Messages
751
Gender
Undisclosed
HSC
N/A
return( n < 0 )

the ? : way would be

return(n < 0 ? true : false)

x ? y : z

expands to
if (x)
&nbsp;&nbsp;&nbsp;&nbsp;y
else
&nbsp;&nbsp;&nbsp;&nbsp;z
 
Last edited:

boinkBOINK

hustler
Joined
Feb 5, 2003
Messages
862
Gender
Undisclosed
HSC
N/A
cause of my newbness and lack of understanding in this subject matter
you dont suppose i could just write psuedocode do ya?
 

doe

Member
Joined
Jan 23, 2004
Messages
751
Gender
Undisclosed
HSC
N/A
Originally posted by boinkBOINK
cause of my newbness and lack of understanding in this subject matter
you dont suppose i could just write psuedocode do ya?
yes, if your stuck, psudeocode is a good thing, or even plain english if your totally stumped but understand the logic of what needs to be done. you wont get full marks for it, but you will get some marks.

Originally posted by ...
what does x ? y mean :confused:
?: is an operator just like + or - or = etc. look at what i typed:

Originally posted by doe
x ? y : z

expands to
if (x)
&nbsp;&nbsp;&nbsp;&nbsp;y
else
&nbsp;&nbsp;&nbsp;&nbsp;z
 

...

^___^
Joined
May 21, 2003
Messages
7,723
Location
somewhere inside E6A
Gender
Male
HSC
1998
haha..err..i'll read da textbook for that..thanks :p

umm..another question

Given the following Truth Table where A,B and Q are boolean expressions what is Q equivalent to?

A B Q
false false false
false true true
true false true
true true true

A. A and B
B. A or B
C. not( A and B )
D. not( A or B )
E. None of the above


hehe, thanks in advance
 

doe

Member
Joined
Jan 23, 2004
Messages
751
Gender
Undisclosed
HSC
N/A
a or b, coz q is true if a or b or both are true

the truth table is clearer like this

0 0 0
0 1 1
1 0 1
1 1 1
 

redruM

Breathe and Stop
Joined
May 11, 2004
Messages
3,954
Gender
Male
HSC
2003
agree with doe, (b) a or b.

because either a or b needs to be true for q to be true.
Originally posted by doe
return(n < 0 ? true : false)

x ? y : z

expands to
if (x)
&nbsp;&nbsp;&nbsp;&nbsp;y
else
&nbsp;&nbsp;&nbsp;&nbsp;z
thanks!
we write the 'general' way as:

condition ? s1 : s2.

s1 when condition is satisfied, and s2 when condition is not satisfied...makes sense.
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
Originally posted by doe
return( n < 0 )

the ? : way would be

return(n < 0 ? true : false)

x ? y : z

expands to
if (x)
&nbsp;&nbsp;&nbsp;&nbsp;y
else
&nbsp;&nbsp;&nbsp;&nbsp;z
heh java programmer aye? i personally dont think the shorthand if conditions are good in some cases, it gets out of hand when ur going through code logic.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top