โปรแกรมคำนวณค่าไฟฟ้า ( ค่าไฟ + FT+ค่าบริการ) - โปรแกรมคำนวณค่าไฟฟ้า ( ค่าไฟ + FT+ค่าบริการ) นิยาย โปรแกรมคำนวณค่าไฟฟ้า ( ค่าไฟ + FT+ค่าบริการ) : Dek-D.com - Writer

    โปรแกรมคำนวณค่าไฟฟ้า ( ค่าไฟ + FT+ค่าบริการ)

    ผู้เข้าชมรวม

    2,369

    ผู้เข้าชมเดือนนี้

    22

    ผู้เข้าชมรวม


    2.36K

    ความคิดเห็น


    0

    คนติดตาม


    1
    เรื่องสั้น
    อัปเดตล่าสุด :  4 พ.ย. 59 / 12:03 น.


    ข้อมูลเบื้องต้นของเรื่องนี้
    การเขียนโปรแกรมเพื่อคำนวณค่าไฟฟ้า  
    โดยที่โจทย์กำหนดให้หาค่า
    FT
    ค่าบริการ
    ค่าไฟฟ้า
    **** ใช้ภาษา Java ในการเขียนนะครับ****


    ตั้งค่าการอ่าน

    ค่าเริ่มต้น

    • เลื่อนอัตโนมัติ

      import java.util.Scanner;
      public class AAA 
      {
      public static void main(String[] args)
      {
      Double A;
      Scanner B = new Scanner(System.in);
      System.out.print("Enter Electrical: ");
      A =B.nextDouble();


      if(A>=501)
      {System.out.println("FT : " +A*1.5 + " Bath");
      System.out.println("service charge : "+ (A*10)/100 + " Bath");
      System.out.println( "Electrical Bills : "+ ((A*12)+(A*1.5)+((A*10)/100)) +" Bath");}
      else if (A>=201)
      {System.out.println("FT : " +A*1.5 + " Bath");
      System.out.println("service charge : "+ ((A*10)/100) + " Bath");
      System.out.println( "Electrical Bills : "+ ((A*9)+(A*1.5)+((A*10)/100)) +" Bath");}
      else if (A>=101)
      {System.out.println("FT : " +A*1.5 + " Bath");
      System.out.println("service charge : "+ ((A*10)/100) + " Bath");
      System.out.println( "Electrical Bills : "+ ((A*6.5)+(A*1.5)+((A*10)/100)) +" Bath");}
      else if (A>=61)
      {System.out.println("FT : " +A*1.5 + " Bath");
      System.out.println("service charge : "+ ((A*10)/100) + " Bath");
      System.out.println( "Electrical Bills : "+ ((A*4.5)+(A*1.5)+((A*10)/100)) +" Bath");}
      else 
      {System.out.println( "Electrical Bills : Free Electrical Bills" );}


      }
      }

      นิยายที่ผู้อ่านนิยมอ่านต่อ ดูทั้งหมด

      loading
      กำลังโหลด...

      คำนิยม Top

      ยังไม่มีคำนิยมของเรื่องนี้

      คำนิยมล่าสุด

      ยังไม่มีคำนิยมของเรื่องนี้

      ความคิดเห็น

      ×