Write a program that reads two words representing passwords


1. Write a program that reads two words representing passwords from the Java console and outputs the number of characters in the smaller of the two. For example, if the two words are open and sesame, then the output should be 4, the length of the shorter word, open.

2. Write a program that reads a name that represents a domain name from the Java console. Your program should then concatenate that name with www. and .com in order to form an Internet domain name and output the result. For instance, if the name entered by the user is yahoo, then the output will be www.yahoo.com.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a program that reads two words representing passwords
Reference No:- TGS01602766

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)