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