Java
UNIT 1 CHALLENGE #5 – CCC PREP – AVERAGE
ABOUT CCC
The Canadian Computing Competition (CCC) is a worldwide coding
competition that is hosted by the University of Waterloo. It is
held every February. Students wishing to attend the University of Waterloo,
one of the most renowned computer science institutions in the world, should
participate in this event. Participating in this event would also
serve you well when applying to any other educational institution.
The goal of this problem is not to challenge you as much as it is
to get you prepared for the type of problems that you will see on the CCC. All CCC problems use a minimalist input and output approach (minimalist I/O).
CHALLENGE
You will write a program that will simply calculate your average mark for
your four courses last semester. The average should have decimals.
You should not have a sentence asking the user to enter their
marks. The user should be aware to just start typing the marks.
Your output should be strictly the
value, no sentence explaining the result.
SAMPLE I/O #1 (inputted values are in green)
90
83
93
88
88.5
SAMPLE
I/O #2 (inputted values are in green)
65
71
68
83
71.75
|