aboutsummaryrefslogtreecommitdiff
path: root/CST 126/Homework 1/MenuHelper.hpp
blob: c68b85c64807e5c50e2154e48771ecde2729b42a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef MENU_HELPER_HPP
#define MENU_HELPER_HPP
#include "TempLogHelper.hpp"

void UserMenu();
void MenuOptions();
void CurrencyPrinter();

void UserMenu()
{
	int InputChoice = 0;
	do
	{
		MenuOptions();
		InputChoice = InputSelectionInt("What would you like to do today? :");
		switch (InputChoice)
		{
		case 1: CurrencyPrinter();
			break;
		case 2: GuessingGame();
			break;
		case 3: WeeklyTemp("What was the highest temperature reached?", "What was the lowest temperature?");
			break;
		case 4:
			Prompts("Have a wonderful day!!!");
			break;
		default:
			Prompts("Invalid input, try again!");
		}

	} while (InputChoice != 4);
}

void MenuOptions()
{
	Prompts("!Welcome to the Main Menu!\n\n1.Currency Conversion\n2.Guessing Game\n3.Weekly Temperature Log\n4.Exit\n");
}

void CurrencyPrinter()
{
	double MyMoney = 0;
	std::cout << "Your coverted currency->" << CurrencyConversion(MyMoney) << std::endl;
}


#endif