Difference: CSC121F2023Lab04Hint3 (1 vs. 2)

Revision 22024-01-26 - CathyBareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC121F2023Lab04"

Proper spacing of numbers

  • A simple way to think about it is to display an extra space if a number is less than 10. This will not work if dealing with negative numbers or numbers greater than 99. That adds complexity to this method.
Deleted:
<
<
  • Resource printf operation in Java. This is a more comprehensive way and can be used to do lot's of different formatting.
 \ No newline at end of file
Added:
>
>
  • Research printf operation in Java. This is a more comprehensive way and can be used to do lot's of different formatting.
 \ No newline at end of file

Revision 12023-06-19 - cathybareiss

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CSC121F2023Lab04"

Proper spacing of numbers

  • A simple way to think about it is to display an extra space if a number is less than 10. This will not work if dealing with negative numbers or numbers greater than 99. That adds complexity to this method.
  • Resource printf operation in Java. This is a more comprehensive way and can be used to do lot's of different formatting.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback