answersLogoWhite

0


Best Answer

import javax.swing.JOptionPane;

public class StudentGradesWeek7

{

public static void main(String[] args)

{

String input = JOptionPane.showInputDialog ("Enter Student's grade in %");

int inputMark = Integer.parseInt (input);

char g = getGrade (inputMark);

JOptionPane.showInputDialog(null, "Student's grade is " + g);

}

private static char getGrade (int mark)

{

char grade;

if (mark >=70)

grade = 'A';

else if (mark >=60)

grade = 'B';

return;

}

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a Java program to assign the letter grades to students based on their average scores?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Even number progamm in c language?

swap(&grades[num],&grades[num+1]); what it make in a program?


How do we write a program to assist a teacher in calculating students' grades in Turbo C?

#include <stdio.h> #include <conio.h> void main() { char color; clrscr(); printf("Enter character (R/G/B): "); color= getchar(); switch (color) { case 'R': printf ("Red") ; break; case 'G': printf("Green"); break; case 'B': printf("Blue"); break; } getch(); }


What are the average grades in IGCSE subjects you must get in order to have a scholar ship in Harvard?

i don't know geez just do some research u lazy fatty


Importance of computer laboratory to students?

A teacher can use a computer in a classroom to input grades, and calculate students averages. They can also be used along with a projector to show things up on a screen in the room, and they can be used to find interesting assignments on the internet.


In C Programming Language Can someone write a program that will interact with the user by name and allow for the recording of grades for three classes Tech History and Math?

More info;You will write a program that will interact with the user by name and allow for the recording of grades for three classes: Tech, History, and Math. The program will allow the user to determine how many assignments to enter in each class, the name of each assignment, the total value of each assignment, and the users score on each assignment. The program will will write the scores to a file and have the ability to:Tell the user the high and low score in each class along with the assignment nameRepeat entries back to user by assignment name and score to ensure accuracyTell the user their current grade in each classTell the user their current gpa based on the overall percentage of each class

Related questions

What are the average grades of students in UCLA?

A+


Which software application can best help teachers determine their students' average grades?

A grading software such as PowerSchool or Infinite Campus would be ideal for teachers to calculate students' average grades efficiently. These platforms allow teachers to input grades, track progress, and generate reports to determine the average grades of their students.


What is censusschools?

Census in Schools program was developed for students in grades kindergarten to 12 grade


What are the advantages of having Powerschool Login?

The PowerSchool program offered by the Pearson company is a program that offers a teacher, his students, and his students parents to view the students attendance and grades and share them together. A login is important to have so that it is kept private.


Where does the apostrophe go in Ten students grades?

Ten students' grades were below passing.Ten students' grades had improved.Here grades is a plural common noun and needs no apostrophe.Students is a plural common noun. Students possess grades; therefore it needs an apostrophe.Ten students' coats were still in the closet.Ten students' voices were louder than the others.


What is the Read 180 program meant to accomplish?

The Read 180 program is a reading program to improve the reading and writing skills of students in grades 4 through 12. The program uses software and an iPad to accomplish this.


What software application can best help teachers determine their students average grades?

A spreadsheet, such as Excel or Lotus 123.


What software application can best help teachers determine students average grades?

A spreadsheet, such as Excel or Lotus 123.


How do you get the percentage of the average?

Percentage of the average that does what. If you are talking grades, the Number of people scoring the average score divided by the total number of people in the class x 100 = % of students scoring the average.


Does tardiness make students get low grades?

Tardiness does not necessarily make students get low grades, but it certainly does not help their grades, especially if they are tardy repeatedly.


Why was Jupiter grades made?

Jupiter grades was made for teachers to calculate students grades.


What grades does an overseas student need to attend UConn school of pharmacy?

Uconn has stopped accepting transfer students into their pharmacy program. You must go to uconn starting as a freshman to enter their program.