Hey can someone please help me with this. If somebody can help me with the code of these it would be greatly appreciated.
Here is my assignment problems:
-1. Write a program that asks the user for three names. It then prints the names out
in order according to the following rule. The name with the most amount of
characters comes first, with the least comes last, and the remaining one comes
second.
-2. Write a program that asks the user for his first and last name, all on one line. The
program then displays the users last name, followed by his/her first name.
-3. Write a program that randomly selects a letter from the alphabet. The program
then checks to see if the letter is a vowel or a consonant.
-4. Write a program that asks the user for three words. The program then displays
the words in alphabetical order.
-5. Write an application that creates and prints a random phone number of the form
XXX-XXX-XXXX. Include the dashes in the output. Do not let the three digits
contain an 8 or a 9.
Thanks.
Here is my assignment problems:
-1. Write a program that asks the user for three names. It then prints the names out
in order according to the following rule. The name with the most amount of
characters comes first, with the least comes last, and the remaining one comes
second.
-2. Write a program that asks the user for his first and last name, all on one line. The
program then displays the users last name, followed by his/her first name.
-3. Write a program that randomly selects a letter from the alphabet. The program
then checks to see if the letter is a vowel or a consonant.
-4. Write a program that asks the user for three words. The program then displays
the words in alphabetical order.
-5. Write an application that creates and prints a random phone number of the form
XXX-XXX-XXXX. Include the dashes in the output. Do not let the three digits
contain an 8 or a 9.
Thanks.
Comment