Reminder: I am not here to meet your expectations of me. I am not here to meet your standards. I run shit here. You don't and never will.
0 Members and 1 Guest are viewing this topic.
#include <iostream>using namespace std;int main(){float bodyHair = 0;float weirdTallents = 0; float socialIneptitude = 0;float likeTravel = 0;float carnyAverage = 0;char animals;char midgets ;cout << "This program tests if you are applicable to do a certian job.";cout << "How cofortable would you be in having tp travel for your work? (out of 10)";cin >> likeTravel;cout << "How cofortable would you be in working with animals? (Y/N)";cin >> animals;cout << "How would you rate your social skills? With 1 being poor and ten being good. ";cin >> socialIneptitude;cout << "Do you have any weird tallent? With 1 being none and 10 being lots";cin >> weirdTallents;cout << "How much body hair do you have? With 1 being litte and 10 being yetiish. ";cin >> bodyHair;carnyAverage = ((likeTravel + weirdTallents + bodyHair)/3) - socialIneptitude; If (carnyAverage > 7) If (animals == 'y' or animals == 'Y') { cout << "..And how cofortable would you be in working with midgets? (Y/N)"; cin >> midgets; If (midgets == 'y' or midgets == 'Y') { cout << "You are perfect for carnival work!"; } } else cout << "You are almost perfect for carnival work.";else if (carnyAverage > 5){ cout << "You need to grow out your sholder hair a bit. Sorry";}else if (carnyAverage > 3){ cout << "Need some travel experiance before we can accept you";}else cout << "You could run for president. Too bad."; return 0;}
that's full of soooo many typos my head is spinning
Quote from: demi on October 03, 2008, 02:22:13 AMthat's full of soooo many typos my head is spinningbut my typos are consistent! Finally figured it out. For some reason it doesn't like using "and" or "or" as logical operators but instead needs "&&" and "||" WTF?
with your spelling skills are you sure coding is the right job for you?
Finally figured it out. For some reason it doesn't like using "and" or "or" as logical operators but instead needs "&&" and "||" WTF?
Quote from: Father_Mike on October 03, 2008, 02:31:23 AMFinally figured it out. For some reason it doesn't like using "and" or "or" as logical operators but instead needs "&&" and "||" WTF?It's not plaintext dood, of course it will use those boolean operators.