Question: a) Given two function prototypes: float calcTicket Price (int, int, bool); void final Price (float&); Write function definitions for both of the function prototypes:
a) Given two function prototypes: float calcTicket Price (int, int, bool); void final Price (float&); Write function definitions for both of the function prototypes: calcTicket Price (...) should receive number of ticket for child and adult, and membership status. RM10 for an adult and RM5 for a child. Members are entitled to receive 25% discount. The function returns calculated ticket price. final Price (...) should calculate the final price by including 10% service charge on the calculated ticket price. (6 marks)
Step by Step Solution
3.33 Rating (150 Votes )
There are 3 Steps involved in it
The below are the function definitions for the given prototypes include Function to calculate ticket ... View full answer
Get step-by-step solutions from verified subject matter experts
