الحالة
موضوع مغلق

mohhassona11

موقوف
التسجيل
7/3/09
المشاركات
4
الإعجابات
0
#1
الرجاء من يستطيع المساعدة أن لا يبخل علينا في حل الأسئلة التالية في الجافا وله
جزيل الشكر وتالتقدير
1-Develop a Java application that will determine the gross pay for each of three employees. The company pays straight time for the first 40 hours worked by each employee and time and a half for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee and should determine and display the employee's gross pay. Use class Scanner to input the data.
---------------------------------------------------


2-A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product 3, $9.98; product 4, $4.49 and product 5, $6.87. Write an application that reads a series of pairs of numbers as follows:

- Product number - Quantity sold

Your program should use a switch statement to determine the retail price for each product. It should calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the program should stop looping and display the final results.
---------------------------------------------

3. Use a one-dimensional array to solve the following problem: Write an application that inputs five numbers, each of which is between 10 and 100, inclusive. As each number is read, display it only if it is not a duplicate of a number already read. Provide for the "worst case," in which all five numbers are different. Use the smallest possible array to solve this problem. Display the complete set of unique values input after the user inputs each new value.

[/size]



4. Write a program to read two matrixes of 4 rows & the following

columns :

§the first row contains 3 integers

§ the second row contains 4 integers

§ the third row contains 2 integers

§ the fourth row contains 5 integers

and use loop to find the sum of each row
 

mr sameh

عضوية الشرف
التسجيل
8/9/06
المشاركات
1,689
الإعجابات
706
الإقامة
بوابة داماس
#2
عنوان مخالف
ينقل للأرشيف
برجاء مراجعه قوانين منتدى البرمجة قبل كتابة اى مشاركة


 
الحالة
موضوع مغلق

أعلى