Thread: homework finalising help.....

  1. #16
    Registered User
    Join Date
    Mar 2011
    Location
    Baltimore Md. USA
    Posts
    58
    keep some perspective, you're not finalizing anything other than the pseudocode. use your book to get the proper syntax of your statements. most lines end in ;

  2. #17
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Hugeknight View Post
    dude i told i sat down wrote a wrong code the tutor came and told that thats ^ the wa to do it and i think i STATED before that o know nothing about c programming so give me a break ok!
    and how would i possibly be able to clarify that that code is mine?
    and yea there is no actual code.....
    First of all... stop acting like a baby...

    We need to know if the code you posted at the bottom of the first message is what you are asking for help with... that's all...

    On the off chance it is... and you say you know how wrong it is...

    The best advice any of us could give you would be to crack the books and start reading. Take any C book or tutorial... start on page 1, read the text, type up the examples, compile them play with them...learn how they work... move on to page 2.

    C is never going to speak your language... so you're going to have to learn to do things its way.

  3. #18
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    Perhaps a good point to start would be to communicate in correct English not in SMS speak. Then, maybe people will actually take you seriously.
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  4. #19
    Registered User
    Join Date
    May 2011
    Posts
    11
    ok good morning everyone.
    after last night i read all the posts again and realised that i havent said that the course im taking is introductory level and after reading all previous codes we made for class they all look "puesdo" so yes the last part of what i posted is what i believe is the code needed to make the program for the question.
    PS: the reason i was posting in "SMS" last night was because i was sleepy i usualy dont post like that.

  5. #20
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Ok, so write yourself a program that rolls a couple of dice. Post your attempt here, and let us know what stumps you about that, and we'll point you in the right direction.


    Quzah.
    Hope is the first step on the road to disappointment.

  6. #21
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    That's rather unfortunate. Pick a post at random and look at the code that's posted. Compare it to how yours looks. You should see dozens of differences between your code and code that even makes sense (we won't even get to correct code yet) -- just in the form of how it looks. Do the same with code in your book. That should give you a start.

  7. #22
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Ok, the good news: you do know how to type. All you need now is to find the shift key and punctuation marks.

    Now the bad news: that code you posted won't work in any compiler or computer language I've ever seen...
    Sorry, but it's not a computer program. (I was hoping that was a pseudocode example she gave you to work from...)

    You really do need to crack the textbooks and find out what's going on...

    And if your teacher is approving of stuff like you wrote (as you mentioned)...
    you seriously need to talk to her employers about getting a REAL teacher.

  8. #23
    Registered User
    Join Date
    May 2011
    Posts
    11
    lol but unfortunatly we dont have a recommended book so will the faq's on this site be enough?

  9. #24
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by Hugeknight View Post
    lol but unfortunatly we dont have a recommended book so will the faq's on this site be enough?
    For you? I have my doubts.


    Quzah.
    Hope is the first step on the road to disappointment.

  10. #25
    Registered User
    Join Date
    Mar 2011
    Location
    Baltimore Md. USA
    Posts
    58
    sometimes it may be helpful to checkout newboston on youtube. he has some introductory videos on programming in C and other languages. If you check out the first few videos you should be able to start. Then post what you have and there are many ppl on here who can help point you in the right direction.

  11. #26
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Hugeknight View Post
    lol but unfortunatly we dont have a recommended book so will the faq's on this site be enough?
    1) Google is your friend...
    2) I started with this one... Teach Yourself C in 21 Days -- Table of Contents
    3) How the haitch eaiee double hockey sticks do they expect you to learn without documentation?

  12. #27
    Registered User
    Join Date
    May 2011
    Posts
    11
    i seriously dont know tater but but the programming subject im doing isnt even a standalone subject so maybe that explains that?

  13. #28
    Registered User
    Join Date
    Mar 2011
    Location
    Baltimore Md. USA
    Posts
    58
    which class are you in? and what school?

  14. #29
    Registered User
    Join Date
    May 2011
    Posts
    11
    The class in question is called robotics and mechatronics project 1 and the school is actually a uni and im studying robotics and mechatronicts engineering BUT tommorow im going to ask the adminstration if i can swicth majors to civil engineering where there is no electronics or programming subjects which im clearly not cut out for.
    PS: im serious about switching majors no kidding there!

  15. #30
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by time4f5 View Post
    sometimes it may be helpful to checkout newboston on youtube. he has some introductory videos on programming in C and other languages. If you check out the first few videos you should be able to start. Then post what you have and there are many ppl on here who can help point you in the right direction.
    You will never learn anything as complex as computer programming from a video... it just won't happen, you won't retain the information well enough.

    There's simply no substitute for sitting down with the books and doing the exercises, page by page...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Homework help.
    By PoJo7467 in forum C Programming
    Replies: 7
    Last Post: 11-30-2009, 12:19 PM
  2. Need help on my homework
    By mejv3 in forum C++ Programming
    Replies: 15
    Last Post: 10-11-2005, 03:43 PM
  3. homework help
    By computerjunkie5 in forum C++ Programming
    Replies: 13
    Last Post: 10-27-2003, 11:54 AM