ermmm,
i want like these :
in the code, assign arrays named studName, test1, test2, totalMarks , status, and Display.
then, calculate the test1 with weightage 15% and test 2 with weightage ...
Type: Posts; User: muhammad93
ermmm,
i want like these :
in the code, assign arrays named studName, test1, test2, totalMarks , status, and Display.
then, calculate the test1 with weightage 15% and test 2 with weightage ...
tmarks is an array that will hold value total marks.
//calculate total marks
public static void CalculateMarks(int t1[], int t2[], int tmarks[])
{
for (int i=0;i<5;i++)
{
tmarks = (t1[i]*0.15) + (t2[i]*25/100);
}
}
here is my code :
import java.io.*;
public class assingmnt1
{
//main program
public static void main (String[]args)