This is the last part of what I need to code, an example of the output I need to hand in.
Enter a number between 1 and 5 to see the average temperature for the entered number of days, enter a negative number to exit: 6
Invalid entry, please enter a number between 1 and 5, inclusive: 7
Invalid entry, please enter a number between 1 and 5, inclusive: 3
The average temperature up to day 3 is: 2.67
Enter a number between 1 and 5 to see the average temperature for the entered number of days, enter a negative number to exit: 0
Invalid entry, please enter a number between 1 and 5, inclusive: 0
Invalid entry, please enter a number between 1 and 5, inclusive: 1
The average temperature up to day 1 is: 2.00
Enter a number between 1 and 5 to see the average temperature for the entered number of days, enter a negative number to exit: 2
The average temperature up to day 2 is: 3.00
Enter a number between 1 and 5 to see the average temperature for the entered number of days, enter a negative number to exit: 5
The average temperature up to day 5 is: 1.20
Enter a number between 1 and 5 to see the average temperature for the entered number of days, enter a negative number to exit: -8
Goodbye!
I am wondering what loops I am using for this last part, if you want the whole code I did already. pm me. i am using arrays btw