[cs13001] Regarding Lab Seven

Mikhail Nesterenko mikhail at cs.kent.edu
Tue Feb 26 09:43:30 EST 2013


> 
> It says on the lab that we are to input the dollar and cent amount as type
> integer, yet we are converting and outputting it onto a string variable.
>  Such as entering dollar amount 52 and cent amount 35 to "$52.35"
> 
> How is this possible with inputting it as an integer.  I tried to do type
> conversion and see that that does not work.  What would I need to do to not
> get any errors?  Thanks!

Do not do type conversion, output dollar sign, then amount of dollars,
then dot, then amount of cents.

Thanks,
--
Mikhail


More information about the cs13001 mailing list