Search:

Type: Posts; User: Kranky

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,379

    Thank you stahta01. I emailed the teacher for...

    Thank you stahta01. I emailed the teacher for the SQL class and he said I would definitely need the SQL class. He said they teach Oracle but I would have no problems applying what I learn to...
  2. Replies
    6
    Views
    1,379

    Thanks nvoigt. They do have a SQL class. I will...

    Thanks nvoigt. They do have a SQL class. I will look into that. I take it you can do calculations between all the fields with it.

    My other goal is to make a program and sell it to other...
  3. Replies
    6
    Views
    1,379

    Which programming language?

    I have a question for you guys. I am getting ready to take a programming class and I wanted to choose the right one at my local community college and I needed help selecting the right programming...
  4. I realize what I was doing wrong with my...

    I realize what I was doing wrong with my primes_found. I was trying to create a while loop until primes_found was = to primes_qty. All I had to do was replace i <= prime_qty with primes_found <...
  5. Thanks oogabooga. You posted this while I was...

    Thanks oogabooga. You posted this while I was typing up my post. I will read through your code.

    You are right this is not homework. I wanted to learn C++ so I was surfing the net and found...
  6. I have made corrections and now it looks like...

    I have made corrections and now it looks like this. I didn't want 1 to be in there so started i at 2 and added +1 back to prime_qty.

    I would like to know how to put a working counter when it...
  7. Alex pointed out that my int prime_check = 0; was...

    Alex pointed out that my int prime_check = 0; was wrong. I changed it to 1 and 1 & 2 showed up. I fixed the prime_qty + 1 to be <=. I should have thought of that.

    I still do not know how to...
  8. The problem with 2 is: 2 - ( 2 / 2 ) * 2 = 0. If...

    The problem with 2 is: 2 - ( 2 / 2 ) * 2 = 0. If a return of 0 comes back it says the number is not prime. If I look at 8 when checking with 2: 8 - ( 8 / 2) * 2 = 0. The return of 0 at anytime...
  9. Jumping into C++ Chapter 5 problem 6 - Critique please

    I have been working through Jumping into C++ and in Chapter 5 one of the problems was to write a program that computes the first 100 prime numbers. With everything we have learned in the book this...
  10. Thread: cout question

    by Kranky
    Replies
    10
    Views
    2,359

    Hk_mp5kpdw, I can follow the code and I...

    Hk_mp5kpdw, I can follow the code and I understand what you did. I didn't realize you could put a conditional if-else statement (not sure I am using the right terminology) in the middle of the cout....
  11. Thread: cout question

    by Kranky
    Replies
    10
    Views
    2,359

    OK. I couldn't wait for lunch. I actually had 2...

    OK. I couldn't wait for lunch. I actually had 2 issues when beer was at 2 and at 1. Is this coded correctly or should I have done it differently?

    Thanks,

    Kranky



    #include <iostream>
  12. Thread: cout question

    by Kranky
    Replies
    10
    Views
    2,359

    Thank you for pointing that out iMalc. I will...

    Thank you for pointing that out iMalc. I will fix that at lunch time.
  13. Thread: cout question

    by Kranky
    Replies
    10
    Views
    2,359

    Ok Soma, I have been thinking about this...

    Ok Soma,

    I have been thinking about this little project at work and on the ride home. I have some experience programming in BASIC back in the early 80's. From what I can see if I define the...
  14. Thread: cout question

    by Kranky
    Replies
    10
    Views
    2,359

    cout question

    On chapter 5 problem 1 in Jumping into C++ I need to write a program that prints out all the lyrics to 99 Bottles of Beer on the Wall.

    I did it two ways. One with several cout statements and one...
  15. Replies
    7
    Views
    2,426

    Thank you for the responses. I have not made it...

    Thank you for the responses. I have not made it to the part about return, so I am not sure where that goes.

    It feels weird putting spaces in statements like "age1 < age2" versus "age1<age2". I...
  16. Replies
    7
    Views
    2,426

    Please review my structure.

    I am new to programming and bought Jumping into C++ by Alex Allain. I am working through the practice problems and was hoping someone could take a look at this and let me know if I am writing the...
Results 1 to 16 of 16