Profile cover photo
Profile photo
Jesse Radin
93 followers -
Coherent Comet. A band inspired by Lifehouse and Chevelle. Secular rock that will appeal to Christians due to clean lyrics and the message
Coherent Comet. A band inspired by Lifehouse and Chevelle. Secular rock that will appeal to Christians due to clean lyrics and the message

93 followers
About
Posts

Post is pinned.Post has shared content
Add a comment...

I barely use Google plus. I want to eat a burger again.
Add a comment...

Post has shared content
+AMC Theatres Feel free to use this program I wrote when I worked at AMC a year ago.

It checks if Stubs is worth it.

#include <cstdlib>
#include <iostream>
#include <iomanip>
using namespace std;

int main(int argc, char *argv[])
{
    int stubsprice=12;
    double movies_watched;
    double ticketprice=12;
    double main_savings;
    double savings;
    double people;
    double food;
    char upgrade;
    double upgrade_saving=0;

    
    cout << "Would AMC Stubs save you money? This program will find out. \n";
    
    cout << "\nHow many movies do you see in a year at theatres?";
    cin >> movies_watched;
    
    cout << "\nHow many people do you go with to see a movie on average (yourself counting as 1)?";
    cin >> people;
    
    cout << "\nHow much ($) do you spend on food at the theatre?";
    cin >> food;
    
    cout << "\nFor popcorn/soda: When you go, do you purchase:\n";
    cout << "(P) Popcorn only\n";
    cout << "(S) Soda only \n";
    cout << "(B) Both\n";
    cout << "(N) Neither\n";
    cin >> upgrade;
    switch (upgrade) {
           case 'P':
           upgrade_saving =1;
           break;
           case 'S':
           upgrade_saving =0.5;
           break;
           case 'B':
           upgrade_saving =1.5;
           break;
           case 'N':
           upgrade_saving =0;
           break;
           }
    
    
                    
 
   main_savings = ((food + (movies_watched * ticketprice * people))/10);
   double upgrade_value = (upgrade_saving*movies_watched);
    savings = main_savings + upgrade_value;
    cout << "You saved $" << fixed << setprecision(2) << savings << " using AMC stubs.\n";
    
    cout << "$" << main_savings << " from 10% back on food and tickets purchased.\n";
    cout << "$" << upgrade_value << " from upgrades on soda and popcorn.\n";
    
    if (savings < stubsprice) {
        cout << "You would NOT benefit from getting a Stubs card.\n";
        }
    else if (savings >= stubsprice) {
        cout << "You WOULD benefit from getting a Stubs card.\n";
        }         
    
    system("PAUSE");
    return EXIT_SUCCESS;
}

Thanks Eric.

#jesesradin  
http://www.jesseradin.com
http://www.youthink.com/Electric
Add a comment...

Post has attachment
Jesse Radin commented on a post on Blogger.
Well that sucks... But expected.
Add a comment...

Post has attachment
https://youtu.be/BYdEeMs11zM

New video of mine. Eating like I mean it.
Add a comment...

Post has shared content
Add a comment...

Post has shared content
Add a comment...

Post has attachment
Buzz feed is a cancer
BuzzOff
BuzzOff
chrome.google.com
Add a comment...

Post has shared content
Add a comment...

Post has shared content
Add a comment...
Wait while more posts are being loaded