Data types: int, char, float, double, string, bool, short, long int, unsigned int, int: integers, 32-bit integers char: characters or 8-bit integers short: 16-bit integers long int: 64-bit integer unsigned int: only non-negative. float: floating point, decimal point, 32-bits double: like float but 64 bits bool: Boolean, True/False string: many characters, text Arithmetic operators: + - * / % Comparison operators: < <= > >= == != Assignment: = Order of operations: inside (), * and / and %, + and - Boolean operators: || is for - if either side is True, whole thing is True && is and - both sides have to be True for whole thing to be True ! is for not - switches True->False, False->True C/C++ sytax: if and if/else... while and do/while... for loop arrays - declaring an array variable and using it. cout << "Hello" << endl; int x; cin >> x; {} are for compound statements. All statements end with a; defining a function: returnType functionName(param1type param1name, param2type param2name) { // function body, some code // can have return statements. } calling/invoking a function: functionName(param1value, param2value) Algorithms * Convert binary to decimal * COnvert decimal to binary Html rules * html file is a text file. * it has tags that are in between <> to give extra information.b * begin tags are like , end tags are like * normally have an end tag for every begin tag. * each begin tag can have attributes. * one attribute we often use is id. that gives a name to the tag so we can use it later in javascript. For example * another attribute is onlick, which says what javascript code to run when they click, like * Html tags * html: the whole html page * body: the main part of the html page, the part that's displayed * head: extra information about the page, goes before the body * title: the title of the page, goes inside of the head * script: javascript code goes inside of script. you can define functions for later use. anything not in a function just runs when the page is loaded. see the html examples... * b: bold * i: italics * u: underline * p: paragraph * h1: heading * h2: smaller heading. there's also h3, h4. * a: anchor, used to make a hyperlinke like A search engine * br: line break, doesn't have an end tag, you just do
* input: text box, doesn't have an end tage, you just do * button: a button to click, like