Do in C language please Simpson owns a passenger truck and rents it for 1,000 pesos per day plus 50 pesos per kilometer
Posted: Mon Jun 06, 2022 5:14 pm
Do in C language please
Simpson owns a passenger truck and rents it for 1,000 pesos per day
plus 50 pesos per kilometer traveled; requires software to
calculate the rent for the month of September 2021, entering the
date and the number of kilometers traveled,
Consider the following number of days: September 30 days.
The date must be expressed in integer values.
Request the number of kilometers traveled
Request a start date (month and day)
Request an end date (month and day)
The program must verify that the dates are correct and that it is
in the month of September. (10pts)
That the end date is not less than the start date. (20pts)
Depending on the start and end date.
Calculate the number of days and the final cost of the rental.
(20pts)
EXAMPLE OF EXECUTION OF THE PROGRAM (the values provided by
the user in red -Remember that the user can write other
values-)
Enter kilometers traveled: 10
Enter the start date
Month: 9
Day 3
Enter the End date
Month: 9
Day: 10
correct dates
Rental days=7
Total to pay=7500
Simpson owns a passenger truck and rents it for 1,000 pesos per day
plus 50 pesos per kilometer traveled; requires software to
calculate the rent for the month of September 2021, entering the
date and the number of kilometers traveled,
Consider the following number of days: September 30 days.
The date must be expressed in integer values.
Request the number of kilometers traveled
Request a start date (month and day)
Request an end date (month and day)
The program must verify that the dates are correct and that it is
in the month of September. (10pts)
That the end date is not less than the start date. (20pts)
Depending on the start and end date.
Calculate the number of days and the final cost of the rental.
(20pts)
EXAMPLE OF EXECUTION OF THE PROGRAM (the values provided by
the user in red -Remember that the user can write other
values-)
Enter kilometers traveled: 10
Enter the start date
Month: 9
Day 3
Enter the End date
Month: 9
Day: 10
correct dates
Rental days=7
Total to pay=7500