Thursday, December 4, 2014

cs Aug 25

http://www.ideone.com/
http://codepad.org/zXdNZRn7

http://sourceforge.net/projects/dev-cpp/ OLD

http://quincy-2005.software.informer.com/1.3/   2005


// This program calculates the user's pay
#include <iostream>

using namespace std;
int main()
{
  double hours, rate, pay;

  // Get the number of hours worked
  cout << " How many hours did you work?";
  cin >> hours;

  // Get the hourly pay rate.
  cout << " How much do you get paid per hour?";
   cin >> rate;

  // Calculate the pay.
  pay = hours * rate;

  // Display the pay
  cout << " You have earned $" << pay << endl;
  return 0;
}

Homework 1 : ?
Homework 2:  ? Checkpoint
Algorithm workbench
Predict the result
read chapter 2..

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home