COP 2271 Lecture Notes - Lecture 17: Modulus Guitars, Data Type, Exponentiation

149 views52 pages

Document Summary

8 (b)its = 1 (b)yte: integer, short (2 bytes, integer (4 bytes, long (8 bytes, floating point, single (4 bytes, double (8 bytes, binary. *odd if last digit is 1, even if 0. *multiple by 2, move one down (like *10 in decimal system) Ex: (10000000)2 = (128)10, (69)10 = (01000101)2, precedence rules pe-n-md-di-mod-as (pen-md-mas) Counting (repeats a fixed number of times: for-next, step: stepsize (- means loop is counting down, exit for exits loop. Conditional (runs until/while a condition is t/f, interchangeable: do while-loop: loops as long as the condition is true, do until-loop: loops as long as the condition is not true, exit do exits loop. Condition at bottom if you want to run through at least once: modular programming (sub routines, private sub can be used to change multiple variables, private sub [subroutine name](byval argu(cid:373)e(cid:374)t as (cid:895)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents