성적 처리 문제 실습 3 - 객체 /생성자 get/set 평균 학점
[문제] 성적처리- 총점, 평균, 학점을 구하시오- 평균은 소수이하 2째자리까지 처리한다. 클래스명 : SungJuk필드 : name, kor, eng, math, tot, avg, grade메소드 : setData(이름, 국어, 영어, 수학) calc() - 총점, 평균, 학점 계산 getName() getKor() getEng() getMath() getTot() getAvg() getGrade() 클래스명 : SungJukMain [실행결과]----------------------------------------------------이름 국어 영어 수학 총점 평균 ..
2024. 7. 19.