C++ coding help!

March 23, 2010 at 20:48:08
Specs: Windows XP
I need to write something look like this
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
can anyone help me figure it out. Thank you


See More: C++ coding help!

Report •


#1
March 24, 2010 at 06:02:36
Awesome. When you get past the, "Have people on the Internet do my homework for free" stage, let us know.

If you start doing your homework yourself, but run into problems, feel free to ask us. Make sure to include the code you're having problems with.

If you prefer to have the Internet to do your homework, well, that's an option, too.


Report •

#2
March 27, 2010 at 15:37:52
Hi, I'll do ur hw :)
first, get a c++ compiler, the microsoft visual 2008 c++ thingy off the microsoft website, then, you copy and paste in this code, deleting the hello world one already in there into a new project:

#include "stdafx.h"
#include <iostream>
using namespace System;
using namespace std;

int main ()
{
cout<< "John Smith 10.45 40.00 15.00 418.00 355.30\n";
cout<< "Jane Doe 12.50 45.00 15.00 593.75 504.69\n";
cout<< "Harry Morgan 20.00 40.00 20.00 800.00 640.00\n";
cout<< "Carmen Martinez 25.00 35.00 25.00 875.00 656.25\n";
cout<< "Jacintha Washington 50.85 60.00 35.00 3559.50 2313.68\n";

cout<< "Totals 6246.25 4469.91\n";
return 0;
}

But remove the extra lines on the names and numbers, eg on the jacintha washington 50.85 60.00 35.00 3559.50 where it takes up two lines, remove the space to make it one, and there you have the program.


Report •

Related Solutions


Ask Question