请输入您要查询的百科知识:

 

词条 Draft:PROGRAMMES
释义

  1. References

{{AFC submission|t||ts=20190209212720|u=103.240.207.13|ns=118|demo=}}
  1. include
  2. include
  3. include

//QUESTION1

int question1 ()

{
 int point1=0; int choice1; cout<<" DOES YOUR DEVICE SWITCH ON ? "<< endl ; cout<<" 1)YES "<< endl <<" 2)NO "<< endl <>choice1;

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 <<

      " 2)HANDS-FREE "<< endl <<      " 3)BOX "<< endl <<      " 4)DOCUMENTATION "<< 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 ()

{ int choice3=0;

cout<<"WHICH OF THE FOLLOWING DAMAGE DOES YOUR DEVICE HAS ?"<< endl ;

cout<<" 1)PHYSICAL DAMAGE "<< endl <<

      " 2)SOFTWARE ISSUES "<< endl <<      " 3)AUDIO ISSUES "<< endl <<      " 4)BATTERY / CHARGING ISSUES "<< endl <<      " 5)CAMERA NOT WORKING "<< 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 <<

      "2)3 MONTHS - 1 YEAR "<< endl <<      "3)1 YEAR - 1.5 YEARS "<< endl <<      "4)1.5 YEARS - 2 YEARS "<< endl <<      "5)ABOVE 2 YEARS "<< 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 <<

      "2)1-2 "<< endl <<      "3)2-3 "<< endl <<      "4)3-4 "<< endl <<      "5)4-5 "<< 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 ()

{ clrscr();

long double price=0;

int choicebrand;

int choicemodel;

cout<

cout<<"1)APPLE"<

      "2)SAMSUNG"<

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"<

      "2)SAMSUNG"<

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;

}

 cout<

long double storage64()

{

long double price;

int choicebrand;

int choicemodel;

cout<

cout<<"1)APPLE"<

      "2)SAMSUNG"<

cin>>choicebrand;

cout<

if(choicebrand==1)

     { cout<<"SELECT MODEL"<

"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;

}

       return price;       }

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;

}

      } cout<

//DISPLAY1

void display()

{

cout<

cout<<

       "*******************************************************************"<

getch();

//DISPLAY2

void display2 ()

{

cout<<

       "                  FOR EXMAPLE        "<

getch();

}

//DISPLAY3

void display3 ()

{

cout<<

      "               THE FOLLOWING PROGRAM IS "<

getch();

}

//DISPLAY4

void display4 ()

{

cout<<

      "               1)MOTOROLA               "<

getch();

}

//DISPLAY5

void display5 ()

{

cout<<

      "               2)ONE PLUS               "<

getch();

}

//DISPLAY6

void display6 ()

{

cout<<

      "               3)SAMSUNG                "<

getch();

}

//DISPLAY7

void display7 ()

{

cout<<

      "               4)APPLE                  "<

getch();

}

//MAIN

void main()

{ clrscr();

//DISPLAY(MAIN-I)

 display(); display2(); display3(); display4(); display5(); display6(); display7();                                                                                                      //POINTS(MAIN-II)

int value1,value2,value3,value4,value5,total=0;

 value1=question1(); value2=question2(); value3=(-1)*question3(); value4=question4(); value5=question5(); total= value1+ value2 + value3 + value4+value5;                                                                                                     //PRICES(MAIN-III)
 long double price; int choicestorage; cout<<"SELECT STORAGE"<

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

References

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/29 7:16:45