• ### What are used to make a comparison between two values in order to determine the next instruction to execute?

9 answers · 4 days ago
• ### Are desktop PC programs created differently than mobile programs?

I've heard about a growing "shift to mobile." In terms of programming/design, is it THAT different? Why would a program like Facebook, for example, be different on a mobile device like a phone vs. its use on a PC. I don't get the big fuss.
I've heard about a growing "shift to mobile." In terms of programming/design, is it THAT different? Why would a program like Facebook, for example, be different on a mobile device like a phone vs. its use on a PC. I don't get the big fuss.
4 answers · 1 day ago
• ### What to learn to become a game developer?

5 answers · 3 days ago
• ### Python coding question?

Given a series of numbers as input, add them up until the input is 10 and print the total. I used the code below to answer this question, but it is not returning output for me. Do not add the final 10. num_str = input("Input an int: ") num_int = int(num_str) x = 0 while num_int != 10: x += num_int -... show more
Given a series of numbers as input, add them up until the input is 10 and print the total. I used the code below to answer this question, but it is not returning output for me. Do not add the final 10. num_str = input("Input an int: ") num_int = int(num_str) x = 0 while num_int != 10: x += num_int - 10 if num_int == 10: print(x)
4 answers · 2 days ago
• ### What are the reasons students get poor marks in Programming Assignments?

8 answers · 6 days ago
• ### What do I have to do to get a computer programming job without a degree?

Best answer: Post your stuff on GitHub and ask prospective employers to take a look at it. If you can get an interview, part of that involves timed coding tests, where you can demonstrate proficiency. CS programs don't teach students how to code. They teach them how to think and they weed out the non-hackers. Coding is... show more
Best answer: Post your stuff on GitHub and ask prospective employers to take a look at it. If you can get an interview, part of that involves timed coding tests, where you can demonstrate proficiency.

CS programs don't teach students how to code. They teach them how to think and they weed out the non-hackers. Coding is something they learn on their own.
4 answers · 4 days ago
• ### All of the main personal website hosting sites have permamently kicked me out of their websites. now i cant make a website hosted by those?

companies. one guy said they'd tell the other hosts as well. so now what? how can i get a "free hosting" account now?
companies. one guy said they'd tell the other hosts as well. so now what? how can i get a "free hosting" account now?
4 answers · 5 days ago
• ### Is super AI going to takeover the Earth from us and kill us?

Best answer: No, super AI will not take over the earth or whatsoever. It's the humans who created the the AI. Although there will always be a fear of Machines taking over humans but there are very few chances of this to happen. Machines perform the way we have programmed those. We add intelligence in the machines through... show more
Best answer: No, super AI will not take over the earth or whatsoever.
It's the humans who created the the AI. Although there will always be a fear of Machines taking over humans but there are very few chances of this to happen. Machines perform the way we have programmed those. We add intelligence in the machines through the programming and these machine's intelligence can be limited to some tasks.
11 answers · 1 week ago
• ### I taught myself full stack development. No college degree. What sort of jobs could I apply for?

5 answers · 1 week ago
• ### How do computer programs deal with infinities?

Best answer: This is typically only an issue with floating point number formats. Most computers use a standard (IEEE 754) to represent floating point numbers. That standard defines bit patterns that stand for "+ infinity" and "- infinity", and also defines what results should be produced when infinities... show more
Best answer: This is typically only an issue with floating point number formats. Most computers use a standard (IEEE 754) to represent floating point numbers. That standard defines bit patterns that stand for "+ infinity" and "- infinity", and also defines what results should be produced when infinities are used in arithmetic and other operations.

However, these special "infinity" values really are simply encodings for values too large to represent.

That standard also has a different set of bit patterns to represent "Not a Number" or NaN values. An earlier answer has these two ideas (infinity v. NaN) mixed up. These have "quiet" and "signalling" versions. Trying to use a "signalling" NaN as a data value will generate an exception--if those exceptions are enabled. (They usually aren't) Trying to use an infinite value as a data value generally won't.

There also five defined types of exceptions that can be thrown, but implementations may suppress these and most will simply produce a result (infinity or NaN). "Divide by zero" is often trapped as an exception. Python does that, for example, but both Java and all the C++ implementations I've used will produce an infinity value quietly.

For integer data types, there is no infinity. Computers do integer arithmetic as "modular arithmetic" with the modulus being some large power of 2, nearly always 2^(number of bits in the data type).
4 answers · 1 week ago
• ### I had an interview for a Software Developer position and the guy told me since I haven't created projects on my own that I'm an idiot?

Best answer: Expecting a student to have done a project is absurd. A student is expected to do the necessary assignments in their classes. The result is a final grade, and these are combined into a transcript and the granting of a degree. You learn about projects when you start your first job. An employer who hires... show more
Best answer: Expecting a student to have done a project is absurd.

A student is expected to do the necessary assignments in their classes. The result is a final grade, and these are combined into a transcript and the granting of a degree.

You learn about projects when you start your first job. An employer who hires entry-level people should be expecting to mentor them.

If you have good grades from a good school then say that to anyone who doubts your credentials.

TIAFQ
9 answers · 2 weeks ago
• ### What branch in Computer Science should I study if I want to learn how to create pc and mobile games?

10 answers · 2 weeks ago
• ### What are the basics I should have mastered in python?

I’m curious what would you say are the basics that I should have mastered? I’ve familiar with strings, functions, dictionaries, tuples, etc.
I’m curious what would you say are the basics that I should have mastered? I’ve familiar with strings, functions, dictionaries, tuples, etc.
4 answers · 2 weeks ago
• ### Which is better front end or back end development for beginners?

5 answers · 2 weeks ago
• ### What should I do if my code is not working correctly even after reading it for 20 times and not finding the mistake?

Best answer: You're missing a closing brace in your if statement, before the else. Should be: if (playerTurn == false { square[row-1] [column-1] = "X "; } // ***added this line*** else { square[row-1][column-1] = "Y"; } Some sites you can paste your whole code on for sharing are codepad.org,... show more
Best answer: You're missing a closing brace in your if statement, before the else. Should be:

if (playerTurn == false {
square[row-1] [column-1] = "X ";
else {
square[row-1][column-1] = "Y"; }

Some sites you can paste your whole code on for sharing are codepad.org, pastebin.com, ideone.com. One suggestion is to clean up your indentation and {} brace usage. If you use Visual C++ or Code::Blocks, that's easy, since both have source reformatting. ("Edit>Advanced>Format Document" for VC++ or "Plugins>Source code formatter (AStyle)" on C::B). If you don't like the result, either of those can be undone with Ctrl+Z.

One idea that can help a LOT when you are learning is to try not coding so much before testing. To do that, you'll have to break your goal down into smaller tasks. This much easier if you have learned how to define and use your own functions; but you can still use the idea even if you're still trying to put everything in main().

But it will *really* help if you at least put the code to display the board into a function. That way, you could easily put show_board(...) calls in debugging code to show the state of the board just before or just after running some complicated bit of logic you are trying to debug.

As for the game itself, two points:

1. You talk about a 5x1 tic-tac-toe game, but t-t-t doesn't really make sense there. The first move is a win by filling a complete column! More to the point, there aren't any true diagonals on a non-square board.

2. If you want to experiment with this anyway (redefining what "diagonal" means, I suppose) then start by writing the code with the board size set to a constant 3x3:

const int n_rows = 3;
const int n_cols = 3;
const int max_rows = 20;
const int max_cols = 20;
std::string board[max_rows][max_cols];

...or something like that. Now get that working, making sure to use n_rows or n_cols instead of 3. When that works, try changing to another size by modifying the n_rows and n_cols constants, making no other changes, and see if that works.

I know this sounds like extra typing, and it is, but in the long run you spend more time coding and less time debugging.
4 answers · 2 weeks ago
• ### I am in 8th grade and have to take a coding class. I yelled at my old school teacher and I'm scared to go back to school.?

Some background on my "coding" teacher. He is very old school We got an assignment to write a script in Python for user/pass/pin. Which I can code pretty well and I know what I'm doing so this was easy. So i show him my code and he says it was correct and put it on a hard drive to turn in and also to... show more
Some background on my "coding" teacher. He is very old school We got an assignment to write a script in Python for user/pass/pin. Which I can code pretty well and I know what I'm doing so this was easy. So i show him my code and he says it was correct and put it on a hard drive to turn in and also to show the class. Fast forward 2 days i turn in the USB and he checks it and says the counter to count the user/pass/pin is wrong. Which i was confused because he told me it was correct a few days ago. So i didn't fix it because it was correct and next week turned it in and it was correct even though i didn't fix a thing! So i turned it in and i got it back 4 days ago on a piece of paper and more things are wrong! He told me my code is different and doesn't work. Which that was bullcrap because it works the same as the other kids in my class but he told be to add an else: in there so i did. I was trying to put the else: in but it wasn't working because my code is different so i asked for help. I said, "May you please help me with adding an else:" My teacher said, " YOU DONT NEED AN ELSE!" I replied with, "you keep changing what is right and what is wrong i have been right for 2 weeks." After that my teacher was pissed and said the following, "DON'T YOU ARGUE WITH ME YOU CANT TURN IN THE ASSIGMENT NOW GIVE ME YOUR COMPUTER ITS GETTING TAKEN AWAY FOR THE REST OF THE YEAR!" Now im scared to go to school now.
4 answers · 2 weeks ago
• ### How did you learn to program?

I only have a very basic understanding of programming, I learned a tiny bit of html5 and java script but I'd like to learn python. I'm just wondering, how did you learn how to program? What resources did you use? What are some projects that you recommend? How did you stay motivated to keep learning? So... show more
I only have a very basic understanding of programming, I learned a tiny bit of html5 and java script but I'd like to learn python. I'm just wondering, how did you learn how to program? What resources did you use? What are some projects that you recommend? How did you stay motivated to keep learning? So far I've been learning exclusively from youtube videos and websites like freecodecamp or codecademy.
7 answers · 3 weeks ago
• ### What is it called when the words on a website are on top of each other?

It s an error on website that causes the text to be all jumbled together and on top of each other and the site won t load correctly. Is there a name for this errors and what causes it?
It s an error on website that causes the text to be all jumbled together and on top of each other and the site won t load correctly. Is there a name for this errors and what causes it?
4 answers · 2 weeks ago
• ### Whats the best way to deleate a computer virus??

16 answers · 3 weeks ago
• ### Applied for a tier 1 help desk position \$11/hr plus commission that requires Masters in CS or related. I have a BS in CS 3.98 GPA?

Do I stand a chance? I graduated in 2017 and have been working as a dishwasher since Jan 2018 The commission is \$10 bonus every time I sell an antivirus subscription
Do I stand a chance? I graduated in 2017 and have been working as a dishwasher since Jan 2018 The commission is \$10 bonus every time I sell an antivirus subscription
7 answers · 3 weeks ago