#include using namespace std;int main(){ int x, y, z, w, visit; char s; cout<"details of="" charges="" are="" as="" follow:="">"details><> cout<"software fault:="" 4="">"software><> cout<"screen fault:="" 6="">"screen><> cout<"network wi-fi="" fault:="" 8="">"network><> cout<"internal hardware="" fault:="" 10="" omr="">"internal><> cout<"please enter="" your="" service="" issue:="">"please><><"x for="" software="">"x><><"y for="" screen="">"y><><"z for="" network="">"z><><"w for="" hardware="" fault="">"w><> cin>>s; if(s==x) cout<"software fault:="" price="" -="" 4="" omr="">"software><> else if(s==y) cout<"screen fault:="" price="" -="" 6="">"screen><> else if(s==z) cout<"network wi-fi="" fault:="" price="" -="" 8="">"network><> else if(s==w) cout<"internal hardware="" fault:="" price="" -="" 10="">"internal><> else cout<"wrong input="">"wrong><> cout<"following is="" the="" detail="" of="" discounts:="">"following><> cout<"1- customer="" visiting="" 4="" times="" a="" year="" gets="" 20%="">"1-><> cout<"2- customer="" visiting="" 6="" times="" a="" year="" gets="" 30%="">"2-><> cout<"3- customer="" visiting="" 8="" times="" a="" year="" gets="" 50%="">"3-><> cout<"\ncustomer>"\ncustomer><> cin>>visit; if(visit == 4) cout<" discount="" -="" 20%="">"><> if(visit == 6) cout<" discount="" -="" 30%="">"><> if(visit == 8) cout<" discount="" -="" 50%="">"><> return 0;}
int main(){ int x, y, z, w, visit; char s; cout<"details of="" charges="" are="" as="" follow:="">"details><> cout<"software fault:="" 4="">"software><> cout<"screen fault:="" 6="">"screen><> cout<"network wi-fi="" fault:="" 8="">"network><> cout<"internal hardware="" fault:="" 10="" omr="">"internal><> cout<"please enter="" your="" service="" issue:="">"please><><"x for="" software="">"x><><"y for="" screen="">"y><><"z for="" network="">"z><><"w for="" hardware="" fault="">"w><> cin>>s; if(s==x) cout<"software fault:="" price="" -="" 4="" omr="">"software><> else if(s==y) cout<"screen fault:="" price="" -="" 6="">"screen><> else if(s==z) cout<"network wi-fi="" fault:="" price="" -="" 8="">"network><> else if(s==w) cout<"internal hardware="" fault:="" price="" -="" 10="">"internal><> else cout<"wrong input="">"wrong><> cout<"following is="" the="" detail="" of="" discounts:="">"following><> cout<"1- customer="" visiting="" 4="" times="" a="" year="" gets="" 20%="">"1-><> cout<"2- customer="" visiting="" 6="" times="" a="" year="" gets="" 30%="">"2-><> cout<"3- customer="" visiting="" 8="" times="" a="" year="" gets="" 50%="">"3-><> cout<"\ncustomer>"\ncustomer><> cin>>visit; if(visit == 4) cout<" discount="" -="" 20%="">"><> if(visit == 6) cout<" discount="" -="" 30%="">"><> if(visit == 8) cout<" discount="" -="" 50%="">"><> return 0;}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here