This code needs to be modular, with function prototype, function call and function definition #include using namespace std; int main() { string input; cout>input; cout


This code needs to be modular, with function prototype, function call and function definition


#include


using namespace std;


int main()
{
string input;
cout<"enter 10="" character="" phone="" number="" using="" letters:=""><>
cin>>input;
cout <>
cout <"here are="" the="" number="" for="" the="" letters="" you="" used:=""><>


for (int i = 0; i < input.length();="" i++)="">


if(input[i]=='A' || input[i]=='B' || input[i]=='C')
{
cout<>
}
else if(input[i]=='D' || input[i]=='E' || input[i]=='F')
{
cout<>
}
else if(input[i]=='G' || input[i]=='H' || input[i]=='I')
{
cout<>
}
else if(input[i]=='J' || input[i]=='K' || input[i]=='L')
{
cout<>
}
else if(input[i]=='M' || input[i]=='N' || input[i]=='O')
{
cout<>
}
else if(input[i]=='P' || input[i]=='Q' || input[i]=='R' || input[i]=='S')
{
cout<>
}
else if(input[i]=='T' || input[i]=='U' || input[i]=='V')
{
cout<>
}
else if(input[i]=='W' || input[i]=='X' || input[i]=='Y' || input[i]=='Z')
{
cout<>
}


else
{
cout<>
}
cout <>
return 0;
}




Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here