Setfill and output manipulators assignment

need help writing this program, i'm completely stumped and kinda lost on even were to start, sorry i don't normally ask for help but if you could help me it would be much appriciated!!!

Use a single cout statement for all output. Make sure you use manipulators to format your output. The first column should be displayed using default width and alignment, make sure you leave a TAB after the first column, then the second column should be displayed using a field width of 15 left justified, lastly the last column should be displayed using a field width of 20 right justified. You need to define only three variables in your program to hold the initial data values in the first row. Other values should be computed in your code.

Hint: you need to experiment with right, left, and setfill() output manipulators to ensure that your output will exactly match the one given below.

2120 50 ........................65.54
2121 350 .....................589.86
2122 2450 .....................5308.74
2123 17150 ...................47778.66

please help if you can i'm really stuck!
Last edited on
Do you have any code so far?
noo, im freaking out i have no idea how to do this, so if you can help me out big time it would be much appriciated!
Well, I would go along with their advice and first write the cout statement, then start experimenting with some of the manipulators in between the numbers to see the affects.
listen im a beginniner i dont even know what those things are, can you please like give me some code or somthing so i can at least get started
Last edited on
bump... please help ;(
bump, can anyone at least give me a start on this code?? im completely confused on what to do!
How about you do some of the assignment yourself first?
can somone help me get started on this with some source code?? i have no clue how to start :(
Topic archived. No new replies allowed.