Hello everyone its My first time to join a forum all about Java :p
The reson why I joined this forum is that im studing Java at college ... so I would love if you just help me guys with this java language I think its hard becuse its the first time i learn a computer language pluss my english language is not that much sorry becuse I learned it.
Last week the techer gave us a homework and I tried to do it but its kinda hard I know that I should do it by my self im tring I promise so if anyone can help me with these questions ill be more then happy ...
thank you so much ...
Q1.Write a program that reads data for an employee and prints the name and salary of the employee. The data read is :
b. Number of hours worked.
c. Hourly wage.
Modify the program to read and print data for three employees.
Q2.Write a program that reads the full name of a student; and then prints it in the form: last, first middle initial.
Input = Ali Hamad Al-Harbi
Output = Al-Harbi, Ali H.
Q3.Write a program that reads a string of 9 characters; and then forms and prints another string composed of alternating characters of the first string. Ex welecomes wlcms
Q4.write a program that reads a string composed of 4 alphabetic characters; the program forms another string comosed of alphabetic characters following those in the first string. Print the resulting string.
Ex: input: dlpw output: emqx
Q5.Write a java program that reads two integers into the variables a and b then swaps the values of a and b.
Q6.Write a java program that reads five integers and five doubles. The program prints their total average.
Q7.Write a java program that reads a string and two integer variables a and b then prints the string, square of a and the cube of b.
vskinner 060000VKGS1 Post
Re: Hi guys PLZ i need your help2010-03-26T14:13:31ZThis is the accepted answer. This is the accepted answer.
- Lora_90 2700031TY8
Have you tried the New to Java Programming section of the developerWorks web site?
Hope this helps!
m_muhammadali 270002HGHA9 Posts
Re: Hi guys PLZ i need your help2010-03-31T14:58:15ZThis is the accepted answer. This is the accepted answer.Start with your assignment and if you have any specific questions, or specific problems, ask here.
Also you can start from http://java.sun.com/docs/books/tutorial/