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