Search:

Type: Posts; User: newbiec++

Search: Search took 0.01 seconds.

  1. Thread: The Big O

    by newbiec++
    Replies
    3
    Views
    1,298

    The Big O

    Question on the Big-O runtime efficiency
    Need some help with these problems


    Assume T(n) is a count of the number of key operations for an algorithm that processes a list of n elements....
  2. Replies
    11
    Views
    1,441

    I fixed it and it works now. Thanks guys :)

    I fixed it and it works now.
    Thanks guys :)
  3. Replies
    11
    Views
    1,441

    I thought I got the smallest function to work but...

    I thought I got the smallest function to work but it only returns the first number entered.
    Here is what I put in:



    int indexSmallestElement (const int list[], int listSize)
    {
    int index;...
  4. Replies
    11
    Views
    1,441

    It worked !!!!! I don't know if I could have...

    It worked !!!!!

    I don't know if I could have figured it out by myself I am still very green.
    Brain your code is way over my head right now. I hope to get that good one day.

    To output the...
  5. Replies
    11
    Views
    1,441

    I used the follwing code that was provided by...

    I used the follwing code that was provided by jmd15
    Code:
    int index;

    for (index = listSize; index >=0; index--)
    cout << list[index] << " ";
    [/code]

    It does print out the reverse,...
  6. Replies
    11
    Views
    1,441

    Need some help with arrays

    I am trying to get my program to return the smallest number and then output my list in reverse order. My largest function works but I can't figure out how to do the smallest or the reverse order....
  7. Replies
    2
    Views
    999

    Program output not right

    I need some help. My output is all wrong. I am trying to get output of cost of books purchased (will be different amounts according to category), sales tax due, total due, category and number of...
  8. Replies
    6
    Views
    1,373

    That is exactly what I was looking for. I thought...

    That is exactly what I was looking for. I thought if/else would be o.k. but was not sure.
    Not really ripping off old faithful this was just some random numbers.
    Thanks
  9. Replies
    6
    Views
    1,373

    Do I use if / else or is there a simpler way to...

    Do I use if / else or is there a simpler way to do it with an equation?
  10. Replies
    6
    Views
    1,373

    C++ math question

    I have a math problem. I have 3 categories of customers:
    old
    new
    temporary

    They can purchase books at the following rates:

    old: 1-5 purchased = 50.00 each
    6 or more = 45.00 each
  11. Replies
    3
    Views
    1,035

    You understood what I was looking for. I...

    You understood what I was looking for.

    I changed my question to try and clarify what I was looking for. When you are new to C++ it is hard to even know how to phrase your questions to get the...
  12. Replies
    3
    Views
    1,035

    Value returning function

    Can someone explain a value - returning function
  13. Replies
    6
    Views
    1,024

    You guys are great. My program is perfect. I did...

    You guys are great. My program is perfect. I did the calculations in the way you described above and it worked perfectly. Thank You So Much!!!!!
  14. Replies
    6
    Views
    1,024

    I need a math solution I guess. I want to be able...

    I need a math solution I guess. I want to be able to put in any number of miles driven and the number of rented and have it compute the bonus points.
  15. Replies
    6
    Views
    1,024

    Syntax problem

    I am a newbie to programming and I have a problem. I need to put this in the correct syntax.
    Daily bonus points are accrued at 300 points for every three days.
    Mileage bonus points are are...
Results 1 to 15 of 15