A lecturer who is invited as a speaker on trainer by any government organization will be paid according to the rate as stated above.
Write a function that accepts the qualification code and number of lecturing hours as input parameters. Calculate the total payment by multiplying the rate per hour and number of lecturing hours. This function returns the total payment by using return statement.
PHD, code P 400 dollar per hr
master, code M 250 dollar per hr
degree, code B 100 dollar per hr