عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 19-11-2011, 06:23 PM
الصورة الرمزية ABADI10

ABADI10 ABADI10 غير متواجد حالياً

يًـآرب εïз تًـوْفيقكـ

 
تاريخ التسجيل: Sep 2010
التخصص: (: Computer Science
نوع الدراسة: إنتظام
المستوى: الرابع
الجنس: ذكر
المشاركات: 311
افتراضي عندي كم سؤال في البرمجة ممكن مساعدة؟؟


Write a program which asks the user to enter their marital status, corresponding to a letter input. married = 'm', single = 's', divorced = 'd' , widowed = 'w'
When the user enters the letter, their corresponding status should be printed to the screen. If the user enters anything other than m,s,d, or w the message "Invalid Code" should be printed.








ــــــــــــــــــــــــــــــــــــــــــــــــــ ــــ

1. Employees at MyJava Lo-Fat Burgers earn the basic hourly wage of $7.25. They will receive time-and-a-half of their basic rate for overtime hours. In addition, they will receive a commission on the sales they generate while tending the counter. The commission is based on the following formula:
[/LEFT]
Sales Values
Commission
$1.00 to $99.99
5 % of total sales
$100.00 to $299.99
10 % of total sales
>= $300.00
15 % of total sales



Write an application that inputs the number of hours worked and the total sales and computes the wage.





ــــــــــــــــــــــــــــــــــــــــــــــــــ ـــ

Your history instructor gives three tests worth 50 points each. You can drop one of the first two grades. Your final grade is the sum of the best of the first two grades and the third grade. Given three test grades, write a program that calculates the final letter grade using the following cut-off points. The output should list all three test grades, state what test was dropped and the final letter grade

>= 90 A

< 90, >= 80 B

< 80, >= 70 C

< 70, >= 60 D

< 60 F

For example, if your input is 45 15 25 (you do not need to format the input), the output of your program should be very similar to:



First test: 45

Second test: 15

Third test: 25

After dropping test 2, the final grade is 70. The final letter grade is C.




ساعدوني في حلها في اقرب وقت ممكن بليز

 


توقيع ABADI10  




 


التعديل الأخير تم بواسطة ABADI10 ; 19-11-2011 الساعة 06:33 PM.
رد مع اقتباس