Help with programs

This is a discussion on Help with programs within the C++ Programming forums, part of the General Programming Boards category; My teacher must think Im inhuman. I have about a week to complete seven programs. I am totaly lost. Source ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    66

    Help with programs

    My teacher must think Im inhuman. I have about a week to complete seven programs. I am totaly lost. Source code would be useful, or just hints and help. I need to do the following

    1 convert meters to yards, feet ,and inches
    2 Print out a bow tie made of asterisks
    3 reduce an inputed fraction
    4 search and sort a list of names from a file
    5 make a sequential stack
    6 make a linked queue
    7 make a tree

    I am totaly lost and I dont really have an opportunity to ask him for help.

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,403
    I mean, frankly!
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    66

    Angry

    Please Help

  4. #4
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    Totally dude! I'll finish all the problems for you!
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  5. #5
    Registered User [Z-D]'s Avatar
    Join Date
    Oct 2006
    Posts
    37
    I am too having trouble, but not as bad as you. I don't know much, but I can help you with no. 1.

    Have you found out how to convert the units. If not try here

    And try here to find out how to devide with getting remainders instead of decimel places.
    But unforutnately I can't find a REALLY, REALLY, REALLY useful tutorial site for arrays.

  6. #6
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Make some effort. We won't write your homework for you.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  7. #7
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    nesagsar,

    The people here are willing to help you with hints and suggestions. We might even write a couple of lines of code or point-out a bug in your code for you. But, you will have to do most of the work yourself. That's our style... We like solving puzzles, and we want you to solve your puzzle yourself too!

    Please read the Homework Policy and the Forum Guidlines.

    Show us what you've got so far. If you can't get started, ask "how do I get started?"

    You will also get better responses if you create a new thread for each program.

    If you've been reading your book and doing your homework, the first three should be fairly easy for you. The others are a bit more involved, but I assume you've covered the material.

    Seven programs in seven days does seem like a lot. It's probably about right for a college course, but a bit much if it's a high school class. I suspect programming requires more homework hours than your average class... We have all spent lots of "extra" hours debugging some "simple" problem, or figuring-out how to get something to work.

  8. #8
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    DougDbug I havent seen you on here in ages, Good to hear you again
    I'm just trying to be a better person - My Name Is Earl

  9. #9
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Indeed
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  10. #10
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    >Indeed

    He's been lurking, making his calcuated move to strike back on the boards LOL
    I'm just trying to be a better person - My Name Is Earl

  11. #11
    Registered User
    Join Date
    Nov 2006
    Posts
    66
    I wish that I had a book to help me.

  12. #12
    Registered User
    Join Date
    Jun 2006
    Posts
    121
    Yeah, I'm with these guys. I ask for a lot of help on here, but only when I'm stuck and have tried for a while to fix the problem. Nesagsar, if you start and try to attack the problem, and show that you did, you'll get help. Also, what do you mean, you wish you had a book? You don't have a text for your class?

    -Patrick

  13. #13
    Registered User
    Join Date
    Jun 2006
    Posts
    121
    A few hints to get you started:

    1) convert meters to yards, feet ,and inches - http://www.sciencemadesimple.com/conversions.html
    2) Print out a bow tie made of asterisks - play with endl and " " (blank spaces) to get the desired effect
    3) reduce an inputed fraction - division by the lower number in the fraction, whether it be numerator or denominator
    4) search and sort a list of names from a file - to read from file, see http://www.cplusplus.com/ref/iostream/fstream/. As you read them in, put them in a container of your choice - http://www.cppreference.com/cppvector/index.html or maybe http://www.cplusplus.com/doc/tutorial/arrays.html. Also see 'search' and 'sort' here: http://www.fredosaurus.com/notes-cpp...rt-arrays.html and here: http://www.informit.com/articles/art...p?p=25281&rl=1 for arrays, and for vector search() and sort(): http://www.java2s.com/Code/Cpp/Data-...chinvector.htm and http://www.thescripts.com/forum/thread61134.html.
    5) make a sequential stack - http://www.cppreference.com/cppstack/index.html
    6 make a linked queue - http://library.thinkquest.org/C005618/text/queues.htm
    7 make a tree - http://math.hws.edu/eck/cs225/s03/binary_trees/

  14. #14
    Registered User
    Join Date
    Nov 2006
    Posts
    66
    Thank you, that is helpfull, and No we do not have a textbook for this class. We are supposed to find our own internet resources.

  15. #15
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Look at this sites tutorials
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

Page 1 of 4 1234 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 06:32 AM
  2. Reroute where programs write to
    By willc0de4food in forum C Programming
    Replies: 7
    Last Post: 09-21-2005, 04:48 PM
  3. How come Dev C++ cant run some programs??
    By Sephiroth in forum C Programming
    Replies: 41
    Last Post: 09-17-2005, 05:35 AM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 04:42 AM
  5. executing c++ programs on the web
    By gulti01 in forum C++ Programming
    Replies: 4
    Last Post: 08-12-2002, 03:12 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21