Hint: If the percentage is always 0% unless 100% correct

  1. You are probably doing integer division. Make sure to do floating point division!


This topic: CenterForComputing > WebHome > Syllabi > CSC121SylF2025 > CSC121F2025Lab04 > CSC121F2025Lab04Hint03
Topic revision: r1 - 2025-07-21 - CathyBareiss
 
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