answersLogoWhite

0

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

14y ago

What else can I help you with?

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


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


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.

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


How does the exam curve affect the final grades of students in the class?

The exam curve can positively impact students' final grades by adjusting scores to a higher level, potentially raising grades for those who performed below average. Conversely, it can also negatively impact students by lowering scores for those who performed above average. Ultimately, the curve can influence the distribution of final grades in the class.


What percent of students get good grades?

The percentage of students who get good grades can vary greatly depending on the criteria used to define "good grades." However, on average, around 60-70% of students may be considered to have good grades.


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.


How does a curve work in grading and how does it impact students' final grades?

A curve in grading adjusts students' scores based on the overall performance of the class. It can raise or lower grades to align with a predetermined average or distribution. This can impact students' final grades by potentially boosting lower scores or lowering higher scores, depending on how the curve is applied.


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.