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...
Type: Posts; User: Kranky
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...
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...
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...
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 <...
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...
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...
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...
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...
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...
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....
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>
Thank you for pointing that out iMalc. I will fix that at lunch time.
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...
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...
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...
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...