Essay Preview: C++
Report this essay
#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 <> 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); cout << "TOTAL: ";

Get Your Essay

Cite this page

Const Float Vat And Float Amt. (July 5, 2021). Retrieved from https://www.freeessays.education/const-float-vat-and-float-amt-essay/