1 Attachment(s)
Stressing about my Final, Help? :)
Hello all, I'm a long time reader/surfer of these forums, I've just recently registered in hopes that I can get a little help. And by a little I mean, a fair amount. It would be greatly appreciated.
The help I require is just a basic looking over of final and a brief description of the steps you would take. I've gone over it a couple times with pencil/paper but I never really seem to get to the same place, especially with questions 1 and 2.
My prof is a bit of a dink and has admitted to not teaching us as much of the required course material as possible within the allotted time, and thus has given us a mock exam.
Anyway, I guess it's a combination of me not being the best programmer in the world (doing it for a science degree breadth program) and his lack of efficiency.
All in all, if anyone bothers to help me out, I will FedEx you my firstborn child.
Regards,
Kormith.
Re: Stressing about my Final, Help? :)
Sorry, but blaming your lack of preparation on the professor is one surefire way to NOT get help. Plenty of people have taught themselves programming without your benefit of a professor or fellow students. Leaving all your questions in an attachment is another way to guarantee nobody helps you. Try again.
Ask a specific question, without any attachments, and we'll go from there.
Re: Stressing about my Final, Help? :)
Re: Stressing about my Final, Help? :)
Sorry, but we don't do assignments (or finals) for you. I have no idea what you're allowed to use and what you're not allowed to use for taking this final, so I don't want to post any specific hints on how you could figure out these answers for yourself.
Re: Stressing about my Final, Help? :)
Seeing as you are a long time surfer of these forums, of course we want to help you. You will need to show some more effort though..
Please post your code within the highlight tags (see my signature) rather than attach it. Like the other say, ask some specific questions related to the part of code you are stuck on.
We can then help you move forward..
Re: Stressing about my Final, Help? :)
In regard to what I'm allowed and not allowed to do, the professor has urged us to use this mock exam (It's not THE exam, it's a rough likeness of the one we're going to get) and seek help. He's said that in the programming world it's very common to be in a situation where you're clueless and need help from a peer :P.
I have the stuff written down, I'll scan it and see what happens for you guys.
But for now, if I had to pick three things that are bugging me about it it would be the following
1) I have very little idea about try/catch exceptions, particularly (exception e). This was the last thing shown in class and it was only covered very briefly, prof is AWOL lol. Completely clueless about how extending the exception class works, how does the super() work?
2) I'm a little troubled about extends in general. I know that there's an invisible Super() command, but does it go to the default constructor of the method it's extending or? Little confused.
3) [Finally] what's the significance of printAll and printit. I'm not familiar with those at all.
Nowwww to find my scanner :P
Re: Stressing about my Final, Help? :)
Read this: Lesson: Exceptions (The Java™ Tutorials > Essential Classes)
Why don't you throw together a basic example that uses inheritance? Throw some print statements into the constructors and methods to see what's happening.
Where are you seeing those methods? What class are they in?