For this homework, we will be creating a simple program that will take in your basic information and then you will output the specifics outlines below. To get FULL credit, you MUST submit the code and the output. INPUT a) Enter your name (first and last): b) Enter your phone number: c) Enter a letter that is in your name: d) Enter a digit that is in your phone number: OUTPUT NAME • The length of your name is: • The index for the letter 'e' is:

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 7E: (Simulation) Write a program to simulate the roll of two dice. If the total of the two dice is 7 or...
icon
Related questions
Question
Strings
For this homework, we will be creating a simple program that will take in your basic
information and then you will output the specifics outlines below. To get FULL credit, you
MUST submit the code and the output.
INPUT
a) Enter your name (first and last):
b) Enter your phone number:
c) Enter a letter that is in your name:
d) Enter a digit that is in your phone number:
OUTPUT
NAME
•
•
•
The length of your name is:
The index for the letter 'e' is:
The index for the letter 'a' is:
• The index for the letter 'q' is:
•
From c) above, replace that letter with a '2'
PHONE NUMBER
•
The length of your phone number is:
• From d) above, replace that digit with a 'X'
Transcribed Image Text:Strings For this homework, we will be creating a simple program that will take in your basic information and then you will output the specifics outlines below. To get FULL credit, you MUST submit the code and the output. INPUT a) Enter your name (first and last): b) Enter your phone number: c) Enter a letter that is in your name: d) Enter a digit that is in your phone number: OUTPUT NAME • • • The length of your name is: The index for the letter 'e' is: The index for the letter 'a' is: • The index for the letter 'q' is: • From c) above, replace that letter with a '2' PHONE NUMBER • The length of your phone number is: • From d) above, replace that digit with a 'X'
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr