I have the heading down but how do I output the names and numbers including total? Does it involve calculation? Also, how do I make it so they're aligned pretty? Can someone help me with this whole process?
Here it is:

This payroll program calculates an individual employee pay and
company totals using data from a data file payroll.txt.


A payroll report showing payroll information is displayed.

Employee Hourly Hours Tax Gross Net
Name Rate Worked Rate Amount Amount

John Smith 10.45 40.00 15.00 418.00 355.30
Jane Doe 12.50 45.00 15.00 593.75 504.69
Harry Morgan 20.00 40.00 20.00 800.00 640.00
Carmen Martinez 25.00 35.00 25.00 875.00 656.25
Jacintha Washington 50.85 60.00 35.00 3559.50 2313.68

Totals 6246.25 4469.91

use setw() to set the width of a column cout << setw(20) << name << setw(4) << pay // etc. etc

Well... I'm more interested in figuring out how to punch in names and numbers, more of the calculation process...

Haven't you been reading your textbook? Or are you just browsing through a few horrible on-line tutorials?

use std::cin to get keyboard input

std::string name;
std::cout << "Enter your name\n";
std::cin >> name;

As for the calculations: you will have to post some code that shows us what calculations you need to do.

Yeah, I have a horrible textbook that's very vague......................................
and no one wants to help me

Haven't you been reading your textbook? Or are you just browsing through a few horrible on-line tutorials?

use std::cin to get keyboard input

std::string name;
std::cout << "Enter your name\n";
std::cin >> name;

As for the calculations: you will have to post some code that shows us what calculations you need to do.

Oh and there's no actual calculations.
I have to use those numbers to form some coding...

Haven't you been reading your textbook? Or are you just browsing through a few horrible on-line tutorials?

use std::cin to get keyboard input

std::string name;
std::cout << "Enter your name\n";
std::cin >> name;

As for the calculations: you will have to post some code that shows us what calculations you need to do.

Oh and there's no actual calculations.
I have to use those numbers to form some coding...

A program with no actual calculations is pretty uninteresting. For instance:

int main(void) {
  std::cout << "The answer is 42!\n";
  return 0;
}

I suspect you are having a little trouble with English as well as C++

What I've posted is the only thing I have to come up with a c++ coding.
and your help does not help

A program with no actual calculations is pretty uninteresting. For instance:

int main(void) {
  std::cout << "The answer is 42!\n";
  return 0;
}

I suspect you are having a little trouble with English as well as C++

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.