here are some hints to write a program, if you can, please write the program using them,
Write a program to find the sum of subjects, average, and which grade they belong.
inputs(Student name, grade, 6 subjects marks)
outputs(Student name, grade, total, average, and grade)
hints: avg>90(outstanding)
avg>80(Excellent)
avg>70(Very Good)
avg>60(Good)
avg>50(Average)
avg<50(Needs improvement)
Answers
ANSWER:
1.good
2.average
Explanation:
Answer:
Python
name = input("Enter Name ")
grade = int(input("Enter grade "))
grammar = int(input("Enter marks in Grammar "))
maths = int(input("Enter marks in Maths "))
biology = int(input("Enter marks in Biology "))
physics = int(input("Enter marks in Physics "))
chemistry = int(input("Enter marks in Chemistry "))
computer = int(input("Enter marks in Computer Science "))
average = (grammar + maths + biology + physics + chemistry + computer) / 6
performance_grade = "Not provided"
if average>90:
performance_grade = "Outstanding"
elif average>80:
performance_grade = "Excellent"
elif average>70:
performance_grade = "Very Good"
elif average>60:
performance_grade = "Good"
else:
performance_grade = "Needs Improvement"
print("Name: " + name + " Grade: " + str(grade) + " Average: " + str(average) + " Performance: " + performance_grade)
Java
package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter name ");
String name = scanner.nextLine();
System.out.println("Enter grade ");
int grade = scanner.nextInt();
System.out.println("Enter marks in Grammar ");
int grammar = scanner.nextInt();
System.out.println("Enter marks in Maths ");
int maths = scanner.nextInt();
System.out.println("Enter marks in Biology ");
int biology = scanner.nextInt();
System.out.println("Enter marks in Physics ");
int physics = scanner.nextInt();
System.out.println("Enter marks in Chemistry ");
int chemistry = scanner.nextInt();
System.out.println("Enter marks in Computer Science ");
int computer = scanner.nextInt();
int average = (grammar + maths + biology + physics + chemistry + computer) / 6;
String performanceGrade = "Not Provided";
if(average>90) {
performanceGrade = "Outstanding";
} else if(average>80) {
performanceGrade = "Excellent";
} else if(average>70) {
performanceGrade = "Very Good";
} else if(average>60) {
performanceGrade = "Good";
} else {
performanceGrade = "Needs Improvement";
}
System.out.println("Name: " + name + " Grade: " + grade + " Average: " + average + " Performance Grade: " + performanceGrade);
}
}
These are the only programming languages I know, sorry if you were looking for something else...