sdtlab1 - // Get the hourly pay rate. cout...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// Programmer: Sarah Trayner // Assignment: lab 1.1 // Description: This program calculates the user's pay. #include <cstdlib> #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;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // Get the hourly pay rate. cout &lt;&lt; &quot;How much do you get paid per hour? &quot;; cin &gt;&gt; rate; //Calculate the pay pay = hours * rate; // Display the pay. cout &lt;&lt; &quot;You have earned $&quot; &lt;&lt; pay &lt;&lt; endl; // pauses the monitor system(&quot;PAUSE&quot;); return EXIT_SUCCESS; }...
View Full Document

This note was uploaded on 01/16/2010 for the course ENG eel3003 taught by Professor Medda during the Fall '09 term at FSU.

Ask a homework question - tutors are online