Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <string>
- using namespace std;
- int main(){
- // Declarations
- double hoursWorked;
- double temp;
- double counted;
- double running;
- // Initalizations
- hoursWorked = 0;
- counted = 0;
- running = 0;
- // Input
- for (counted = 0; counted < 5; counted++)
- {
- cout << "Please enter the amount of hours worked on day " << counted << ": ";
- cin >> hoursWorked;
- running = hoursWorked + temp;
- temp = running;
- cout << endl;
- cout << "just for testing temp value: " << temp << endl;
- cout << "just for testing hoursWorked: " << hoursWorked << endl;
- }
- // Process
- // Output
- // Prolouge
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement