Guest User

Untitled

a guest
Jan 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     cout <<  "Analogies" << endl;
  9.     cout << "v  == velocity" << endl;
  10.     cout << "d  == distance" << endl;
  11.     cout << "t  == time" << endl;
  12.     cout << "a  == acceleration" << endl;
  13.     cout << "vf  == final velocity" << endl;
  14.     cout << "vi  == initial velocity" << endl;
  15.     float v;
  16.     float d;
  17.     float a;
  18.     float vf;
  19.     float vi;
  20.     bool aone;
  21.     bool two;
  22.     bool three;
  23.     bool four;
  24.     bool five;
  25.     string have;
  26.     char y ='y';
  27.     char n='n';
  28.     cout << "What information do you have?" << endl;
  29.     cout << "Answer: \"y\" or \"n\"" << endl;;
  30.     cout << "Do you have distance" << endl;
  31.     if(cin >> y){
  32.     aone =true;
  33.     }
  34.     else if(cin >> n){aone=0;}
  35.     cout << aone;
  36.     return 0;
  37. }
Add Comment
Please, Sign In to add comment