testing, ignore
Page 1 of 1
panzieman




Posts: 288

PostPosted: Fri, 15th May 2009 08:07    Post subject: testing, ignore
Code:
#include <iostream>
using namespace std;
int main()
{    cout << "\n Welcome to Eric's DIN Calculator Program \n \n Warning: I am not responsible for any personal injury caused by \n incorrect DIN settings.\n Use this program at your own risk \n \n What is your weight in lbs?" << endl;
int  weight;
int bsl;
int skierlevel;
int x;
int y;
x=0;
y=0;
    cin >> weight;
    cin.ignore ();
if (weight<22){cout <<"You weight too little, you shouldn't be skiing \n Press enter to exit.";
cin.get ();
return 0;
}
if (weight>29){x=x+1;}
if (weight>38){x=x+1;}
if (weight>47){x=x+1;}
if (weight>56){x=x+1;}
if (weight>66){x=x+1;}
if (weight>78){x=x+1;}
if (weight>91){x=x+1;}
if (weight>107){x=x+1;}
if (weight>125){x=x+1;}
if (weight>147){x=x+1;}
if (weight>174){x=x+1;}
if (weight>209){x=x+1;}
if (weight>210){x=x+1;}
    cout << "\nWhat is your boot sole length in mm?\n" ;
    cin >> bsl;
if (bsl>250){y=y+1;}
if (bsl>270){y=y+1;}
if (bsl>290){y=y+1;}
if (bsl>310){y=y+1;}
if (bsl>330){y=y+1;}
    cout << "\n Type 1 skiers ski conservatively, prefer lower speeds, and favor lower DIN \n settings. \n\n Type 2 skiers ski moderately, prefer a variety of speeds, and ski on a variety of terrain including the most difficult trails \n \n Type 3 skiers ski agressively, prefer steeper, more challenging terrain, and \n normally ski at high speeds. \n \n What is your skier type?\n  \n";
    cin >>skierlevel;
if (skierlevel>3){cout <<"Skier type can only be 1, 2, or 3 \n Press enter to try again. \n"; cin.ignore (); cin.get (); return 0;}
if (skierlevel==2){x=x+1;}
if (skierlevel==3){x=x+2;}
float din;
if (x==1 && y==0) {din=1;}
if (x==1 && y==1) {din=1;}
if (x==1 && y==2) {din=0.75;}
if (x==1 && y==3) {din=0;}
if (x==1 && y==4) {din=0;}
if (x==1 && y==5) {din=0;}
if (x==2 && y==0) {din=1.5;}
if (x==2 && y==1) {din=1.25;}
if (x==2 && y==2) {din=0.75;}
if (x==2 && y==3) {din=0;}
if (x==2 && y==4) {din=0;}
if (x==2 && y==5) {din=0;}
if (x==3 && y==0) {din=1.75;}
if (x==3 && y==1) {din=1.5;}
if (x==3 && y==2) {din=1.5;}
if (x==3 && y==3) {din=1.25;}
if (x==3 && y==4) {din=0;}
if (x==3 && y==5) {din=0;}
if (x==4 && y==0) {din=2.25;}
if (x==4 && y==1) {din=2;}
if (x==4 && y==2) {din=1.75;}
if (x==4 && y==3) {din=1.5;}
if (x==4 && y==4) {din=1.5;}
if (x==4 && y==5) {din=0;}
if (x==5 && y==0) {din=2.75;}
if (x==5 && y==1) {din=2.5;}
if (x==5 && y==2) {din=2.25;}
if (x==5 && y==3) {din=2;}
if (x==5 && y==4) {din=1.75;}
if (x==5 && y==5) {din=1.75;}
if (x==6 && y==0) {din=3.5;}
if (x==6 && y==1) {din=3;}
if (x==6 && y==2) {din=2.75;}
if (x==6 && y==3) {din=2.5;}
if (x==6 && y==4) {din=2.25;}
if (x==6 && y==5) {din=2;}
if (x==7 && y==0) {din=0;}
if (x==7 && y==1) {din=3.5;}
if (x==7 && y==2) {din=3;}
if (x==7 && y==3) {din=3;}
if (x==7 && y==4) {din=2.75;}
if (x==7 && y==5) {din=2.5;}
if (x==8 && y==0) {din=0;}
if (x==8 && y==1) {din=4.5;}
if (x==8 && y==2) {din=4;}
if (x==8 && y==3) {din=3.5;}
if (x==8 && y==4) {din=3.5;}
if (x==8 && y==5) {din=3;}
if (x==9 && y==0) {din=0;}
if (x==9 && y==1) {din=5.5;}
if (x==9 && y==2) {din=5;}
if (x==9 && y==3) {din=4.5;}
if (x==9 && y==4) {din=4;}
if (x==9 && y==5) {din=3.5;}
if (x==10 && y==0) {din=0;}
if (x==10 && y==1) {din=6.5;}
if (x==10 && y==2) {din=6;}
if (x==10 && y==3) {din=5.5;}
if (x==10 && y==4) {din=5;}
if (x==10 && y==5) {din=4.5;}
if (x==11 && y==0) {din=0;}
if (x==11 && y==1) {din=7.5;}
if (x==11 && y==2) {din=7;}
if (x==11 && y==3) {din=6.5;}
if (x==11 && y==4) {din=6;}
if (x==11 && y==5) {din=5.5;}
if (x==12 && y==0) {din=0;}
if (x==12 && y==1) {din=0;}
if (x==12 && y==2) {din=8.5;}
if (x==12 && y==3) {din=8;}
if (x==12 && y==4) {din=7;}
if (x==12 && y==5) {din=6.5;}
if (x==13 && y==0) {din=0;}
if (x==13 && y==1) {din=0;}
if (x==13 && y==2) {din=10;}
if (x==13 && y==3) {din=9.5;}
if (x==13 && y==4) {din=8.5;}
if (x==13 && y==5) {din=8;}
if (x==14 && y==0) {din=0;}
if (x==14 && y==1) {din=0;}
if (x==14 && y==2) {din=11.5;}
if (x==14 && y==3) {din=11;}
if (x==14 && y==4) {din=10;}
if (x==14 && y==5) {din=9.5;}
if (x==15 && y==0) {din=0;}
if (x==15 && y==1) {din=0;}
if (x==15 && y==2) {din=0;}
if (x==15 && y==3) {din=0;}
if (x==15 && y==4) {din=12;}
if (x==15 && y==5) {din=11.5;}
if (x==0 && y==0) {din=0.75;}
if (x==0 && y==1) {din=0.75;}
if (x==0 && y==2) {din=0;}
if (x==0 && y==3) {din=0;}
if (x==0 && y==4) {din=0;}
if (x==0 && y==5) {din=0;}
if (din==0){cout <<"Your weight, height, and boot sole combination are not on the DIN chart, try \n again, if it still doesn't work send me a picture because you're \n probably really funny looking. \n \n Press enter to exit"; cin.get (); return 0;}
cout << "Your din should be "<< din << "\n \n Press enter to exit" ;
cin.ignore () ;
cin.get () ;
return 0;
}


hopefully this works. I'm using this to post on another forum that's not so friendly to poorly written C++.
Back to top
Submiqent




Posts: 1213

PostPosted: Fri, 15th May 2009 09:44    Post subject:
What is a Din? A ski boot setting or something?
Back to top
VGAdeadcafe




Posts: 22230
Location: ★ ಠ_ಠ ★
PostPosted: Fri, 15th May 2009 15:22    Post subject:
Ahaha, this "program" made me lol
Back to top
zipfero




Posts: 8938
Location: White Shaft
PostPosted: Fri, 15th May 2009 15:44    Post subject:
I WILL NOT BE IGNORED!!!!!!!!


8 out of 10 dentists prefer zipfero to competing brands(fraich3 and Mutantius)!
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - The Useless Void
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group