Make a program that will input type of network provider. A – for Smart and Display “SMART USER”. B- for Globe Display “GLOBE USER” and C-for Sun Display “SUN USER”. Your program will be terminated when you input Z.
#include <iostream>
#include <string>
using namespace std;
void main(){
char typeNetworkProvider=' ';
while(typeNetworkProvider!='Z'){
cout<<"Input type of network provider (A,B,C, Z-exit): ";
cin>>typeNetworkProvider;
if(typeNetworkProvider=='A'){
cout<<"SMART USER\n\n";
}else if(typeNetworkProvider=='B'){
cout<<"GLOBE USER\n\n";
}else if(typeNetworkProvider=='C'){
cout<<"SUN USER\n\n";
}else if(typeNetworkProvider=='Z'){
//exit
}else{
cout<<"Wrong type of network provider.\n\n";
}
}
}
Comments
Leave a comment