Chardy
2008-01-17 02:58:50 UTC
a) Any call activated after 6:00 pm yet before 8:00 am is discounted by 50%.
b) Any call activated after 8:00 am yet before 6:00 pm is charged with a full price.
c) All calls are subject to 4% Tax.
d) The regular rate for a call is P0.40 per minute.
e) Any call longer than 60 minutes receives a 15% discount; that is, after any other discount is given and before tax is taken upon.
Write a C program that reads the starting time and ending time of a conversation based on a twenty four-hour clock operation and compute the length of the call.
The Gross cost (before any discount on tax) should be printed, followed by the net cost (after discounts are given and tax is taken upon).