From 43b098aec46c7228023c4a45a3e4b2ada1e927c1 Mon Sep 17 00:00:00 2001 From: Enrico Schellenberger Date: Mon, 5 Feb 2024 12:28:43 +0100 Subject: [PATCH] added Con Functions and query to ConvertMode.c --- src/main/c/ConvertMode.c | 74 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 72 insertions(+), 2 deletions(-) diff --git a/src/main/c/ConvertMode.c b/src/main/c/ConvertMode.c index ef9e7be..e9ec6ef 100644 --- a/src/main/c/ConvertMode.c +++ b/src/main/c/ConvertMode.c @@ -7,6 +7,77 @@ #include "taschenrechner.h" // Unit converter mode +double getValue() { + printf("Enter the first value to convert: "); + scanf("%lf", &value); + + printf("Enter the second value to convert: "); + scanf("%lf", &value); + + while (choice < 0 && choice >= 14) { + switch (choice) + { + case 1: + + break; + + } + } +} + +double ConMeter() { + +} + +double ConMeterToFoot() { + +} + +double ConKilometerToMiles() { + +} + +double ConGram() { + +} + +double ConTemp() { + +} + +double ConSpeed() { + +} + +double ConLiter() { + +} + +double ConLiterToGallon() { + +} + +double ConData() { + +} + +double ConArea() { + +} + +double ConVolume() { + +} + +double ConTime() { + +} + +double ConClock() { + +} + + void unitConverterMode() { int choice; double value, result; @@ -45,7 +116,6 @@ void unitConverterMode() { printf("\nEnter your choice (Exit with 0): "); scanf("%d", &choice); - printf("Enter the value to convert: "); - scanf("%lf", &value); + } \ No newline at end of file