![[Python] 조건문 연습1](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FueQrr%2FbtsHgfvKwjz%2FRpFr1dyMD3YFvJIgJqRGPK%2Fimg.png)
국어, 영어, 수학, 과학, 국사 점수를 입력하면 총점을 비롯한 각종 데이터가 출력되는 프로그램 - 과목별 점수를 입력하면 총점, 평균, 편차를 출력 평균은 다음과 같다. (국어: 85, 영어: 82, 수학: 89, 과학: 75, 국사: 94) - 각종 편차 데이터는 막대그래프로 시각화 avgKor = 85; avgEng = 82; avgMath = 89; avgSciece = 75; avgHistory = 94sum = avgKor + avgEng + avgMath + avgSciece + avgHistoryavg = sum / 5kor = int(input('국어: '))eng = int(input('영어: '))math = int(input('수학: ')..
국어, 영어, 수학 점수를 입력받아서 합계, 평균, 평가를 출력 평가 > 평균이 90 이상이면 A 평균이 80 이상이면 B 평균이 70 이상이면 C 나머지는 D 입력값이 0보다 작거나 100보다 크면 '잘못된 점수를 입니다.' 출력 //Scanner 클래스를 사용하기 위해서 import java.util.Scanner; public class ScanIf { public static void main(String[] args) { //스캔 시작 Scanner sc = new Scanner(System.in); // 점수 입력 및 잘못된 점수 System.out.print("국어 점수를 입력해 주세요> "); int kor = sc.nextInt(); if (kor 100) { Sy..
국어점수, 영어점수, 수학점수 변수를 선언하고 값을 입력하여 세 점수의 합을 출력 public class SumInt { public static void main(String[] args) { int kor = 98; int eng = 67; int math = 62; System.out.println(kor+eng+math); // 문자가 먼저 오면 문자로 인식해버려서 () 필요 System.out.println("합계 : " + (kor+eng+math)); } } public class SumInt { public static void main(String[] args) { int kor = 98; int eng = 67; int math = 62; int sum = kor + eng + math..