Question: How do I write the if/ else statement to make r, R and p, P valid entries? main.cpp 1 #include 2 using namespace std; 3

 How do I write the if/ else statement to make r,
How do I write the if/ else statement to make r, R and p, P valid entries?

main.cpp 1 #include 2 using namespace std; 3 4 int main() { 5 6 char serviceCode; 7 int accountNum, minutesUsage; 8 9 cout > accountNum; 11 cout > serviceCode; 13 cout > minutesUsage; 15 16 if(serviceCode == 'r' || serviceCode == 'R'){ 17 18 if(serviceCode == 'p' || serviceCode == P') { } 20 else{ 21 cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!