hahahah if I was learning it I'd need to come up with an app or a tangible program to build, and I'm terrible at coming up with ideas.
and bookmarked. i was creating an android app for stocks (I know there are loads of them but I wanted a quick simple app that could give me all the info I needed) but i realised that doing a web app would be a better idea so I'm gonna start that up when I finish the courses I'm doing.
Im pretty decent with CSS and HTML. I can tear apart and fake it with some PHP. Otherwise, I'm pretty useless (not for a lack of trying!) I'm actually looking for some music-minded people with SQL experience for a project. This might be a cool place to find someone to work with.
Used MariaDB for the first time on these forums — actually really impressed with it. Will probably use it instead of MySQL in the future.
I use MongoDB for stuff at work and I much prefer it over SQL. Granted we're just kinda using it as a JSON dump, but it has a lot of great functions to process and aggregate that data for us when we pull it.
Making a compiler is very fun. i'm talking a class called, compilers. It's pretty awesome making your own programming language.
My school had a compilers class but it hasn't been offered in years. My Operating Systems teacher is going to revive it...after I graduate.
yeah that was pretty cool. we went from haskell to compilers. functional programming really helped with the concepts of compilers. what are you using? we used javaCC
haha MIPS that was great, we had a double class first x86 then MIPS. remember spending hours trying to make pong in x86.
I had a class who one day introduced X86 to us by just stating that there are registers and that you use them. The next class, he gave us a lab assignment to do which consisted of reading a 2000+ line file of text and counting the occurrences of every letter a-z and then count every word as well. I dropped that class and took it again a year later lol. That professor was let go the semester after since his research was subpar and that was a requirement to become an associate professor and his 6 years were up.
I'm a python user(use it daily at my job) but am about to finish a web dev bootcamp that teaches javascript (node.js). Let's just say python is a tad easier on the eyes..
Any help is appreciated here, I'm kind of lost on this one, been a busy week and the logic is not fitting my brain right. (This is due in 2 hours, EEK) C++ //function isPrime //input parameter - positive integer greater than 1 //returns true if the number is prime, otherwise false // bool isPrime (int number); //function findPrimes //input parameter - positive integer //Uses the isPrime method to print a list of prime numbers between 1 and n. void findPrimes (int n); //function findFibo //input parameter - positive integer //returns the nth fibonacci number where //Fib(0) -> 0 //Fib(1) -> 1 //Fib(N) -> Fib(N-2) + Fib(N-1) //Note: You must use a loop in your solution. Also, if passed a 0, return 0. int findFibo (int n); //function findFactors //input parameter - positive integer //prints the prime factors of the given number to standard output (cout) //example output: 52=2*2*13 (or 52=1*2*2*13) or 13=prime //Hint: You will need nested loops for your solution. void findFactors (int number);
bool IsPrime(int number) { int num; for (num=2; i<number; i++) { if (number % num== 0) { return false; } } return true; }
Professor outlined that it's supposed to be a while loop instead of for; it looks something like bool prime = true; while (!prime && _______) (left blank but I assume thats just num > 0) if (number % factor == 0) prime = false;
I don't understand why you need a while (or for, to be honest) loop when the parameter only accepts a single Int. But my experience is limited to Objective-C. Seems like just an if statement would do the trick.
To find if a number is prime you have to run a loop for every divisible factor up to the number itself.
haha yep, one too many beers had me thinking something else edit: the while loop makes sense then, that way it breaks the loop if it finds a match rather than executing the entire loop
oops got the isPrime function confused with the while loop for findPrimes. edit: or not, I'm confusing myself.. I should take better notes