Posted by Big Daddy on Friday, February 24, 2012 at 9:55pm.
Please post also your question, for example, what you have done, where is your difficulty, or what kind of help you need.
static final NUMBEROFSTUDENTS = 5;
public static void main(String args)
int test1, test2, test3, test4, test5; // variables to hold the values for the five test scores
double courseAvg = 0; // the average course score for each student
double classAvg = 0; // the average score for the whole class
String name; // variable to hold student name
char grade; // the grade scale 'A', 'B', 'C', 'D', 'F'
// add code here for the input(Assign7Input.txt) and output files (Assign7Output.txt)
// print the heading to the output text file.
System.out.println ("Student Test1 Test2 Test3 Test4 Test5 Average Grade");
for (int i = 0; i < NUMBEROFSTUDENTS; i++)
// add your code here to read the input and do the calculation
(grade <= 59)grade = F;
if (grade >= 60 && grade <=69)grade = D;
if (grade >=70 && grade <=79)grade = C;
if (grade >= 80 && grade <=89)grade = B;
if (grade >= 90 && grade <=100)grade = A;
// the following are from method call which to be completed later
courseAve = calculateAverage (test1, test2, test3, test4, test5);
grade = calculateGrade(courseAvg);
// add your code to calculate and output the class average
// Method 1: calculate the average grade from the five test scores
...... calculateAverage( ...... )
// Method 2: calculate the grade scale 'A', 'B', 'C', 'D', 'F'
java - Write a java application that finds the smallest of several integers. ...
Java - Can anybody help me figure how to post a Java file to as an attachment. I...
Programming Problems - Include names of students from the user, terminated by ...
JAVA PROGRAMMING - "POWERS" Compute the power of a number given the ...
JAVA - simple java program to retrive data from oracle database between specific...
Java - I am trying to write an algorithm for my JAVA class and am having some ...
programming - write a c program that accepts a name as first name last name but ...
Programming and algorithms - For each of the following problems, use the top-...
algebra 2 - The average (arithmetic mean) of the test scores of class of a class...
Java - I need to write a Java program using an input file with the below data. I...
For Further Reading