I have a small c++ program that I made but its not working the way it should. It only needs a very small edit which I don't know what to do, if anyone is willing to do it free of charge because its so small? I attached the code and what the output is supposed to be when its done.
hey its a very small fix..
i'll do it for free. given that you give me very good review..
here's the fixed code
#include <iostream.h>
#include<conio.h>
void main ()
{
int weeklysales;
int expectedwages;
int plan1;
int num1;
int num2;
int num3;
int plan2;
cout << "Enter weekly sales amount";
cin >> weeklysales;
cout << "Enter num1";
cin >> num1;
cout << "Enter num2";
cin >> num2;
cout << "Enter num3";
cin >> num3;
plan1 = num1*num2+num3;
plan2 = 15;
cout << "Plan 1 pays" << plan1 <<"\n";
cout << "plan 2 pays" << plan2 <<"\n";
if (plan1 > plan2)
cout << plan1 << "is greater than plan2" <<endl;
else
cout << plan1 << "is not greater than plan2" <<endl;
}
regards
I can fix your existing code without adding any extra includes or the like.
The problem is the the line
int main ()
{;
You never put a semicolon after a bracket like that, so it should read
int main ()
{
To fix the rest of the code, I would need to know what you're trying to do.
I will complete this for you for free all I ask is a 5 rating 100% completion rate and good review.
I would have finished this in a few minutes but your post said that you attached the code and what the results should look like. There are many unused variables in your code yet only one input taken. If you will post the results then I can finish this properly very quickly and it will only cost you a good review.
Thank you for your consideration.
Travis