Question: Ask the user for a name, phone number, and email. Display the information shown in the test cases. Be sure to use your work from
Ask the user for a name, phone number, and email. Display the information shown in the test cases. Be sure to use your work from the previous questions.Upload SmartPhone.java and a new file, MyDemo.java, which will contain main. After you upload both files, be sure to make a selection in the File to run column select MyDemo.java
Test Case
New number creation tool
Enter name
Alan Turingenter
Enter phone number
enter
Enter email
alan.turing@computation.orgenter
Name: Alan Turing
Number:
Area code:
Prefix:
Line number:
Email: alan.turing@computation.org
Telephone neighbor:
Test Case
New number creation tool
Enter name
Ada Lovelaceenter
Enter phone number
enter
Enter email
ada.lovelace@analyticalengine.netenter
Name: Ada Lovelace
Number:
Area code:
Prefix:
Line number:
Email: ada.lovelace@analyticalengine.net
Telephone neighbor:
Test Case
New number creation tool
Enter name
Grace Hopperenter
Enter phone number
enter
Enter email
grace.hopper@navy.milenter
Name: Grace Hopper
Number:
Area code:
Prefix:
Line number:
Email: grace.hopper@navy.mil
Telephone neighbor:
Test Case
New number creation tool
Enter name
Donald Knuthenter
Enter phone number
enter
Enter email
donald.knuth@artofprogramming.comenter
Name: Donald Knuth
Number:
Area code: Prefix:
Line number:
Email: donald.knuth@artofprogramming.com
Telephone neighbor:
Test Case
New number creation tool
Enter name
Linus Torvaldsenter
Enter phone number
enter
Enter email
linus.torvalds@kernel.orgenter
Name: Linus Torvalds
Number:
Area code:
Prefix:
Line number:
Email: linus.torvalds@kernel.org
Telephone neighbor:
Test Case
New number creation tool
Enter name
Tim BernersLeeenter
Enter phone number
enter
Enter email
tim.bernerslee@worldwideweb.netenter
Name: Tim BernersLee
Number:
Area code:
Prefix:
Line number:
Email: tim.bernerslee@worldwideweb.net
Telephone neighbor: public class Phone
protected String name;
protected long number;
public PhoneString name, long number
this.name name;
this.number number;
public String toString
return "I am a phone!";
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
