My code works for what the assignment is asking of us. It is not the solution it wants and I am at a loss, because I can't progress due to it's finicky behaviour of accepting only certain solutions, or hey maybe I got it all wrong.
I stumbled upon a Learning feature in the IntelliJ IDE and it's got courses to follow and projects to choose from, so I chose the Cinema project to start.
We are asked to read two positive integer numbers from the input: the number of rows and the number of seats in each row. The ticket price is determined by the following rules:
If the total number of seats in the screen room is not more than 60, then the price of each ticket is 10 dollars.
In a larger room, the tickets are 10 dollars for the front half of the rows and 8 dollars for the back half. Please note that the number of rows can be odd, for example, 9 rows. In this case, the first half is the first 4 rows, and the second half is the other 5 rows.
I have posted a picture of the sample output it would like us to achieve, and here is my code: