#include <iostream>
#define some_missing_condition false
int main()
{
if (some_missing_condition) {
// Choosing program to run
int programChoice;
std::cout << "Which program would you like to run?" << std::endl;
std::cout << "Enter 1 for celcius to farenheit converter" << std::endl;
std::cout << "Enter 2 for speed, distance and time calculator\n> ";
std::cin >> programChoice;
if (programChoice == 1) {
// Temperature converter program
double ctemp, ftemp;
std::cout << "Please enter a celcius temperature\n> ";
std::cin >> ctemp;
ftemp = (ctemp * 1.8) + 32;
std::cout << ctemp << " = " << ftemp << " degrees farenheit" << std::endl;
// End 1
return 0;
} else if (programChoice == 2) {
std::string sdtchoice;
std::cout << "WIP!" << std::endl;
std::cout << "Do you want to find speed, distance or time?" << std::endl;
std::cout << "Type S, D or T\n> ";
getline(std::cin, sdtchoice); // Why does it skip this bit and go to end 2 below?
if (sdtchoice == "S") {
std::cout << "Test\n";
double dvalue1, tvalue1;
std::cout << "Please enter a value for Distance\n> ";
std::cin >> dvalue1;
std::cout << "Please enter a value for Time\n> ";
std::cin >> tvalue1;
int totalvalue1 = 0;
std::cout << dvalue1 / tvalue1 << std::endl;
std::cout << totalvalue1 << std::endl;
// End 2 // Program skips to here
return 0;
}
} else
std::cout << "Invallid entry" << std::endl;
// End 3
return 0;
}
else {
std::cout << "Incorrect" << std::endl << "Program closing" << std::endl;
// End 4
return 0;
}
}