someone help me with this exercise I give 50 points A new Rent-a-Car service (less than a year old) is working on a system for the classification of its Automobiles (all purchased 0km) . In this, it is known that automobiles must have a technical inspection every 5000 (five thousand) kilometers and that each inspection has a cost of $ 20,000 (twenty thousand). The problem is that Don José, the person in charge of keeping track of the kilometers of each vehicle, keeps his notes in a notebook and, unfortunately, that agenda has been lost. For this reason, you, as a good UFT Engineering student, have decided to help knowing that the mileage is marked on the odometer of each vehicle. Request Based on the previous statement, it is requested that you generate a program with the following: 1. A function called calculateAutoExpenditure that receives the mileage of a car and returns the expense that has been carried out on maintenance for that vehicle. 2. A function called calculateTotalExpenditure that receives an arrangement with the kilometers of all the cars and returns the total expense that has been made in maintenance. 3. A function called returnMinor that receives a car fix and returns the least mileage. 4. A function called returnMore that receives a car fix and returns the highest mileage . 5. A function called calculateAverage that receives an array of cars and returns the average mileage of all cars. 6. A Main that asks for the number of cars in the Rent-a-Car, then records the mileage of each of them in an arrangement and, using the functions generated in points 2, 3, 4 and 5, print spending the Total Expense on maintenance, the lowest mileage, the highest mileage and the average mileage.
Respuestas
Respuesta dada por:
0
Respuesta:
no se ingles :(
Explicación:
mm
fabitosixx:
https://brainly.lat/tarea/20628564 aqui esta en español
Respuesta dada por:
0
Respuesta:
Trata de carros?
Preguntas similares
hace 8 años
hace 8 años
hace 9 años
hace 9 años