Question: 1. Write the code to prompt the User for website name and a domain name. Display the website name, then add www. to the beginning

1. Write the code to prompt the User for website name and a domain name. Display the website name, then add www. to the beginning of it and . to the end of it, where is the domain name they entered (e.g. com, edu, net, etc.) . Display the resultant String. Write the code to prompt the User for website name and a domain name. Display the website name, then add www. to the beginning of it and . to the end of it, where is the domain name they entered (e.g. com, edu, net, etc.) . If the user included the . (dot) in the , do not add an additional dot. If they did not include the dot, then add the dot to the resultant String. Display the resultant String.

2. Write the code to prompt the User for a double less than MAX. Display the double and the square of the double. Keep display each successive square until the value exceeds MAX. Start MAX to 10.0; Test. Set MAX to 1000000.5. Test.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!