Do in C language please Simpson owns a passenger truck and rents it for 1,000 pesos per day plus 50 pesos per kilometer

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Do in C language please Simpson owns a passenger truck and rents it for 1,000 pesos per day plus 50 pesos per kilometer

Post by answerhappygod »

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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply