|
|
@ -89,7 +89,7 @@ double getValue(int choice) { |
|
|
|
|
|
|
|
result = ConGram(value, startingUnit, endingUnit); |
|
|
|
|
|
|
|
printf("\nThe convertet result is %dlf %d", result, Distance[endingUnit]); |
|
|
|
printf("\nThe convertet result is %dlf %d", result, Weight[endingUnit]); |
|
|
|
break; |
|
|
|
|
|
|
|
case 5://'kg', 'pounds' |
|
|
@ -101,7 +101,7 @@ double getValue(int choice) { |
|
|
|
|
|
|
|
result = ConGramToPounds(value, startingUnit, endingUnit); |
|
|
|
|
|
|
|
printf("\nThe convertet result is %dlf %d", result, Distance[endingUnit]); |
|
|
|
printf("\nThe convertet result is %dlf %d", result, Weight[endingUnit]); |
|
|
|
break; |
|
|
|
|
|
|
|
case 6://'celsius', 'fahrenheit' |
|
|
@ -113,10 +113,10 @@ double getValue(int choice) { |
|
|
|
|
|
|
|
result = ConTemp(value, startingUnit, endingUnit); |
|
|
|
|
|
|
|
printf("\nThe convertet result is %dlf %d", result, Distance[endingUnit]); |
|
|
|
printf("\nThe convertet result is %dlf %d", result, Temp[endingUnit]); |
|
|
|
break; |
|
|
|
|
|
|
|
case 6://'km/h','mp/h' |
|
|
|
case 7://'km/h','mp/h' |
|
|
|
printf("\nEnter what the Unit is starting with (0 km/h, 1 mp/h): "); |
|
|
|
scanf("%d", &startingUnit); |
|
|
|
|
|
|
@ -125,17 +125,13 @@ double getValue(int choice) { |
|
|
|
|
|
|
|
result = ConSpeed(value, startingUnit, endingUnit); |
|
|
|
|
|
|
|
printf("\nThe convertet result is %dlf %d", result, Distance[endingUnit]); |
|
|
|
printf("\nThe convertet result is %dlf %d", result, Speed[endingUnit]); |
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double ConLiter() { |
|
|
|
|
|
|
|
} |
|
|
|