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
Recommended Answers
Jump to PostLet's start at line 0. Because I don't know all languages I'm not going to make an assumption here so what programming language is this? And what line is giving the error?
It would also help if you posted in the appropriate forum.
Jump to PostThis is java code.
All 6 Replies
rproffitt
2,565
"Nothing to see here."
Moderator
Reverend Jim
4,686
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
rproffitt
2,565
"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.