일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- html multimedia
- #성적관리프로그램
- #bubbleSort
- relative path
- hyperledger transaction
- html code
- git flow
- 하이퍼레저패브릭
- mac terminal command
- docker example
- #다차원포인터
- #JAVASCRIPT
- html charset
- #3차원배열
- html5 new tag
- html object
- #2차원배열
- html id
- border-box
- #C++ 연산자함수오버로딩
- #C++ has~a
- 토큰경제
- #binary
- #android activity
- #CallByAddress
- html video
- #1차원배열
- html plug-in
- html youtube
- #자바상속#자바이즈어#is~a
- Today
- Total
목록#성적관리프로그램 (2)
A sentimental robot
import java.util.Scanner;public class Hello2 { int[] score; float avg; String name; public Hello2() { // 생성자에서 필드 초기화 score = new int[4]; } public void setName(String a) { name = a; } public void setKor(int k) { score[0] = k; } public void setEng(int e) { score[1] = e; } public void setMat(int m) { score[2] = m; } public String getName() { return name; } public int getKor() { return score[0]; } ..
import java.util.Scanner;public class Hello2 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.print("Input the number of students:"); int student; student=sc.nextInt(); int [][]score=new int[student][4]; float []avg=new float[student]; String []name=new String[student]; String []sconame={"Name","kor","eng","mat","total","avg"}; for(int i=0; i