最終的な回答を小数点以下 2 桁に四捨五入しようとしているので、ドルとセントになります。私はコーディングが初めてで、理解できません。「請求する必要がある金額は」という行の「w」を丸めたいのですが、私のコードは次のとおりです。
#include <iostream>
using namespace std;
int main()
{
string Choice;
float x, w;
cout << "Please enter the amount needed." << endl;
cin >> x;
w = x/(1-0.0275);
cout << "The amount you need to charge is $"<< w << "." << endl;
return (0);
}