SHARE
TWEET

Untitled

a guest Sep 16th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Example program
  2. #include <iostream>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. int RavishingPrice, RavishingSales, ScrumptiousPrice, ScrumptiousSales, SavoryPrice, SavorySales, DelectablePrice, DelectableSales, DivinePrice, DevineSales;
  8.  
  9. int main () {
  10.  
  11.  
  12. cout<<"Price of Ravishing ticket? ";
  13. cin>>RavishingPrice;
  14. cout<<"Number of Ravishing tickets sold? ";
  15. cin>>RavishingSales;
  16.  
  17. cout<<"Price of Scrumptious ticket? ";
  18. cin>>ScrumptiousPrice;
  19. cout<<"Number of Scrumptious tickets sold? ";
  20. cin>>ScrumptiousSales;
  21.  
  22. cout<<"Price of Savory ticket? ";
  23. cin>>SavoryPrice;
  24. cout<<"Number of Savory tickets sold? ";
  25. cin>>SavorySales;
  26.  
  27. cout<<"Price of Delectable ticket? ";
  28. cin>>DelectablePrice;
  29. cout<<"Number of Delectable tickets sold? ";
  30. cin>>DelectableSales;
  31.  
  32. cout<<"Price of Devine ticket? ";
  33. cin>>DivinePrice;
  34. cout<<"Number of Devine tickets sold? ";
  35. cin>>DevineSales;
  36.  
  37. cout<<"Ravishing Sales: $" <<  RavishingPrice * RavishingSales <<endl;
  38. cout<<"Scrumptious Sales: $" <<  ScrumptiousPrice * ScrumptiousSales<<endl;
  39. cout<<"Savory Sales: $" <<  SavoryPrice * SavorySales <<endl;
  40. cout<<"Delectable Sales: $" <<  DelectablePrice * DelectableSales <<endl;
  41. cout<<"Divine Sales: $" <<  DivinePrice * DevineSales<<endl;
  42. cout<<"Total Sales: " <<  RavishingSales + ScrumptiousSales + SavorySales + DelectableSales + DevineSales <<endl;
  43. cout<<"Total Money collected: $" <<  (RavishingPrice * RavishingSales) + (ScrumptiousPrice * ScrumptiousSales) + (SavoryPrice * SavorySales) + (DelectablePrice * DelectableSales) + (DivinePrice * DevineSales) <<endl;
  44.  
  45. return 0;
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top