NEW
Font size
WorksheetsIndentation and pseudocode in RobotC
Total questions: 8
Worksheet time: 16mins
What is the point of using indentation when coding?
Because Mr. Lermon says so.
To make sure your code is organized and easy to read.
Because it looks pretty!
There is no point to indentation in coding.
What is the point of pseudocode?
There is no point in pseudocode.
To make Mr. Lermon Happy
To be able to read in plain English what the code is meant to do
so that the robot can understand what the code is trying to tell it to do.
what do you use to be able to make pseudocode that is on multiple lines
/* (pseudocode goes here)*/
// (pseudocode goes here)
//* (pseudocode goes here)*//
You don't have to do any of that fancy stuff to write pseudocode!
what do you use to be able to make pseudocode that is only on one line that has to go after the main code on the line?
/* (pseudocode goes here)*/
// (pseudocode goes here)
//* (pseudocode goes here)*//
You don't have to do any of that fancy stuff to write pseudocode!
what do you use to be able to make pseudocode that is only on one line that can go before or after the main code on the line?
/* (pseudocode goes here)*/
// (pseudocode goes here)
//* (pseudocode goes here)*//
You don't have to do any of that fancy stuff to write pseudocode!
What is the number one rule when doing indentation?
to make sure that every curly brace has an unimpeded vertical line to its matching curly brace.
to make your code look pretty.
to never let any two lines of code match up with another line
Indentation has no rules.
Which one of these codes has the indentation done correctly?
Which one of these codes has the best pseudocode?
