Question: Need help getting this C code converted into C++ #include #include #include const int size = 5; //size of array //loadArrays function for generate random
Need help getting this C code converted into C++
#include
//loadArrays function for generate random time and speed int loadArrays(int Time[],int speed[]) { int i; srand(time(0)); for(i=0;i //a function to calculate distance int calculateDist(int Time[],int speed[],int distance[]) { for(int i=0;i //a function to print random speeds,random times and calculated distance. int print(int Time[],int speed[],int distance[]) { printf("random times are : "); for(int i=0;i printf("distances are : "); for(int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
