일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
29 | 30 | 31 |
- html object
- html plug-in
- #1차원배열
- #JAVASCRIPT
- #다차원포인터
- html multimedia
- #2차원배열
- #C++ has~a
- mac terminal command
- html id
- docker example
- #binary
- #자바상속#자바이즈어#is~a
- border-box
- 하이퍼레저패브릭
- #성적관리프로그램
- relative path
- html charset
- hyperledger transaction
- html code
- html video
- #android activity
- #CallByAddress
- #C++ 연산자함수오버로딩
- git flow
- html5 new tag
- #3차원배열
- html youtube
- #bubbleSort
- 토큰경제
- 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