01:198:110 Lecture Notes - Lecture 15: Negative Number

70 views3 pages
Verified Note

Document Summary

Function is a built in formula ( - indicates inputed number) : absolute value (makes a negative number positive) : remainder of division (7 mod 3 = 1 (3+3=6; 7/6 rem 1) : general rounding concepts, up at . 5, down below. : when decimal, round up no matter how small the decimal. : when decimal, round down no matter how large the decimal. Examples of how to write scratch on a test: Q: how many numbers entered (input) by the user are multiples of 5 (multiple of 5 means number divided by five has no remainders) Q: how many numbers from 1-20 inclusive are multiples of 5. Would say 5, 10, 15, 20, 4 numbers are multiples of 5" (pay attention to all instructions given when looking for resulting output, not just the bottom resulting output) Mod 2 will only result in even numbers.

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