Complete the code where it says Your code here. When you are done enter ONLY the code you added in the text box below. The program reads the phone number prefix in, then it reads in the string suffix....


Complete the code where it says Your code here. When you<br>are done enter ONLY the code you added in the text box<br>below. The program reads the phone number prefix in, then<br>it reads in the string suffix.<br>Output 1-800-, the prefix, a dash, and the suffix. End with<br>a newline.<br>Example output if the input is: 224 HELP<br>1-800-224-HELP<br>#include <iostream><br>#include <string><br>using namespace std;<br>int main() {<br>int prefix;<br>string suffix;<br>cin >> prefix;<br>cin >> suffix;<br>* Your code here */<br>return 0;<br>}<br>

Extracted text: Complete the code where it says Your code here. When you are done enter ONLY the code you added in the text box below. The program reads the phone number prefix in, then it reads in the string suffix. Output 1-800-, the prefix, a dash, and the suffix. End with a newline. Example output if the input is: 224 HELP 1-800-224-HELP #include #include using namespace std; int main() { int prefix; string suffix; cin >> prefix; cin >> suffix; * Your code here */ return 0; }

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here