Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Marking criteria:
Time structure -------------–------------------------------------------------------- 1
Obtain & Store values in Time variables ------------------------------------ 1
Convert to seconds -------------------------------------------------------------- 3
Add and convert result in time format ------------------------------------- 4
Display Time ----------------------------------------------------------------------- 1
Marking criteria:
hms_to_secs() ---------------------------------------------------------------------- 3.5
Obtain & convert repeatedly -------------------------------------------------- 1.5
Marking criteria:
time_to_secs() ----------------------------------------------------------------------- 4
secs_to_time() ---------------------------------------------------------------------- 6
4) Exercise [15]
i) putElement(matrix m, int row, int col, int element) which checks if the
specified location (i.e. row and col) is within bounds of 2D array in m and
stores element at specified location, otherwise displays an error message.
ii) getElement(matrix m, int row, int col) which checks if the specified location
is within bounds of 2D array in m and returns element at specified location,
otherwise displays an error message.
Marking criteria:
matrix structure --------------------------------------------------------------------- 3
putElement() ------------------------------------------------------------------------- 3
getElement() ------------------------------------------------------------------------- 3
matrix variable and dynamic allocation ------------------------------------- 3
function calling --------------------------------------------------------------------- 1
Pointer notation throughout program --------------------------------------- 2