Question: Write a program in C++.Ask the user for an email address. Determine if the input meets the standard for an email address. An email address
Write a program in C++.Ask the user for an email address. Determine if the input meets the standard for an email address. An email address must have an @ symbol. Further, an email address must have a period after the @ symbol.
Required output is below:
test@example.com |
Enter your email address Email accepted.
Test Case 2
| Standard Input |
|---|
test%example.com |
Enter your email address Missing @ symbol
Test Case 3
| Standard Input |
|---|
test@examplecom |
Enter your email address Missing . symbol after @
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
