I need Pseudo Code:
1. Declare variables
2. Accept Input – weeklySales
3. Calculate Gross Pay = Weekly Sales * .07
4. Calculate Federal Tax = Gross Pay * .18
5. Calculate Social Security =...
Type: Posts; User: slimdime
I need Pseudo Code:
1. Declare variables
2. Accept Input – weeklySales
3. Calculate Gross Pay = Weekly Sales * .07
4. Calculate Federal Tax = Gross Pay * .18
5. Calculate Social Security =...
That worked!! Thanks Elysia.
How would I get 1960.00 - 666.40 = 1293.60 in a C++ program?? I don't want it to round the numbers. I tried:
cout << fixed << showpoint << setprecision (2);
but it did not work.
I am very serious about learning the language. I am trying my best. And I truly appreciate all the help.
yep. you got it. C++ is hard.
GOT IT!!
#include <stdafx.h>
#include <iostream>
using namespace std;
OK. (running away very fast) Thanks.
Getting this error:
error C2065: 'counter' : undeclared identifier
Thanks, but it's still not working:
#include "stdafx.h"
#include <iostream>
using namespace std;
IDK :(
What about:
for ( int x = 0; x < 15; x
Oh, a comedian. :p
Ok, let me see if I can do that. (be right back)
I made the change cin>>
Isn't this my ForLoop
for (counter=0;counter=<15;counter++)
I tried it: (but it didn't work) Thanks for trying.
#include "stdafx.h"
#include <iostream>
using namespace std;
const int LIMIT = 15;
Can you give me a hint?
Yea, I know it's for "summing" I'm trying to change it to an Array with ForLoop to print reverse.
I'm trying to do a program that will take in 10 numbers (integers) then have the out given in reverse. Ex: 1,5,9 (in) Out --> 9,5,1
Here is my code so far:
#include "stdafx.h"...
LOL cute.
Thanks to all that offered help. :-)
I have to write a program that will do all of the following:
Edited for all the haters.
I'm taking a C++ class and they recommend Dev C++ for beginners because it's easier to use than Visual C++ and more user friendly.
Thank you all. It worked! :-)
Error = fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory
Also since I'm using Visual C++ should I add
#include "stdafx.h"
I changed the codes: <iostream> is normally stored in the C:\Program Files\Microsoft Visual Studio 8\VC\include folder. First check if it is still there. Then choose Tools + Options, Projects and...
I need help with this program. I'm compiling in Visual C++
#include "stdafx.h"
#include <iostream>
float getdata();
using namespace std;