Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
Type your program source Select your Operating System click compile and download your executable file!
This is the JAVA Online Compiler.
In online compilers (.net) you can find and use online many compilers ( GCC, MINGW, GFORTRAN, JAVA, GPC, FREEBASIC) for the mainstream languages that exist, you can search THE LINUX MANUAL (DEV MAN) PAGES, the JAVA & WIN32 API'S. Also, i have gathered some material to get you started with programming.
Latest User Submitted Question!

Name: zaki
Title:
  pay period
Question:
Annual Pay
Suppose an employee gets paid every two weeks and earns $1700 each pay period.
In a year the employee gets paid 26 times.  Write a program that defines the
following variables:
payAmount - This variable will hold the amount of pay the employee earns each
            pay period.  Initialize with 1700.0
payPeriods - This variable will hold the number of pay periods in a year.
             Initialize with 26
annualPay - This variable will hold the employee's total annual pay, which will
            be calculated.
The program should calculate the employee's total annual pay by multiplying
the employee's pay amount by the number of pay periods in a year, and store
the result in the annualPay variable.  Display the total annual pay
on the screen.
*/
Answers: Name: zaki
#include <iostream>
using namespace std;

int main()
{
 double payAmount = 1700.00;
 double payPeriods = 26;
 double annualPay = payAmount * payPeriods;

 cout << "The employee earns $" << payAmount << " each pay period. \n";
 cout << "There are " << payPeriods << " pay periods in a year. \n";
 cout << "The annual pay is: $" << annualPay << endl << endl;

 system("pause");

 return 0;
}