// Programmer: Clayton Price date: 3-16-14
// File: h5.cpp
// Purpose: this file contains the main fuction for the program that will pre
// dict the winner of a fruit-rolling race. GO BANANA!
#include <iostream>
#include "h5.h"
using namespace std;
int main()
{
/* ------------- DECLARATIONS ----------------- */
string fruit1,fruit2;
float fruitWt1, fruitWt2;
bool another = false;
char ans;
/* ---------------INPUT INFO AND CALC RESULTS ------*/
greet();
do
{
get_fruit_names(fruit1,fruit2);
get_fruit_wts(fruitWt1,fruitWt2);
judge_race(fruit1,fruitWt1,fruit2,fruitWt2);
do
{
cout<<"\n\t....do you wish to do another? (y/n): ";
cin>>ans;
} while (ans != 'y' && ans != 'n');
another = (ans == 'y');
} while (another);
goodbye();
return 0;