Posts by Eduardo Fabricio • 1 point
3 posts
-
0
votes1
answer65
viewsA: Why doesn’t my summation work?
solved: for(i= 0; i < tam ; i++){ if(vet[i].car == vet[i+1].car){ aux += vet[i].peso; }else if (vet[i].car == vet[i-1].car){ aux += vet[i].peso; } }…
-
-2
votes1
answer65
viewsQ: Why doesn’t my summation work?
I have this activity: Write a function that receives, as input, a vector of n > 0 elements of type Cell and return, as output, the sum, of the weights of all vector elements belonging to bands.…
-
-4
votes1
answer149
viewsQ: Calculate the Timetable in C. Financial year
I started programming recently and I’m having trouble solving this exercise: Write a program that reads the departure time (hours and minutes) of a flight, the travel time and the difference in…