In a given transport company (train & bus), people are given discount fares if they meet any of the following requirements:
Write a program that given a person’s age and profession whether they are elegible for a discount fare.
Each line of input
contains a string p and a number a
indicating the profession and age of a person respectively.
For each line of input,
there should be a line of output indicating the type of fare:
full price or
student 11 programmer 33 retired 66 engineer 44
discount full price discount full price
try also: timetable
Copyright © 2020-2021 Rudy Matela
All rights reserved