Compiler Errors scanf always needs a before the integer To add a one to an integer there needs to be a Control reaches end of non void function means missed a bracket pair Logical Errors Make a variable chart o Cents Remaining Quarters Dimes Nickels Pennies 75 0 0 0 0 50 1 0 0 0 40 1 1 0 0 Make the ifs into whiles to keep taking quarters until out of quarters then take dimes until out of dimes etc Definitions Loops o While statements o For statements Operators o The percent sign is modulus division a place holder o is add one o is equals o is subtract one o is not equal o is less than o is greater than o is less than or equal to o is greater than or equal to o is and This takes precedence over the or operator o is or Function Call are asking the computer to do something like scanf printf etc Parameter is when you pass something to a function like what is in the parenthesis of the function the argument o scanf d x Five variables o Int integer values o Float decimal Float and double can store the same amount of numbers past the decimal but the precision of these numbers differs o Double More precise decimal o Char holds character or a number but not related to math o Bool True or false Variable Chart include stdio h int main void int x y a b x 3 y 4 a x y b a x x a b y printf d d d d n x y a b return 0 X Y A B 3 3 3 3 7 7 7 4 4 4 4 5 5 7 7 7 7 7 1 1 1 1
View Full Document