The problem occurs in the first if statement, I'm getting an error reading"Type mismatch: cannot convert from double to String", I really don't know what's happening here any help would be appreciated. import java.util.Scanner;
public class MarkmCalculator {
public static double[] modWeights = { 50, 40, 100, 50, 20, 35 };
public static String[] moduleResults = new String[6];
public static int[] moduleMarks = new int [6];
public static int[] courseworkMark = new int [6];
public static int[] examMark = new int [6];
public static void computemarks(){
double modMark = 0.0;
for (int i = 0; i < 6; i++) {
if ((examMark[i] > 35) && (courseworkMark [i] > 35))
{
moduleResults[i] = (courseworkMark[i]) * (modWeights[i]) + (examMark[6 + i] * (100 - modWeights[i]) / 100)
}
else {
moduleResults[i] = (((courseworkMark[i] * modWeights[i]) + (examMark[6 + i] * (100 - modWeights[i]))) / 100)
}
if { (moduleMarks < 35)
moduleMarks = modMark;
else {
modMark = moduleMarks;
}
if (moduleMark > 40){
moduleMark = "Pass";
}
else if ((moduleMark) <= 35 && (moduleMark) < 40){
moduleMark = "Compensatable Pass";
}
else{
moduleMark = "Fail"
}
}
}
public static void computeResult(){
for (int i = 0; i < 6; i++)
if
}
public static void main(String[] args) {
computemarks();
}
}