Guest User

Untitled

a guest
Oct 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. public class MainStudents{
  2. public static void main(String[] args) {
  3. Students onuki = new Students();
  4. int onukiSum = onuki.sum(82,70);
  5. System.out.println("小貫の合計点は" + onukiSum);
  6.  
  7. Students suzuki = new Students();
  8. int suzukiSum = suzuki.sum(85,74);
  9. System.out.println("鈴木の合計点は" + suzukiSum);
  10.  
  11. Students yamada = new Students();
  12. int yamadaSum = yamada.sum(74,88);
  13. System.out.println("山田の合計点は" + yamadaSum);
  14.  
  15. Students gotou = new Students();
  16. int gotouSum = gotou.sum(90,74);
  17. System.out.println("後藤の合計点は" + yamadaSum);
  18.  
  19. Students ikeda = new Students();
  20. int ikedaSum = ikeda.sum(70,82);
  21. System.out.println("池田の合計点は" + ikedaSum);
  22.  
  23. System.out.println("生徒の数は" + Students.count + "です。");
  24.  
  25. System.out.println("国語の平均点は" + Students.jaavr / Students.count + "です");
  26. System.out.println("英語の平均点は" + Students.enavr / Students.count + "です");
  27.  
  28.  
  29. }
  30. }
Add Comment
Please, Sign In to add comment