New Pollution

It looks wayyy better on Bloodshed.

/*
Taylor Martin
H. Comp. Pro.
Mr. Wortez Period 1
12/08/09
Final Project
Calculator Program
*/


#include <cstdlib>
#include <iostream>
#include <math.h>
#include <iomanip>

using namespace std;

void prompt(int&);
int function_select;
void exponent();
double base, expo;
void divide();
double dividend, divisor;
void multiply();
double multnum1, multnum2;
void subtract();
double minuend, subtrahend;
void add();
double addnum1, addnum2;


int main(int argc, char *argv[])
{
    cout«”* This is a demonstration of a simple calculator program. *”«endl;
    cout«”* Please select one of the mathmatical operator functions below. *”«endl;
    cout«”* You will be prompted for two numbers in each operator *”«endl«endl;
   
    prompt(function_select);
   

    while (function_select <=5 && function_select >= 0)                               
                                                                   //These are void functions that will direct the user upon their input;
    {
    if (function_select ==0)
    return EXIT_SUCCESS;
               
    if (function_select == 1)
    add();
               
    if (function_select == 2)
    subtract();
               
    if (function_select == 3)
    multiply();
               
    if (function_select == 4)
    divide();
               
    if (function_select == 5)
    exponent();
               
                prompt(function_select);
          }
        
    while (function_select > 5 || function_select < 0)                     //*If input is >6 or <0, this will return the user to menu; *//
          {
               cout«”Input is not valid, please select a number between from 0 to 5.”«endl;
               prompt(function_select);
          }
                      
   
}

      void prompt (int& function_select)                                     //* This is what is actually displayed; The calculator menu. *//
    {
         cout«”   =  -  =  -  =  -  =  -  =  -   “«endl;
         cout«”   |   0 : Quit                  |   “«endl;
         cout«”   |   1 : Addition             |   “«endl;
         cout«”   |   2 : Subtraction        |   “«endl;
         cout«”   |   3 : Multiplication      |   “«endl;
         cout«”   |   4 : Division             |   “«endl;
         cout«”   |   5 : Exponent           |   “«endl;
         cout«”   =  -  =  -  =  -  =  -  =  -   “«endl;
       
         cout«”Choose an operator function please: “;
         cin»function_select;
         cout«”You selected operator function number “«function_select«endl«endl;
    }
   
  
    void add()                                                             //* Adds two numbers *//
    {
         cout«”You selected the addition operator!”«endl;
         cout«”Please enter a number: “«endl;
         cin»addnum1;
         cout«”Please enter a number to be added to the previous number: “«endl;
         cin»addnum2;
         cout«”The sum of “«addnum1«”+”«addnum2«”=”«addnum1+addnum2«endl«endl;
         system(“PAUSE”);
    }
  
    void subtract()                                                        //* Subtracts one number from another *//
    {
         cout«”You selected the subtraction operator!”«endl;
         cout«”Please enter the minuend (the number you are subtracting from): “«endl;
         cin»minuend;
         cout«”Please enter the subtrahend (the number that you are subtracting): “«endl;
         cin»subtrahend;
         cout«”The difference of “«minuend«”-“«subtrahend«”=”«minuend-subtrahend«endl«endl;
         system(“PAUSE”);
    }
   
    void multiply()                                                        //* Multiplies two numbers *//
    {
         cout«”You selected the multiplication operator!”«endl;
         cout«”Please enter a number: “«endl;
         cin»multnum1;
         cout«”Please enter a number to be multiplied with the previous number: “«endl;
         cin»multnum2;
         cout«”The product of “«multnum1«”*”«multnum2«”=”«multnum1*multnum2«endl;
         system(“PAUSE”);
    }
   
    void divide()                                                          //* Divides one number by another *//
    {
         cout«”You selected the divison operator!”«endl;
         cout«”Please enter the dividend (The number to be divided): “«endl;
         cin»dividend;
         cout«”Please enter the divisor (The number to be divided by): “«endl;
         cin»divisor;
         cout«”The quotient of “«dividend«”/”«divisor«”=”«dividend/divisor«endl;  
         system(“PAUSE”);
    }
   
    void exponent()                                                        //* Raises one number to the power of the users input *//
    {
         cout«”You selected the exponential operator!”«endl;
         cout«”Please enter the base: “«endl;
         cin»base;
         cout«”Please enter the exponent: “«endl;
         cin»expo;
         cout«”The number that results from “«base«”^”«expo«”=”«pow(base,expo)«endl;
         system(“PAUSE”);
    }
   

A week ago i was at a point where ending things wouldnt have killled me but things didnt end and i jumped back in to things knowing that it would never work, now i find myself at a point where I have nothing to look forward to at all, not college(dont know whats going to happen with that), not friends (don’t have them), not school (i’m an utter failure), not home (i’m an utter failure), not the future (everytime i’ve tried to change i havent), not life (there is not one single time in my life i have made a positive difference for anyone). Not anything. I wish it could all end. I wish God would just take me now. Why hasn’t he? I hate it I hate everything I have ever done. I hate everything I am made of. God please take me now, I beg this of you.

 And I’ll never understand why I’m still here, I don’t deserve to be and by NO means do I need to be. The world would be not a single bit different without me. Scratch that, it would be better off without me.

(generate your own tumblrcloud)

(generate your own tumblrcloud)

(generate your own tumblrcloud)

(generate your own tumblrcloud)

(generate your own tumblrcloud)

(generate your own tumblrcloud)

(generate your own tumblrcloud)

(generate your own tumblrcloud)

fmylife:

Today, I was playing Farmville all day, and I was really into the game. I was getting phone calls all day, but I kept ignoring them cause I was making so much Farm Money. Come to find out it was my son’s school. He fell off the jungle gym and broke his arm. FML

When a major turning point in your life happens and you know it, you begin to break down your entire life causing a break down in yourself.

dvs - wood

fmylife:

Today, I found out I’m sterile. My wife and I have three kids: 14, 11, and 4. FML

i just dont get how i can completely innocently ask a question then get told to chill when in no sense at all am i freaking out then be gotten mad at then finally get to the point where its good again and having reallly good conversation actually then when i try to understand something to make that something better i get a pie to the face like whoa curveball? definitely didnt see that coming? like i though understanding how to do things better would make things better overall but for some reason i guess im supposed to be left in the dark about things? i dont understand how this happens at all like today has definitely been the rollercoasteriest day of my life like i am utterly confused at the moment?