#include using namespace std; int main() { int x, y, z, w, visit; char s; cout


#include
using namespace std;


int main()
{
    int x, y, z, w, visit;
    char s;

    cout<"details of="" charges="" are="" as="" follow:=""><>

    cout<"software fault:="" 4=""><>
    cout<"screen fault:="" 6=""><>
    cout<"network wi-fi="" fault:="" 8=""><>
    cout<"internal hardware="" fault:="" 10="" omr=""><>

    cout<"please enter="" your="" service="" issue:=""><><"x for="" software=""><><"y for="" screen=""><><"z for="" network=""><><"w for="" hardware="" fault=""><>
    cin>>s;

    if(s==x)
    cout<"software fault:="" price="" -="" 4="" omr=""><>

    else if(s==y)
    cout<"screen fault:="" price="" -="" 6=""><>

    else if(s==z)
    cout<"network wi-fi="" fault:="" price="" -="" 8=""><>

    else if(s==w)
    cout<"internal hardware="" fault:="" price="" -="" 10=""><>

    else
    cout<"wrong input=""><>

    cout<"following is="" the="" detail="" of="" discounts:=""><>
    cout<"1- customer="" visiting="" 4="" times="" a="" year="" gets="" 20%=""><>
    cout<"2- customer="" visiting="" 6="" times="" a="" year="" gets="" 30%=""><>
    cout<"3- customer="" visiting="" 8="" times="" a="" year="" gets="" 50%=""><>

    cout<"\ncustomer><>
    cin>>visit;

    if(visit == 4)
    cout<" discount="" -="" 20%=""><>
    if(visit == 6)
    cout<" discount="" -="" 30%=""><>
    if(visit == 8)
    cout<" discount="" -="" 50%=""><>

    return 0;
}

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here