Hi, new to C++ programming and need help inserting my code into one of those ready made templates from Bloodshed or Borland C++.
Could someone please help?
-Mike
<Moderator edit: Don't use ALL CAPS. Don't ask for personal emails.>
Hi, new to C++ programming and need help inserting my code into one of those ready made templates from Bloodshed or Borland C++.
Could someone please help?
-Mike
<Moderator edit: Don't use ALL CAPS. Don't ask for personal emails.>
Well, the first thing you should do is read the forum rules.
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
read the forum rules. also studied my begginers guides...also asked questions from other programers. still lost. cant i just cut and paste my code into that templete??
-Mike
It depends. What kind of program are you writing?
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
just a basic math problem. solving simple add&sub&mult...etc. inserting code....
here's the code....
#include <iostream>
int main()
{
int premot;
int regot;
int penot;
int base;
int payoff;
int taxes;
int childsupport;
int slops;
int allot;
int draws;
std::cout << " How many premium ot hours have you worked so far? ";
std::cin >> premot;
std::cout << " How many regular ot hours have you worked? ";
std::cin >> regot;
std::cout << " How many penalty ot hours have you worked? ";
std::cin >> penot;
std::cout << " How many days have you been on, so far this voyage? ";
std::cin >> base;
payoff = premot * 15.97 + regot * 10.32 + penot * 7.03 + base * 61.53;
std::cout <<" \nYour Gross earnings are...$ ";
std::cout << payoff;
std::cout <<"\n";
std::cout << " \nOK. Now, let's figure some deductions!!\n";
std::cout <<"\n";
std::cout <<" Net wages after taxes are..$ ";
std::cout <<payoff*.765;
std::cout <<"\n";
std::cout <<" \nenter child support. ";
std::cin >>childsupport;
std::cout <<payoff*.765-childsupport;
std::cout << " \nenter your slops.";
std::cin >>slops;
std::cout <<payoff*.765-childsupport-slops;
std::cout << " \nenter your allotments. ";
std::cin >>allot;
std::cout <<payoff*.765-childsupport-slops-allot;
std::cout << " \nenter your draws. ";
std::cin >>draws;
std::cout << "\n your payoff is...$";
std::cout << payoff*.765-childsupport-slops-allot-draws;
return 0;
}