Topical Information
Since the last exam, we've talked about:
- more arithmetic:
- integer division
- modulo (%):
- unit conversion
- digit [group] extraction
- random number generation
- type casting (static_cast<desired type>(expression))
- more standard libraries:
- ctime:
- cmath:
- floor(x)
- ceil(x)
- fabs(x)
- sqrt(x)
- pow(base, exponent)
- exp(x)
- log(x)
- log10(x)
- sin(r)
- cos(r)
- tan(r)
- asin(t)
- acos(t)
- atan(t)
- atan2(y, x)
- cstdlib:
- srand(seed)
- rand()
- RAND_MAX
- abs(n)
- labs(n)
- limits:
- numeric_limits<streamsize>::max()
- more iostream:
- using the dot (.) operator with cin to call its class functions
- ignore:
- no arguments
- two arguments: count and terminating character
- ...and when the count is numeric_limits<streamsize>::max()...
- object oriented basics:
- a class describes a group of things'
general characteristics
- a class is a data type
- variables of a class type are called
instances or objects
- cin is an object of a class
- cout is an object of a class
- in particular a class describes behaviors
or actions a groups' members may be involved with as functions
- such member functions (aka methods) are called via the dot (.) operator
- dot operator syntax to call a member function with respect to a class object is: object.function(arguments)
And any of that could be on this exam in the credit section.
Bonus Information
Possible bonus questions may come from the above topics or from the
following topics:
- cctype: is___ and to___er
functions
- if and else
for simple decision making
- factoring code from a branch structure
- ==, !=, <, etc. for comparing values
- &&, ¦¦, ! for
manipulating logical values
- DeMorgan's Laws for negating logical combinations
- while for simple repetition
- the accumulation loop pattern (including counting)
- domain validation loop pattern
- peek for detecting input before it is
processed
- fail/clear
for detecting numeric input failure and correcting it
Temporal Information
The second test will be
Tuesday
of
week 5
—
September 18th
during the last 45 minutes of lecture.
(PLEASE STUDY!!!!)