public class Gradesv2
{
public static void main(String[ ] args)
{
//local variables
int numTests = 0; //counts number of tests
int testgGrades = 0; //individual test grade
int totalPoints = 0; //total points for all test
double average = 0.0; //average grade
int test1 = 95;
int test2 = 73;
int test3 = 91;
int test4 = 82;
System.out.println("");
System.out.println("Test # 1 Test Grade: " + test1 + " Total Points: " + test1 + " = " + totalPoints + "Average Score: " + test1 = +);
}//end of main method
}//end of class
[TMMG] 0 Newbie Poster
rproffitt 2,662 "Nothing to see here." Moderator
Reverend Jim 4,968 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
rproffitt 2,662 "Nothing to see here." Moderator
John_165 44 Junior Poster
rproffitt commented: When I first read this, I didn't see that tag. Anyhow, will re-read. +15
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.