Average of four test scores 🌶️🌶️
test1, test2, test3 and test4 are four whole-number test scores. The locked line at the bottom prints a variable named average (a double you have to create) holding their average, including any decimal part. Write the code in the box that declares average and gives it the right value. Watch out: dividing an int by an int throws away the decimal part before the answer is ever stored in a double. Your code will be tested with several different sets of scores.
What needs to become a double before the division happens? Does a cast apply to more than just the value right next to it?