Answered step by step
Verified Expert Solution
Question
1 Approved Answer
plz help i have no time dear prof and it is only required to develop in simple c program and i don't have much time
plz help i have no time dear prof and it is only required to develop in simple c program and i don't have much time plz help plz help prof
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. Enter driver name : Jefry Enter id no: 890912065543 Enter vehicle no :CCS2344 Summon amount (in RM) : 50 Date of summon issued : 28 October 2020 The summon need to be paid within 5 days from date of summon issued. No of days late 0 Based on the given situation, develop a complete C program. Enter driver name : Jefry Enter id no: 890912065543 Enter vehicle no : CCS2344 Summon amount (in RM) :50 Date of summon issued : 28 October 2020 The summon need to be paid within 5 days from date of summon issued. No of days late 0 Payment Information Name : Jefry ID No : 890912065543 Vehicle No : CCS2344 Total Summon : RM45.00 Discount : RM5.00 Total amount of penalty : RM0.00 Figure 1. Sample of the Output Enter driver name : Jefry Enter id no : 890912065543 Enter vehicle no : CCS2344 Summon amount (in RM) :50 Date of summon issued :1 October 2020 The summon need to be paid within 5 days from date of summon issued. No of days late 25 Payment Information Name : Jefry ID No : 890912065543 Vehicle No : CCS2344 Total Summon : RM 65.00 Discount : RM0.00 Total amount of penalty : RM15.00 Figure 2. Sample of the OutputStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started