عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 18-10-2011, 01:07 AM   #3

deathpain

devkemo

الصورة الرمزية deathpain

 
تاريخ التسجيل: Dec 2010
كلية: كلية الحاسبات وتقنية المعلومات
التخصص: Computer Science
نوع الدراسة: إنتظام
المستوى: الثامن
البلد: جــــدة
الجنس: ذكر
المشاركات: 770
افتراضي رد: مساعدة في سؤال cpcs202

هذا الحل أخي الكريم ،،
المسألة سهلة
كود PHP:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gratuity;
import java.util.*;
/
 *
 * @
author deathpa1N
 
*/
public class 
Gratuity {

    /
     * @
param args the command line arguments
     
*/
    public static 
void main(String[] args) {
       
double gratuityrate;
       
double gratuity;
       
double subtotal;
       
double total;
       
Scanner input=new Scanner(System.in);
       
Scanner input2=new Scanner(System.in);
       
System.out.print("Enter Gratuity Rate:\t");
       
gratuityrate input.nextDouble();
       
System.out.print("Enter Subtotal:\t");
       
subtotal input2.nextDouble();
       
gratuity = (subtotal/100)*gratuityrate;
       
total gratuity+subtotal;
       
System.out.print("The gratuity is "+gratuity+" and the total is "+total);
     
          
    }

 

توقيع deathpain  

 



في حال وجود أي استفسار أو سؤال حول الجافا CPCS202 الرجاء كتابة استفسارك مباشرة في موضوعي هنا:

تطبيق - معدلي الجامعي - التطبيق الأسهل لحساب المعدل الجامعي
http://skaau.com/vb/showthread.php?t=745520

 

deathpain غير متواجد حالياً   رد مع اقتباس