Lab DataTypes Worksheet PDF
Lab DataTypes Worksheet PDF
Lab DataTypes Worksheet PDF
Name _________________________________
1. Dennis
Ritchie,
the
creator
of
the
C
programming
language,
was
born
on
September
9th,
1941.
If
he
were
still
alive,
how
old
would
he
be
today?
Find
out
by
running
the
birthday01
program
on
the
appropriate
inputs.
2. Bjarne
Stroustrup,
the
creator
of
the
C++
programming
language,
the
object-oriented
extension
of
C,
was
born
on
December
30th,
1950.
How
old
is
he
today?
3. Software
testing
often
involves
testing
code
with
known
bad
input
in
an
attempt
to
break
it.
Try
breaking
the
birthday02
program
by
giving
it
bad
input
and
observe
the
consequences.
Give
at
least
two
examples
of
potentially
bad
input
and
the
results.
4. Complete
all
the
size
and
range
entries
in
the
table
below
7. Mixed
types
a. Run
the
area program
from
with
base
=
3
and
height
=
4.
What
value
do
you
get?
Is
this
result
correct?
Execute
the
program
again
with
inputs
of
your
choice.
Does
the
program
give
correct
results?
Why
not?
b. Fix
the
program
by
editing
area.c
source
code
so
that
the
program
produces
correct
results.
Hand
your
program
in
using
webhandin
and
grade
it
using
webgrader.
Demonstrate
your
output
to
a
lab
instructor,
have
them
sign
this
worksheet
and
turn
it
in.
Lab
Instructor
Signature____________________________________