 |
eCheck Hints
|
Chapter 5
- Check05B
Note that your app may not produce the same amounts shown in the sample run
because these are live stock prices obtained from the stock exchange when
the app runs. The eCheck oracle is aware of this.
The sample run in this case serves only to convey the layout
of the sought output and the presentation format.
Chapter 9
- Check09C
Note that the specs require that the percentages on the last two lines be rounded
to zero decimals but with a decimal point. One way to handle this is to use
%.0f
for rounding and then add .%%
after the format descriptor.
Note that two %
signs were used in order to escape the normal
formatting interpretation of %
.
Chapter 12
- Check12D
Note that while the sales amount per item is formatted 12.2
without a thousands separator, the overall sum of these amounts
over all listed items is formatted 12.2
but with a
thousands separator.