Hi @CleanerWings777,
First of all, I've noticed you write in the loop, "cin>>pamnt" and "pamnt+=pamnt". If I'm not mistaken, that will just double the pamnt's value everytime you input a new number. When you get to another execution of the loop, the number really isn't added anymore. If that was not your intention, then try doing:
1 2 3 4 5 6 7 8
...
double stotal=0.0;
...
for ()
{
cin>>pamnt;
stotal+=pamnt;
}
After that you should have:
1 2 3
Tt=pamnt*stax;
total=pamnt+Tt;
...
Hope this helps, and if I didn't get it right, then could you rephrase/comment the code lines so that I could answer better?
that is exactly what it needed, thank you so much, i now just need to figure out how to, instead of just setprecision(), to set it to 2 decimal places.
Edit: putting the
cout << fixed << setprecision(2);
before the outputs did the trick thank y'all for the help.