top_left top_right
bottom_left
Next Event: Unknown | Forum Rules | QGL Website | Event Registration
openFolder AusForums.com
iconwatfolderLineopenFolder LANs
iconwatfolderLineopenFolder QGL
iconwatfolderLineopenFolder QGL Forum
Author
Topic: C Programming Help
Iggy Pot
Posts: 225
Location: Queensland
I have a very easy C programming problem to finish by tomorrow.. However, apparently I'm up the wall stupid when it comes to programming, and I cannot get s*** to work.. It's a simple little interest/budget calculator problem with only 4 inputs, worth 10%.. It probably wouldn't take 5minutes for someone who knew what they were doing with C, its not the end of the world but its worth 0 if its late, so im f***ed anyhow, so i'm putting $20+ on the ol paypal account for anyone willing to help out...
system
--
Persay
Posts: 3056
Location: Brisbane, Queensland
rtfm
parabol
Posts: 1708
Location: Brisbane, Queensland
I'm willing to answer questions (for free!) if you have any specific C-related questions or if you want to be pointed in the right direction.

But if you want someone to do the whole thing for you .. I'm outta here.
Iggy Pot
Posts: 226
Location: Queensland
i've studied java before, very basic, im just hopeless at retention.

i've been away 4 and a half weeks of this semester being overseas.. of course would much rather know wtf i'm doing, if i can't get my head around it im screwed in the future anyway, and also as i actually have to explain all of the code and demonstrate it for this particular assignment..

pointing in right direction would be great, but i have between now & tomorrow morning to do it..
Strik3r
Posts: 1148
Location: Gold Coast, Queensland
add me to MSN:

gervase AT winshop DOT com DOT au

ill help ya out (no charge)
whoop
Posts: 9090
Location: Brisbane, Queensland
bit of detail on what it now does, what it's MEANT to do and probably post the code somewhere & let someone look at it & see if they can pick any silly mistakes you've made.

I pretty much used google + ctrl c / ctrl v to make my php/c# crap. Wasn't for school, was out of my own boredom/need so wasn't worth any marks though :)

edit: damn 2 posts in the time it took me to write this post. Must type faster :(

last edited by whoop at 19:04:32 14/Sep/05
Gol
Posts: 1246
Location: Gold Coast, Queensland
I can't help you dude, but I'm sure those that can need a lot more infor about your assingnent to help.
Iggy Pot
Posts: 227
Location: Queensland
alright, i'll havta download msn

syd@summerwinter.com
Tollaz0r!
Posts: 6791
Location: Brisbane, Queensland
Ok Iggy, you know what pseudo code is? It is the written form of a program. If you can write down your pseudo code here, we can help you with your logic for the program. The actual santax may be another issue but if you have the pseudo logic down, then translating to real code isnt hard.
darius
Posts: 238
Location: Gold Coast, Queensland
also make sure you really want to be doing 3 years of programming (if you are doing a programming degree) because if you dont even like the basics it gets worse ... im good evidence of this and wish someone told me something like this, been there for 4 years ( its a 3 year degree) and still my programming skills arent as good as my peers
Khel
Posts: 10567
Location: Wynnum, Queensland
Do your lecturers and your tutors and stuff know you've been out of the country for half the semester? Have you talked it over with them? Maybe something could be sorted out to take your absence into account, dunno, couldn't hurt.

Anyway, its only a 10% assignment, worst comes to worst and you get zero its not the end of the world, you've still got another 90% to go.

last edited by Khel at 23:14:01 14/Sep/05
Gol
Posts: 1247
Location: Gold Coast, Queensland
Just out of curiosity lads: Is pseudocode really as useful as the text books at school would have you believe? I just fail to see how it can apply, universally, to all the different and REALLY diverse langauges out there. Even when I wrote pseudocode for a specific programming language (VBasic) it was still a bitch to translate to actual code when our teacher forced us to pseudocode it first, then code later. Opinions/Comments?
Fizzer
Posts: 342
Location: Brisbane, Queensland
Personally i think strict psuedo code sucks arse (takes too long f***ing around writing "fake code"). By that i'm talking about the s*** you woulda learnt at school/uni that has guidlines etc.

However i find it really handy when i'm just nutting out problems with mates or want to get my programming logic out.

usually its just something like this :-

for i <= size of array
do stuff here
}

basically kinda/sorta code just without parenthesis/effort :D
Khel
Posts: 10571
Location: Wynnum, Queensland
Pseudo code is meant to be language independant, so pseudo code for a VB program isn't any different from psuedo code for a C program. In my personal experience it doesn't serve much purpose outside of academia, but in the end its just a tool for designing your program and making sure the logic is sound. I dont bother with it because I find for anything more than a simple program it just becomes too unwieldy and wastes too much time and I dont like to plan every intricate detail out before I start coding, I like to plan out a basic framework and figure out what classes I'll need and stuff like that, then fill in the detail on the fly as I code.
parabol
Posts: 1711
Location: Brisbane, Queensland
Just out of curiosity lads: Is pseudocode really as useful as the text books at school would have you believe? I just fail to see how it can apply

I take it you've never done any courses in algorithm theory or cryptography/coding-theory or done any team project work?

It's just a tool that allows you to see algorithms from a high-level point of view, so that you can design, analyse and optimise them without getting into the low-level specifics of a programming language. Later, when your algorithm is sound from a functional and mathematical point of view, you can then implement it in your chosen language and optimise it for the specific platform.

It's also helpful if you're collaborating with someone on a software project and want to, for example, describe how they should call your interface code, etc. It's easier to write up some simple pseudocode to give them a -rough- idea, rather than to write actual C/C++ code with the correct data structures involved.

Seriously, this is not just for academia. Though I guess most software developers these days wouldn't care about the functional and mathematical correctness of their algorithms to even bother with pseudocode. As long as the code compiles in VS 2003 .NET, and the software 'seems' to work, it's good enough for them :S
Khel
Posts: 10573
Location: Wynnum, Queensland
I'm not saying I do no design, I just dont use psuedo code.
parabol
Posts: 1712
Location: Brisbane, Queensland
I wasn't really targeting you :)

It's mainly towards people (mainly 1st/2nd year I.T students) who just want to sit down and quickly write code without any sense of planning or thought towards the design. "But I hate planning and writing documentation", I have heard many say. I stop talking them soon afterward. They are just big hacks and it reflects on other aspects of their lives as well.

More seasoned programmers can do much of the planning (of smaller projects) in their head before writing any actual code, which would provide the same benefits as writing pseudocode. As long as there is some sort of planning (which pseudocode is one such tool for), the software has half a chance of being decent.

(I tried to fit some anti-Valve comments into this post, but failed miserably)
Mantra
Posts: 1333
Location: Brisbane, Queensland
I've used a form of pseudo code quite a bit. It's a good tool for programmers and business analysts to be able to talk to each other about the same thing. For example, the business analyst that knows lots about superannuation knows the steps required to do something, but doesn't know how to express it in "programming" terms. So a lot of the time, we use a procedural pseudo code so it makes sense to both.

I agree with Khel, that the academia pseudo code with lots of rules and so forth probably doesn't really have a place in the "real world", but a simplified form of it certainly makes sense. As long as it makes sense to all parties involved, it doesn't matter what you use.

Also, sifnt VB.

;)
Strik3r
Posts: 1149
Location: Gold Coast, Queensland
i see both sides of the 'argument'

some problems are small enough that you don't need to write lots of formal pseudo code for them.. for example, most 1st/2nd year programming assignments :P. for other larger tasks (or more complicated ones) it can be good to break the problem down into smaller chunks.

Again im not a fan of the 'formal' psuedo code.. but i dont mind writing a list of bullet points that (in simple english) each describe a chunk of the problem that needs to be implemented.

last edited by Strik3r at 12:59:42 15/Sep/05
Raven
Posts: 1110
Location: Melbourne, Victoria
Was going to comment on this earlier.

Paying someone to do your assignment is plagiarism, so I hope you're only asking for help understanding, not for someone to do it for you. You could be expelled from the course altogether if caught.

It also won't help you come final exams.

Now, on the other hand, if you actualyl want help and want to *understand* s***, post a question here, and I might be happy to try to help (and I'm sure others will too).
shad
Posts: 1260
Location: Brisbane, Queensland
Guessing its probably too late anyway?
Opec
Posts: 3472
Location: Brisbane, Queensland

I've used a form of pseudo code quite a bit.


That's 'cause you're a VB programmer, so you're actually writing in a pseudo programming language anyway.

last edited by Opec at 00:27:31 16/Sep/05
Khel
Posts: 10580
Location: Wynnum, Queensland
BAM
system
--
Not a new post since your last visit.
New Post Since your last visit
Back To Forum
Advertise with Us | Privacy Policy | Contact Us
© Copyright 2001-2026 AusGamers Pty Ltd. ACN 093 772 242.
Hosted by Mammoth Networks - Australian VPS Hosting
Web development by Mammoth Media.