![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/16003414_1566476157650_DEF.jpg)
Nimra Mubeen
Followers: 0 Following: 0
Estadística
0 Preguntas
1 Respuesta
CLASIFICACIÓN
194.623
of 292.821
REPUTACIÓN
0
CONTRIBUCIONES
0 Preguntas
1 Respuesta
ACEPTACIÓN DE RESPUESTAS
0.00%
VOTOS RECIBIDOS
0
CLASIFICACIÓN
of 19.946
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
of 148.011
CONTRIBUCIONES
0 Problemas
0 Soluciones
PUNTUACIÓN
0
NÚMERO DE INSIGNIAS
0
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
Write a function called fare that computes the bus fare one must pay in a given city based on the distance travelled. Here is how the fare is calculated: the first mile is $2. Each additional mile up to a total trip distance of 10 miles is 25 cents.
function fare =taxi_fare(d,t) fare=5+(ceil(d-1)*2)+(ceil(t)*.25)
casi 5 años hace | 0