C++
#include
#include
using namespace std;
int main()
{
float amt = 1, tax, total = 0, paid, change;
const float VAT = 0.14;
const string storedPassword = "cleveland";
string password;
cout <
cout<
cout << "Please enter your password: ";
cin >> password;
if(password == storedPassword)
{
while (amt != 0.00)
{
cout << "Amount: R";
cin >> amt;
total += amt;
}
cout << endl;
tax = total * VAT;
total = total + tax;
cin.get();
cout.setf(ios::fixed);
cout.precision(2);......
View the rest of this paper...
Approximate Word Count: 126
Approximate Pages: 1 (250 words per double-spaced page)
Why should you join Frat Files?
- - It's safe, secure, and private.
- - Instant access to over 100,000 papers. New papers are added hourly.
- - Fast and reliable customer support.
Frat Files
Members
Information
© 2009 FratFiles.com.