Create a script that asks the user for five email addresses and collects the domain names. Input
Create a script that asks the user for five email addresses and collects the domain names.
Prompt the user five times to enter an email address. If the address does not include a "@" before a ".", it is not valid and does not count toward the five addresses.
After each valid email, print just the domain name portion of the address without the extension. For example, "firstname.lastname@example.org" should output as "yahoo".
Once all five emails have been entered, all valid domain names should be printed again in one line, separated by spaces.
Example Program Run
This is an example of what the screen might look like after the program executes, including bold values that were input by the user.