Search:

Type: Posts; User: muhammad93

Search: Search took 0.24 seconds.

  1. Replies
    8
    Views
    325

    [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
    325

    [SOLVED] Re: incompatible types

    tmarks is an array that will hold value total marks.
  3. Replies
    8
    Views
    325

    [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
    325

    [SOLVED] incompatible types

    here is my code :



    import java.io.*;

    public class assingmnt1
    {
    //main program
    public static void main (String[]args)
  5. Replies
    2
    Views
    321

    [SOLVED] students marks coding

    i want to calculate 5 student marks given marks for test 1 & test 2. the weightage for test1 is 15% and test2 is 25%.
    the coding will display the following status :



    Total Marks Status
    0 20...
Results 1 to 5 of 5