#include #include #include #include using namespace std; int input(char [], float [], float [], char * []); void calculation(char [], float [], float [], int, int []); void display(int [], char [], float [], float [], int); int main(int argc, char *argv[]) { char name[50]; float s1[50]; float s2[50]; int n; float stages; char choice; if(argc != 4) { cout<<"Put help msg here."<> n[0]; inputfile >> s1[0]; inputfile >> s2[0]; int x=0; while(!inputfile.eof()) { cout<> n[x]; inputfile >> s1[x]; inputfile >> s2[x]; } inputfile.close(); return x; } void calculation(char n[], float s1[], float s2[], int count, int arr[]) { float smallest1; float smallest2; int location1, location2; int total=0; float highest; char name[count]; float stage1[count], stage2[count]; for(int x=0; xhighest) highest=stage1[h]; if(stage2[h]>highest) highest=stage2[h]; } do{ smallest1=stage1[0]; smallest2=stage2[0]; for(int x=0; xsmallest2) {for(int y=count-1; y>-1; y--) {if(arr[y]==-1) {arr[y]=location2; cout<<"..."<end1[c]) begin2[c]=s2[arr[c-1]]+begin2[c-1]; else if((begin2[c-1]+s2[arr[c-1]])