What I need to do is use either a while or for loop to demonstrate a bell curve, and then find the maximum amount of profit and said profit's corresponding ticket price and passenger amount.
To do this we were given this equation.
NP is the Number of Passengers
TP is the Proposed Ticket Price
MP is the Minimum Number of Passengers
The issue I'm having is every time I punch in the values I get a fixed climb, and it results in the maximum amount of people being the best choice for profit. I get the feeling I've made a terrible mistake somewhere, but I just can't seem to find it. Or even worse, this being a math issue and not a programming one...
I apologize for the sloppy output, but I just wanted to make sure I could get this working before I go any further.