Search:

Type: Posts; User: muhammad93

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    1,289

    [SOLVED] Re: incompatible types

    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 ...
  2. Replies
    8
    Views
    1,289

    [SOLVED] Re: incompatible types

    tmarks is an array that will hold value total marks.
  3. Replies
    8
    Views
    1,289

    [SOLVED] Re: incompatible types

    //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);
    }
    }
  4. Replies
    8
    Views
    1,289

    [SOLVED] incompatible types

    here is my code :



    import java.io.*;

    public class assingmnt1
    {
    //main program
    public static void main (String[]args)
Results 1 to 4 of 4