I have no idea what I'm doing wrong, any help is very much appreciated!
#include <iostream>
#include <string>
using namespace std;
int main()
int hours, mins, minutes;
char day1, day2, choice;
cout << "Enter the day of call (Mo/Tu/We/Th/Fr/Sa/Su): " << endl;
day1 = getchar();
day2 = getchar();
cout << "Enter time of call hour (1:30 PM Enter 13)";
cin >> hours;
cout << "Enter min of hour (Enter 30 for 1:30 PM)";
cin >> mins;
cout << "Enter call duration in minutes" << endl;
cin >> minutes;
if
{
(((day1 == 'S' || day1 == 's') &&
(day2 == 'a' || day2 == 'A')) ||
(((day1 == 'S' || day1 == 's') &&
(day2 == 'u' || day2 == 'U'))))
cout << "Call charges are: $ " << (.15* minutes);
}
else if
{
(((day1 == 'M' || day1 == 'm') &&
(day2 == 'o' || day2 == 'O')) ||
(((day1 == 'T' || day1 == 't') &&
(day2 == 'u' || day2 == 'U')) ||
(((day1 == 'W' || day1 == 'w') &&
(day2 == 'e' || day2 == 'E')) ||
(((day1 == 'T' || day1 == 't') &&
(day2 == 'h' || day2 == 'H')) ||
(((day1 == 'F' || day1 == 'f') &&
(day2 == 'r' || day2 == 'R'))))
}
else if
{ (hours >= 8 && hours < 18);
cout << "Call charges are: $ " << (.40 * minutes);
}
else if
{
cout << "Call charges are : $" << (.25 * minutes);
}
else
{
cout << "You enter wrong values";
}
while
{
(choice == 'y' || choice == 'Y')
cout << "\n To repeat calculations for different values either press 'Y' or 'y' " << endl;
cin >> choice;
}
system("Pause");
}