473,394 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

(HOMEWORK) Programming I (I am So Lost)

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.
Mar 12 '08 #1
2 1294
Ganon11
3,652 Expert 2GB
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

Then when you are ready post a new question in this thread.

MODERATOR
Mar 12 '08 #2
BigDaddyLH
1,216 Expert 1GB
Hints:
  1. For question involving string, consult the API for string: java.lang.String
  2. For questions involving randomness, consult the API for Random: java.util.Random
Mar 12 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

31
by: Fred Astair | last post by:
I used this site for a c++ homework assignment that my teacher left me no clue on how to do it. http://www.betterteachers.com. Check it out. Fred
3
by: az | last post by:
Can anyone help me to answer the following questions? Thanks a lot! 1) Given the following code snippet, what does the function DoesWhat() do? And what, if any, assumptions are made about the...
42
by: Kevin Spencer | last post by:
Is it just me, or am I really observing a trend away from analysis and probem-solving amongst programmers? Let me be more specific: It seems that every day, in greater numbers, people are coming...
19
by: JoeC | last post by:
I have seen many books that teack coding for C++. What are ways to improve my techniques for writing larger programs. I have written many demo programs learning some aspects of code wether it be...
3
by: luke.yolanda | last post by:
Hi everybody, Here is a problem about socket programming, please help me to solve it. thanx!! ************************************************************ Implement a server-side program...
6
by: Lost Student | last post by:
Hello guys Any help that you can offer would be greatly appreciated. I am nearing the end of a C++ class and am so lost. The following is my assignment and what I have so far. Please help ...
11
by: spawn | last post by:
but I've been struggling with this for far too long and I'm about to start beating my head against the wall. My assignment seemed simple: create a program that will cacluate the running total of...
45
by: Master Programmer | last post by:
- Constant language / system changes - Dropping of the VB language - Security configuation minefields - Loss of old code base - Time consuming to learn (then it changes every 5 minutes) - Slow...
19
by: yltkhuu | last post by:
1. How does having a widely adopted C++ standard help game programmers? 2. What are the advantages ans disadvantages of employing the "using" directive? 3. Why might you define a new name for an...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.