词条 | Draft:PROGRAMMES |
释义 |
//QUESTION1 int question1 () {int point1=0; int choice1; cout<<" DOES YOUR DEVICE SWITCH ON ? "<< endl ; cout<<" 1)YES "<< endl <<" 2)NO "<< endl < cout< if(choice1==1) { point1=point1+5; return point1;} else { recycle(); } } int question2 () int choice2,point2; cout<<" HOW MANY OF THE FOLLOWING ACCESORY DO YOU HAVE ? "<< endl ; cout<<" 1)CHARGER "<< endl << cin>>choice2; switch(choice2) { case 1 : point2=1; break; case 2 : point2=2; break; case 3 : point2=3; break; case 4 : point2=4; break; } cout< if(point2<2) { recycle();} else { return point2;} } //QUESTION3 int question3 () cout<<"WHICH OF THE FOLLOWING DAMAGE DOES YOUR DEVICE HAS ?"<< endl ; cout<<" 1)PHYSICAL DAMAGE "<< endl << for(int i=0;i<=4;i++) { cout<<"ENTER DAMAGE (PRESS 0 WHEN DONE)"<< endl ; cin>>choice3; if(choice3==1 || choice3 ==2 || choice3==3 || choice3==4 || choice3==5 ) { point3=point3+1;} else { if(choice3==0) { break;} } } cout< if(point3>=3) { recycle(); } else { return point3; } } int question4() int choice4; int point4; cout<<"WHAT IS THE AGE OF YOUR DEVICE "<< endl ; cout<<"1)BELOW 3 MONTHS "<< endl << cin>>choice4; switch(choice4) { case 1 : point4=5; break; case 2 : point4=4; break; case 3 : point4=3; break; case 4 : point4=2; break; case 5 : point4=1; break; } cout< return point4; } //QUESTION5 int question5 () int choice5; int point5; cout<<"ON A SCALE OF 1-5 , HOW WOULD YOU RATE THE SMOOTHNESS OF YOUR DEVICE ?"< cout<<"1)0-1 "<< endl << cin>>choice5; switch(choice5) { case 1 : point5=1; break; case 2 : point5=2; break; case 3 : point5=3; break; case 4 : point5=4; break; case 5 : point5=5; break; } cout< if(point5<2) { recycle();} else { return point5; } } //256 long double storage256 () long double price=0; int choicebrand; int choicemodel; cout< cout<<"1)APPLE"< cin>>choicebrand; cout< if(choicebrand==1) { cout<<"SELECT MODEL"< cout<<"1)IPHONE XS MAX"< "2)IPHONE XS"< "3)IPHONE XR"< "4)IPHONE X"< cin>>choicemodel; switch(choicemodel) { case 1 : price=124900; break; case 2 : price=114900; break; case 3 : price=91900; break; case 4 : price=101900; break; } cout< return price; } if(choicebrand==2) { cout<<"SELECT MODEL"< cout<<"1)SAMSUNG GALAXY S9 "< cin>>choicemodel; switch(choicemodel) { case 1: price=65400; break; } cout< return price; } if(choicebrand==3) { cout<<"SELECT MODEL"< cout<<"1)ONE PLUS 6T "< "2)ONE PLUS 6"< cin>>choicemodel; switch(choicemodel) { case 1:price=46000; break; case 2:price=44000; break; } cout< return price; } cout< } //128 long double storage128() long double price; int choicebrand; int choicemodel; cout< cout<<"1)APPLE"< cin>>choicebrand; cout< if(choicebrand==1) { cout<<"SELECT MODEL"< cout<<"1)IPHONE XR"< cin>>choicemodel; switch(choicemodel) { case 1: price=81900; break; } return price; } if(choicebrand==2) { cout<<"SELECT MODEL"< cout<<"1)SAMSUNG NOTE 9"< "2)SAMSUNG GALAXY S8"< cin>>choicemodel; switch(choicemodel) { case 1: price=68000; break; case 2: price=56000; break; } return price; } if(choicebrand==3) { cout<<"SELECT MODEL"< cout<<"1)ONE PLUS 6T"< "2)ONE PLUS 6"< cin>>choicemodel; switch(choicemodel) { case 1:price=42000; break; case 2:price=40000; break; } return price; } if(choicebrand==4) { cout<<"SELECT MODEL"< cout<<"1)MOTORLA Z(2) FORCE "< cin>>choicemodel; switch(choicemodel) { case 1 : price = 39000; break; } return price; } long double storage64() long double price; int choicebrand; int choicemodel; cout< cout<<"1)APPLE"< cin>>choicebrand; cout< if(choicebrand==1) "2)IPHONE XS"< "3)IPHONE XR"< "4)IPHONE X"< switch(choicemodel) { case 1: price=109000; break; case 2: price=114000; break; case 3: price=76900; break; case 4: price=85000; break; } if(choicebrand==2) cout<<"1)SAMSUNG GALAXY S9"< "2)SAMSUNG GALAXY S8"< "3)SAMSUNG NOTE 8" < cin>>choicemodel; switch(choicemodel) { case 1: price=62000; break; case 2: price=53000; break; case 3: price=44000; break; } return price; if(choicebrand==3) cout<<"1)MOTOROLA Z2 FORCE"< "2)MOTOROLA Z2 PLAY"< "3)MOTOROLA X4"< "4)MOTOROLA G6 PLUS"< cin>>choicemodel; switch(choicemodel) { case 1 : price=35000; break; case 2 : price=16000; break; case 3 : price=13000; break; case 4 : price=15000; break; } //DISPLAY1 void display() cout< cout<< getch(); //DISPLAY2 void display2 () cout<< getch(); } //DISPLAY3 void display3 () cout<< getch(); } //DISPLAY4 void display4 () cout<< getch(); } //DISPLAY5 void display5 () cout<< getch(); } //DISPLAY6 void display6 () cout<< getch(); } //DISPLAY7 void display7 () cout<< getch(); } //MAIN void main() //DISPLAY(MAIN-I) int value1,value2,value3,value4,value5,total=0; if(choicestorage==1) { price=storage256(); long double finalprice; finalprice=(total*price*8)/(190); cout<<" ________________________________ "< " SCORE = "< " BUYING PRICE = "< " M.S.P= "< " -------------------------------- "< " THANKS FOR VISITING !" < } if(choicestorage==2) { price=storage128(); long double finalprice; finalprice=(total*price*8)/(190); cout<<" ________________________________ "< " SCORE = "< " BUYING PRICE = "< " M.S.P= "< " -------------------------------- "< " THANKS FOR VISITING !" < } { price=storage64(); long double finalprice; finalprice=(total*price*8)/190; cout<<" ________________________________ "< " SCORE = "< " BUYING PRICE = "< " M.S.P= "< " -------------------------------- "< " THANKS FOR VISITING !" < } getch(); } C++ PROJECT MADE BY - NEMI SHAH (XI-B-SCIENCE ; ROLL NO: 27) NAMRA SHAH(XI-B-SCIENCE ; ROLL NO:25) WE PUBLISHED THIS 1 DAY AHEAD OF OUR PROGRAMME SUBMISSION(MONDAY)-10/2/2019 |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。