could you give me homework please

This is a discussion on could you give me homework please within the C++ Programming forums, part of the General Programming Boards category; hi im realativly new to c++ and would like to know what homework tasks you have. i dont wont to ...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    118

    could you give me homework please

    hi im realativly new to c++ and would like to know what homework tasks you have. i dont wont to do anyones homework for them i would like to do it for myself.
    as im teaching myself c++ through books and tutorials and not school or anything like that it is hard to improve other than with challanges to do.

    so if you could set me a few programs to make and rate them as easy intermediate or hard i would be very thankful

    also maybe you could make a sticky to the same effect as this post as im sure it would help begginers no end thank you

    ive made only simple programs up untill now but i would like to make some bigger and better programs i understand most concepts but at the moment i have very little knowledge on windows programming so if u do post a question for me plz try not to make it a windows program just a general consol tasks please
    Last edited by thestien; 10-21-2006 at 07:42 AM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,822
    All the questions posted on this forum make for a rich pool of example programs.
    Why not look at the tasks various people have tried in the past and see if you can solve them as well.

    Or search the web for "programming contests", there are plenty of sites which have many questions, and some have online judging as well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    118
    ive looked through some of the posts but didnt find anything specific ill have a good look now.

    trouble is i dont think im any way nearly good enough to enter any contests lol
    but ill search it anyway
    thank you

  4. #4
    The C eater *munch*
    Join Date
    Oct 2006
    Posts
    101
    i've done this in C... searching for modus of given data, here's the reference implementation
    Code:
    [~/MISC/C] ./a.out
    1 3 4 3 3 4 5  6 3 2 3 4 3 4 5
    The mode is 3
    [~/MISC/C] ./a.out
    3 3 3 3 3 4 4 4 4 4 5 6 7 8
    The modes are 3, 4
    if you have yours, that'd be great... ... I love problems as well

  5. #5
    Registered User
    Join Date
    Dec 2005
    Posts
    118
    hey thanks but i havent got any problems to solve thats why i made this post
    sorry bout that

  6. #6
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Look up caesar encryption, implement an encoder and decoder. This is an easy/fun one, since it is semi practical. It is horrible encryption but most times if people see any encryption they just give up.

    Then as a follow up, make the encoder take a number for the encryption, and make the decoder be able to figure it out, no mater the number.

  7. #7
    Registered User
    Join Date
    Dec 2005
    Posts
    118
    im not sure if this is right but you want me to make an encoder right?
    but im not sure what u mean the last part
    Code:
    Then as a follow up, make the encoder take a number for the encryption, 
    and make the decoder be able to figure it out, no mater the number.
    oh and thank you im gonna get straight on it do i have to use cearsar one or can i make my own encriping app?
    Last edited by thestien; 10-21-2006 at 12:58 PM.

  8. #8
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    caesar is a form of encryption that is standard for people new or still learning C++ to have to implement atleast a decoder, sometimes an encoder is also required.

  9. #9
    Registered User
    Join Date
    Dec 2005
    Posts
    118
    ok thank you sorry i only scanned over an article about ceasar so know i think i know what needs to be done and at this point the second part seems quite hard so thank you

  10. #10
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,479
    Here is an intesting idea for you....

    Create a math program that a school could use in classrooms. There are rules:

    1 The age range of the pupils is elementry, So make the range of questions simple

    2 Make the questions all multiplcation

    3 Ensure the program checks the answer and prints "correct" or "wrong"

    4 if it is wrong, create a loop that repeats the question untill the if statement is true

    5 Uae srand rand to make a new set of numbers to multiply each time the program is run

    6 Make two variables, int right and int wrong, and incremnt them for the corect or wrong answer

    7 After 10 questions tally and print the results in a table format

    I have already done this, so if you need help let me know. Good luck if you give it a go

  11. #11
    Registered User
    Join Date
    Dec 2005
    Posts
    118
    cool that sounds doable ty if i get stuck i will ask you thanks

    ok i think ill eat my hat i didnt read the display in a table part lol
    now im sure ill figure this out but at the moment im in limbo with it
    Last edited by thestien; 10-21-2006 at 04:11 PM.

  12. #12
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    I think it would be best if you show what kinds of things you can do already and how easy/difficult you found them.
    For example:
    Finding the average of 3 numbers.
    Finding the largest number out of 10 numbers.
    Reversing a string
    Reversing the order of words in a sentence.
    Implementing a binary search on an array.
    Implementing a linked-list.
    Implementing a doubly-linked list.
    Implementing a sorting algorithm.
    Implementing binary tree insertion and traversal.

  13. #13
    Registered User
    Join Date
    Dec 2005
    Posts
    118
    wow thats putting things into perspective lol.
    i could porberly do the first 2 in the list but it all starts to sound
    new from there on although i think if i read up on them i would be able to do those things.

    i dont know if this would help but all i have really done is read c++ for dummies and done a few tutorials on this site i have made a few working programs and got stuck on others.

    it doesnt take me long to learn somthing i i understand there are hundreds of things to learn but knowing how to do somthing doesnt mean i can do it in a real program.

    so i am willing to take on alot of different things ill update this post when i have read and understand the things in your list.

    well ill update them as i learn them.

    1) i have done this and made it work with ints and floats
    2)i have done this using maximum()
    3)where reversing a string is concerned i think if it was a zero terminating char array then i could do that easy but a string might be a lot harder.
    4)i also think whever the scentence was stored in seperate "strings" then i could do it but as an input from a user that would be difficult
    5)i have no idea what a binary search is
    6)i think i could make and use a linked list but have not done so yet
    7)this sounds like a 2d array equivilent but if it not then i have no idea
    8)i have read over various sorting algorithoms and could make a bubble and shell type sort maybe a few others
    9)i have a vauge knowlede on this but not enough to be able to use one.

    thank you
    Last edited by thestien; 10-21-2006 at 04:09 PM.

  14. #14
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    Yeah when I said strings I did actually mean char arrays in this case, as most beginners would have assumed. I'm glad to hear that I should have been more explicit in this case.

  15. #15
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,479
    char arrays are have there uses, but learning vectors after arrays will make you understand that in most cases a vector is far superior to an array as it can shrink or grow in size as you see fit

    Code:
    vector <string > fruit;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. please check my homework
    By ejd81882 in forum C Programming
    Replies: 1
    Last Post: 05-06-2009, 05:04 PM
  2. Change Conversion Homework Help
    By Tominnovation in forum C++ Programming
    Replies: 2
    Last Post: 10-19-2008, 02:40 AM
  3. Please Give Me what i want..
    By chottachatri in forum C++ Programming
    Replies: 5
    Last Post: 03-24-2008, 05:11 AM
  4. Homework
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 11-03-2001, 04:39 PM
  5. How To Give A Font Colour ?
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 09-14-2001, 02:22 PM

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