COMPTNG 10A Study Guide - Midterm Guide: Javascript, Scientific Notation, Modulo Operation

65 views3 pages
14 Sep 2017
School
Professor

Document Summary

Hardware = electric circuits in a plastic case. Software = instructions telling software what to do. ; = denotes the end of a line (most of the time) Variables = place to store a specific type (like int) Int variable vs. a #: # = fixed, variable = container that stores an integer # (or a value) If (cid:1006) ints are (cid:862)di(cid:448)ided(cid:863) (cid:271)y the di(cid:448)ision operator, only the integral part is taken. % = called the modulo operator; used for remainders. A syntax feature of a programming language that isn(cid:859)t ne(cid:272)essary (cid:271)ut is s(cid:449)eet to ha(cid:448)e (i. e. for clear andconcise purposes) #include includes code from other files library collection of code that is organized, documented, and made available to others. Use #include to include libraries into the program cmath library contains basic math functions (i. e. square roots + other calculator functions) 2 types: float and double float aka single-precision floating-point format: double aka double- .