|
|
@ -188,6 +188,18 @@ double getValue(int choice) { |
|
|
|
|
|
|
|
printf("\nThe convertet result is %dlf %d³", result, Distance[endingUnit]); |
|
|
|
break; |
|
|
|
|
|
|
|
case 13: |
|
|
|
printf("\nEnter what the Unit is starting with (0 (24h), 1 (12h)): "); |
|
|
|
scanf("%d", &startingUnit); |
|
|
|
|
|
|
|
printf("\nEnter what the value should it be changed to (0 (24h), 1 (12h)): "); |
|
|
|
scanf("%d", &endingUnit); |
|
|
|
|
|
|
|
result = ConArea(value, startingUnit, endingUnit); |
|
|
|
|
|
|
|
printf("\nThe convertet result is %dlf %d", result, Distance[endingUnit]); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -233,11 +245,6 @@ double ConSpeed(double speed, int startingUnit, int endingUnit) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double ConTime() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
double ConClock() { |
|
|
|
|
|
|
|
} |
|
|
@ -254,7 +261,7 @@ void unitConverterMode() { |
|
|
|
|
|
|
|
printf("Weight conversion:\n"); |
|
|
|
printf("4. Convert Gram (mg, g, kg)\n"); |
|
|
|
printf("5. Gram to Pounds \n") |
|
|
|
printf("5. Gram to Pounds \n"); |
|
|
|
|
|
|
|
printf("Temprature conversion:\n"); |
|
|
|
printf("6. Celsius to Fahrenheit\n"); |
|
|
@ -274,7 +281,7 @@ void unitConverterMode() { |
|
|
|
printf("12. Convert Volume (cm³, m³, km³)\n"); |
|
|
|
|
|
|
|
printf("Time conversion \n"); |
|
|
|
printf("13. Convert time (s, m, h) \n"); |
|
|
|
printf("13. Convert time (s, m, h, d, w, m, y) \n"); |
|
|
|
printf("14. Convert Clock (12 Hour, 24 Hour) \n"); |
|
|
|
|
|
|
|
printf("Time conversion \n"); |
|
|
|