Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

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 Output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

=+1. Work in teams of four or five.

Answered: 1 week ago

Question

1. What are the peculiarities of viruses ?

Answered: 1 week ago

Question

Describe the menstrual cycle in a woman.

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago