#include // This is needed to manipulate the IO. #include using namespace std; int main() { int x=500; double price; cout << "1234567890" << endl; cout.width(10); cout.fill('x'); cout << x << endl; // Sets the precision on numbers to be 2 decimal places. cout << setiosflags(ios::fixed | ios::showpoint) << setprecision(2); cout.fill(' '); price=1.9; cout.width(7); cout << right << price << endl; price=100.99; cout.width(7); cout << right << price << endl; return 0; }