所以我制作了一个程序,根据我将在下面提出的问题发布的一些因素来计算机票的成本
Create a program that given a number of tickets (maximum of 10),
the type of ticket (return, one way), the passenger type (under 10, under 16,
student, over 60, other), the selected route, and the starting and finishing
stops (in the form of a number where n denotes stopn ),
calculates the total cost for the journey.
The cost of each ticket should be calculated as follows:
• The cost per mile is 50p;
• Under 10 travel free …Run Code Online (Sandbox Code Playgroud)