Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // INSERT FILE NAME AND DESCRIPTION OF WHAT THE PROGRAM WILL DO HERE
- // INSERT AUTHOR AND DATE HERE
- #include <iostream>
- using std::cout;
- using std::cin;
- using std::endl;
- int main()
- {
- double x = 0 ;
- double y = 0 ;
- double z = 0 ;
- double u = 0 ;
- double v = 0 ;
- // input
- cout << endl << endl; // two blank lines
- cout << "People attending morning session" << endl ;
- cin >> x ;
- cout << endl << "People attending afternoon session" << endl ;
- cin >> y;
- cout << endl << "People that will attend both sessions" << endl ;
- cin >> z;
- cout << endl << "Fee of the Session" << endl ;
- cin >> u;
- // algorithm Processing items
- v = u(x+y)+z*(u*.20) ;
- // output
- cout << "Amount Due: " << endl << u << endl ;
- // .....
- // other stuff here but later as needed
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment