QUESTION
Design a C program to calculate the total payment for the parking summons
issued by Majlis Perbandaran Kuantan (MPK). The user needs to pay the
summon within 5 days. There will be a 10% discount if user pay the summon
within 5 days. After 5 days, a penalty will be charge to the user. For each week
(7 days), if user fail to pay the summon, 10% will be charge. For example, if a
user were fined RM50 for parking and pay after 5 days, the total payment
needs to be paid will be RM55. Meanwhile, if the user pay summon in week 2
after the due date, another 10% will be charged and that makes it become
20% from the amount of summon. The amount of the penalty will be
increasing every week until the penalty reaches 50%. Figure 1 and Figure 2
give sample the output. The description of your program is as follows:
• Create main function to enter the detail of the driver such as name, id
no, vehicle no, date of summon issued and no of days late.
• A function to enter the summon amount.
• A function to calculate the summon amount that need to be paid.
• A function to print the payment information.
Based on the given situation, develop a complete C program

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.