Computer Science Canada Help! Arrays and loops |
Author: | DanielChua [ Tue Apr 05, 2016 7:52 pm ] | ||
Post subject: | Help! Arrays and loops | ||
I'm relatively new to programming in Turing and I'm starting to learn it through my highschool ICS course. We are assigned to gather an unknown number of test scores (in percent) and to calculate the average of passing scores (75 and above). At the same time, I'm hoping to experiment with arrays and different types of loops. Below is what I have so far:
The program works under most circumstances except when a non-passing score is collected or there are no passing scores. Any ideas or help wuld be greatly appreciated! Note: I'm using Turing version 4.1.1 Mod Edit: Syntax + whitepsace |
Author: | Dreadnought [ Tue Apr 05, 2016 10:00 pm ] |
Post subject: | Re: Help! Arrays and loops |
Try checking what happens to your array when you find a value less than 75. What does the array look like before and after? |