Guest User

Untitled

a guest
Oct 21st, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. // INSERT FILE NAME AND DESCRIPTION OF WHAT THE PROGRAM WILL DO HERE
  2. // INSERT AUTHOR AND DATE HERE
  3.  
  4. #include <iostream>
  5.  
  6. using std::cout;
  7. using std::cin;
  8. using std::endl;
  9.  
  10. int main()
  11. {
  12.  
  13. double x = 0 ;
  14. double y = 0 ;
  15. double z = 0 ;
  16. double u = 0 ;
  17. double v = 0 ;
  18.  
  19.  
  20. // input
  21. cout << endl << endl; // two blank lines
  22. cout << "People attending morning session" << endl ;
  23. cin >> x ;
  24. cout << endl << "People attending afternoon session" << endl ;
  25. cin >> y;
  26. cout << endl << "People that will attend both sessions" << endl ;
  27. cin >> z;
  28. cout << endl << "Fee of the Session" << endl ;
  29. cin >> u;
  30.  
  31. // algorithm Processing items
  32. v = u(x+y)+z*(u*.20) ;
  33.  
  34. // output
  35. cout << "Amount Due: " << endl << u << endl ;
  36. // .....
  37. // other stuff here but later as needed
  38.  
  39. system("pause");
  40. return 0;
  41. }
Add Comment
Please, Sign In to add comment