Sample Reflection #1: Worthy of Full Marks
Sample Reflection #1: Worthy of Full Marks
Sample Reflection #1: Worthy of Full Marks
With this in mind, using the modulus operator to obtain the remainder not
only keeps our cents remaining accurate, but it also streamlines the
calculation to one line of code rather than 2 (have to divide, store the
result, then subtract the result from the original value). The modulus
operator however is only applicable to integral data types.
SAMPLE REFLECTION #2: MINIMUM REQUIRMENTS
In this workshop I learned how to convert back and forth between numeric
variables, float to int, and int to float. I also learned how to use scanf to
read user input, and that the scanf function requires the type of the value
to be read (format specifier), and the address of the destination variable in
order to be able to store the user input.