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