bailout

bailout - #include #include using...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> #include <string> using namespace std; int main () { string company_name; cout << "Company name: "; getline (cin,company_name); double annual_sales; // double because it can be a fraction cout << "Annual sales (in trillions): "; cin >> annual_sales; cin.ignore (1000, '\n'); string industry; string mud = "mud"; string phishing = "phishing"; cout << "Industry: "; getline (cin, industry); int employees; // integer because there are no "fraction" people cout << "Number of employees: "; cin >> employees; cout << "---" << endl; /* there are 7 different ranges that need to be defined. Under 500, between 500 and 700 for non phish/mud, between 500 and 700 for phish/ mud, between 700 and 900 for non- fish/mud, between 700 and 900 for fish/mud, greater than 900 for non-fish/ mud, and greater than 900 for phish/mud. */ { cout.setf(ios::fixed); cout.precision(2); double creditlt500; //credit for incomes less than 500 trillion creditlt500 = annual_sales*.20;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/10/2011 for the course CS 31 taught by Professor Melkanoff during the Spring '00 term at UCLA.

Page1 / 3

bailout - #include #include using...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online