Calculating Total Costs

Once we have calculated the transportation costs and ticket costs, what remains is to calculate the end result and understand if the group of football fans will attend Euro Cup 2016 or not, provided the available parameters.

For the output, in order to spare one else condition in the construction, we will assume that the group can, by default, attend Euro Cup 2016.

Printing the Result

Finally, we need to display the calculated result in the console.

Testing in the Judge System

Test your solution here:

results matching ""

    No results matching ""