Hi I am new to CPP and am writing a program that determines how attractive a user is based on what foods they eat most and the program is cutting out before you can see the score. Please help
#include "stdafx.h"
#include <iostream>
#include <string>
usingnamespace std;
char choice_MaleFemale;
char choice_FoodOne;
char choice_FoodTwo;
char choice_FoodThree;
char PlayAgain;
char AnyKey;
int AttractiveScore;
int FinalAttractiveScore;
int StupidScore;
int _tmain(int argc, _TCHAR* argv[])
{
cout << "Are you male or female? (M/F)" << endl;
cin >> choice_MaleFemale;
if (choice_MaleFemale == 'm'|| choice_MaleFemale == 'M')
{
cout << "I need to know what food you eat the most. \n If you eat pesto pasta: type 'a'. \n If you eat sushi: type 'b'. \n If you eat barbeque: type 'c'. \n If you eat take out Chinese food: type 'd'. \n If you eat raman noodles: type 'e'. \n If you eat fancy expensive food(i.e. goose liver pate): type 'f'. \n If you eat crab: type 'g'." << endl;
cin >> choice_FoodOne;
if (choice_FoodOne == 'a'|| choice_FoodOne == 'A')
{
AttractiveScore += 4;
}
elseif (choice_FoodOne == 'b'|| choice_FoodOne == 'B')
{
AttractiveScore += 6;
}
elseif (choice_FoodOne == 'c'|| choice_FoodOne == 'C')
{
AttractiveScore += 5;
}
elseif (choice_FoodOne == 'd'|| choice_FoodOne == 'D')
{
AttractiveScore += 5;
}
elseif (choice_FoodOne == 'e'|| choice_FoodOne == 'E')
{
AttractiveScore += 6;
}
elseif (choice_FoodOne == 'f'|| choice_FoodOne == 'F')
{
AttractiveScore += 0;
}
elseif (choice_FoodOne == 'g'|| choice_FoodOne == 'G')
{
AttractiveScore += 8;
}
cout << "I need to know what food you eat the second most. \n If you eat pesto pasta: type 'a'. \n If you eat sushi: type 'b'. \n If you eat barbeque: type 'c'. \n If you eat take out Chinese food: type 'd'. \n If you eat raman noodles: type 'e'. \n If you eat fancy expensive food(i.e. goose liver pate): type 'f'. \n If you eat crab: type 'g'." << endl;
cin >> choice_FoodTwo;
if (choice_FoodTwo == 'a'|| choice_FoodTwo == 'A')
{
AttractiveScore += 4;
}
elseif (choice_FoodTwo == 'b'|| choice_FoodTwo == 'B')
{
AttractiveScore += 6;
}
elseif (choice_FoodTwo == 'c'|| choice_FoodTwo == 'C')
{
AttractiveScore += 5;
}
elseif (choice_FoodTwo == 'd'|| choice_FoodTwo == 'D')
{
AttractiveScore += 5;
}
elseif (choice_FoodTwo == 'e'|| choice_FoodTwo == 'E')
{
AttractiveScore += 6;
}
elseif (choice_FoodTwo == 'f'|| choice_FoodTwo == 'F')
{
AttractiveScore += 0;
}
elseif (choice_FoodTwo == 'g'|| choice_FoodTwo == 'G')
{
AttractiveScore += 8;
}
cout << "I need to know what food you eat the third most. \n If you eat pesto pasta: type 'a'. \n If you eat sushi: type 'b'. \n If you eat barbeque: type 'c'. \n If you eat take out Chinese food: type 'd'. \n If you eat raman noodles: type 'e'. \n If you eat fancy expensive food(i.e. goose liver pate): type 'f'. \n If you eat crab: type 'g'." << endl;
cin >> choice_FoodThree;
if (choice_FoodThree == 'a'|| choice_FoodThree == 'A')
{
AttractiveScore += 4;
}
elseif (choice_FoodThree == 'b'|| choice_FoodThree == 'B')
{
AttractiveScore += 6;
}
elseif (choice_FoodThree == 'c'|| choice_FoodThree == 'C')
{
AttractiveScore += 5;
}
elseif (choice_FoodThree == 'd'|| choice_FoodThree == 'D')
{
AttractiveScore += 5;
}
elseif (choice_FoodThree == 'e'|| choice_FoodThree == 'E')
{
AttractiveScore += 6;
}
elseif (choice_FoodThree == 'f'|| choice_FoodThree == 'F')
{
AttractiveScore += 0;
}
elseif (choice_FoodThree == 'g'|| choice_FoodThree == 'G')
{
AttractiveScore += 8;
}
AttractiveScore -= StupidScore = FinalAttractiveScore;
if (FinalAttractiveScore <= 10&& FinalAttractiveScore >= 0)
{
cout << "You scored " << FinalAttractiveScore << " on the test, that means you are quite unattractive. Sucks to be you." << endl;
}
elseif (FinalAttractiveScore >= 10&& FinalAttractiveScore <= 15)
{
cout << "You scored " << FinalAttractiveScore << " on the test, that means you are unattractive." << endl;
}
elseif (FinalAttractiveScore >= 16&& FinalAttractiveScore <= 19)
{
cout << "You scored " << FinalAttractiveScore << " on the test, that means you are not attractive or unattractive, sort of in the middle." << endl;
}
elseif (FinalAttractiveScore >= 20&& FinalAttractiveScore <= 23)
{
cout << "You scored " << FinalAttractiveScore << " on the test, that means you are attractive." << endl;
}
elseif (FinalAttractiveScore >= 24&& FinalAttractiveScore <= 30)
{
cout << "You scored " << FinalAttractiveScore << " on the test, that means you are extremely attractive." << endl;
}
elseif (FinalAttractiveScore >= 30)
{
cout << "Obviously you have found some way to cheat the system because the score is out of 30, and you scored " << FinalAttractiveScore << " on the test. Go away. I don’t like you anymore. You broke my program." << endl;
}
}
elseif (choice_MaleFemale == 'f'|| choice_MaleFemale == 'F')
{
//the same function goes here but the scores are a little different, unfortunately my program was too long and the website wouldnt let me post it all
}
}