Reference no: EM131803722
Please tell me whats wrong with my code
import java.util.Scanner; //will allow you to read from the screen
public class GradesArray {
public static void main (String[]args) {
String[] nameArray = {"Jon", "Rajesh", "Elizabeth", "Julio", "Chang"};
String[] gradeArray = new String[5]
double[] score1Array = {72, 60. 45, 70, 89};
double[] score2Array = {50, 70, 60, 85. 90};
double[] score3Array = {70, 80, 90, 100, 100};
double[] averageArray = new double[5];
for(int i=0; i<4; i++){ //why 4?
averageArray[i] = (score1Array[i] + score2Array[i] + score3Array[i])/3;
if (averageArray[i] > 90.0){
gradeArray[i] = "A";
} else if (averageArray[i] > 80.0){
gradeArray[i] = "B";
} else if (averageArray[i] > 70.0){
gradeArray[i] = "C";
} else if (averageArray[i] > 60){
gradeArray[i] = "D";
} else{
gradeArray[i] = "F";
}
System.out.println("Name is: " + nameArray[i] + " Grade is: " + gradeArray[i] + " Average is: " + nameArray[i]);
}
}
}
//end main method
Paragraph describe the importance of vba
: What is VBA? Why do we need VBA, in two lengthy paragraph describe the importance of VBA
|
Explaining the different roles in the buying process
: Family members play many different roles in the buying process: initiator, influencer, decision maker, purchaser, and consumer.
|
Write about recruitment and selection
: Write about Recruitment and Selection - Introduction should talk about the subject and different topics that come under it. Word count shouldn't exceed 100-120
|
Which three do you think you will have difficulty with
: This Question is from Student Preperation for Distant Leaning. Which characteristics would you rank as the top three being most important and why?
|
Please tell me whats wrong with my code
: Please tell me whats wrong with my code
|
What challenges are shaping today global industry
: Over the course of the week, they discussed where we've been, where we're going and what trends, challenges and opportunities are shaping today global industry
|
What is the difference between an optical mouse
: What is the difference between an optical mouse, wireless mouse, and an air mouse?
|
Explain the mission of us government accountability office
: Why is an audit considered to be the final phase of a budgetary process? Explain the mission of the U.S. Government Accountability Office.
|
How long does each type of customer spend in the store
: How long does each type of customer spend in the store? How long does the average customer spend in this store?
|