[cs13001] Question about lab 7

Mikhail Nesterenko mikhail at cs.kent.edu
Mon Feb 25 21:52:15 EST 2013


> I started lab 7 part 2 and I am confused on how to use number spell to
> spell out the dollar amount. The number spell function requires two
> variables but the variable for the dollar amount in the main function is a
> single variable type integer. How is it possible to break it into two
> separate parts?

good question. You need to extract the number of tens and singles out 
of the integer. See how this is done in the odometer program we
studied for the branching lab:

   http://vega.cs.kent.edu/~mikhail/classes/csi/Examples/While/odometer.cpp

Thanks,
-- 
Mikhail


More information about the cs13001 mailing list