Ok this is my assignment (yes I go to a church school). I'm not sure how to write a bool statement or formula on how to display
Income: 100
Tithe: 91
You are a full tithe payer. |
Income: 532
Tithe: 40
Will a man rob God? Yet ye have robbed me. |
the numbers are just what the user inputs.
#include <iostream>
using namespace std;
/*****************************************************
*
*****************************************************/
bool isFullTithePayer(float income, float tithe)
{
// your code goes here
return true;
}
/**********************************************************************
* Main will call isFullTithePayer() and display an appropriate message
* to the user based on the results
***********************************************************************/
int main()
{
float income;
float tithe;
// prompt user for income
cout << "Income: ";
cin >> income;
// prompt user for tithe
cout << "Tithe: ";
cin >> tithe;
// give the user his tithing report
if (isFullTithePayer(income, tithe))
cout << "You are a full tithe payer.\n";
else
cout << "Will a man rob God? Yet ye have robbed me.\n"
<< "But ye say, Wherein have we robbed thee?\n"
<< "In tithes and offerings. Malachi 3:8\n";
return 0;