zafienas / SSK3100-G14

0 stars 0 forks source link

2) Average of Test Scores #5

Closed zafienas closed 3 years ago

zafienas commented 3 years ago

Problem Definition:

Calculate the average of three test scores and display all of them.

Submission:

  1. Problem Analysis Chart (PAC)
  2. Input Process Output (IPO) chart
  3. Flowchart
  4. Java source code
  5. Screenshot of the output
ajim1619 commented 3 years ago
//Developer: Abdul Azim (203198)
//Task: Average Score

public class Score {
    public static void main (String [] args){
        System.out.println("Score 1 = " + 75);
        System.out.println("Score 2 = " + 80);
        System.out.println("Score 3 = " + 90);
        System.out.println("Total of Score = " + (75+80+90));
        System.out.println("Total of Score = " + (75+80+90)/3);
    }

}
![SS3](https://user-images.githubusercontent.com/25761177/96951523-3dcdd080-151f-11eb-9f2b-e410d98fc064.JPG)
DenzKaizer commented 3 years ago
//Developer : Danish
//Task : Calculate Average Score

public class Main {

    public static void main(String[] args) {
        System.out.println("Test Score 1 =" + 20);
        System.out.println("Test Score 2 =" + 40);
        System.out.println("Test Score 3 =" + 60);
        System.out.println("Total of Score =" + (20  + 40 + 60));
        System.out.println("Average of Score =" + (20 + 40 + 60)/3);

    }
}

image

ajim1619 commented 3 years ago
//Developer: Abdul Azim (203198)
//Task: Average Score

public class Score {
    public static void main (String [] args){
        System.out.println("Score 1 = " + 75);
        System.out.println("Score 2 = " + 80);
        System.out.println("Score 3 = " + 90);
        System.out.println("Total of Score = " + (75+80+90));
        System.out.println("Total of Score = " + (75+80+90)/3);
    }

}

SS3

arifqhuzairie commented 3 years ago
// developer: arif qhuzairie
// task: average of test score
public class mountain {
    public static void main ( String [] args ){
        System.out.println("score test 1 =" + (100));
        System.out.println("score test 2 =" + (75));
        System.out.println("score test 3 =" + (50));
        System.out.println("total score test  =" + (100+75+50));
        System.out.println("average score test  =" + (100+75+50)/3);

image

SorfinaNorly commented 3 years ago
//Developer : Norshasha Sorfina
//Task : Average of Test Scores
public class TestScores {
    public static void main (String[] args){
        System.out.println("Test Score 1 = " + 30);
        System.out.println("Test Score 2 = " + 30);
        System.out.println("Test Score 3 = " + 40);
        System.out.println("Total of Scores = " + ( 30+30+40));
        System.out.println("Average Scores = " + ( 30+30+40)/3);
    }
}

image

Masturah29 commented 3 years ago
//Developer : Masturah Binti Mokhtar
//Task : Averages of Test Scores

public class Test {
    public static void main (String [] args) {
        System.out.println("Test Score 1 =" + 60);
        System.out.println("Test Score 2 =" + 90);
        System.out.println("Test Score 3 =" + 70);
        System.out.println("Total of Score =" + (60  + 90 + 70));
        System.out.println("Average of Score =" + (60 + 90 + 70)/3);

image

shazmi10 commented 3 years ago
//Developer : Muhammad Shazmi Bin Mohd Basri
//Task : Calculate the average of three test scores

public class TestScore {
    public static void main (String [] args) {
        System.out.println("Test Score 1 =" + 84 );
        System.out.println("Test Score 2 =" + 72 );
        System.out.println("Test Score 3 =" + 94 );
        System.out.println("Total Score =" +(84+72+94));
        System.out.println("Average of Score =" + (84+72+94)/3);
    }
}

image

FtyRzd commented 3 years ago
//Developer : Siti Nurfatihah bt Rozaidi
//Task : Calculate average of test scores

public class LabQuestion1b {
    public static void main (String [] args){
        System.out.println(" Test Score 1 = " + 70);
        System.out.println(" Test Score 2 = " + 80);
        System.out.println(" Test Score 3 = " + 90);
        System.out.println(" Total of Score = " + (70 + 80 + 90));
        System.out.println(" Average of Score = " + (70+80+90) / 3);
    }
}

image

nadiahisml commented 3 years ago
//Developer : Nadiah Ismail
//Task : Calculate the average of three test scores
public class AverageTestScore {
    public static void main (String [] args){
        System.out.println(" Test Score 1 = 80 ");
        System.out.println(" Test Score 2 = 70 ");
        System.out.println(" Test Score 3 = 90 ");
        System.out.println(" Total of score = " + ( 70 + 80 + 90 ));
        System.out.println(" Average of score = " + ( 70 + 80 + 90 ) / 3 );
    }
}

image

ikmalhafiq commented 3 years ago
// Developer : Ikmal Hafiq
//Task : Total and Average score

public class testscore {
    public static void main (String [] args) {
        System.out.println("Test Score 1=" +87);
        System.out.println("Test Score 2=" +80);
        System.out.println("Test Score 3=" +85);
        System.out.println("Total of score=" + (87+80+85));
        System.out.println("Total of score=" + (87+80+85)/3);

Screenshot 2020-10-23 111147

Yazidrahman commented 3 years ago
//developer yazid rahman
// task 2 average score 
public class task2
{    public static void main (String [] args){
    System.out.println(" test score 1 = " +430);
    System.out.println(" test score 2 = " +780);
    System.out.println(" test score 3 = " +290);
    System.out.println("total of score = " + (430+780+290));
    System.out.println("average of score = " + (430+780+290)/3);
}
}

image

Farhanazul98 commented 3 years ago
//Developer: Farhana Zulkhairi
//Task

public class Test {
    public static void main (String [] args) {
        System.out.println("Test Score 1 = " + 78 );
        System.out.println("Test Score 2 = " + 86 );
        System.out.println("Test Score 3 = " + 90 );
        System.out.println("Total Score = " + (78 + 86 + 90));
        System.out.println("Average Score = " + ((78 + 86 + 90)/3) );

    }
}

image

batrisyaalwani commented 3 years ago
package com.company;
//Developer : Batrisya Alwani
//Task: Average score
public class Main {

    public static void main(String[] args) {
    // write your code here
        System.out.println("Test score 1 =" + 43);
        System.out.println("Test score 2 =" + 77);
        System.out.println("Test score 3 =" + 11);
        System.out.println(" Total of score +" + (43 + 77 + 11));
        System.out.println("Average of score =" + (43 + 77 + 11)/3);
    }
}

image

haswani203024 commented 3 years ago
//Developer : Nurul Haswani
//Task : Average

public class test {
    public static void main (String [] args){
        System.out.println("Test Score 1 ="  +70 );
        System.out.println("Test Score 2 =" +85 );
        System.out.println("Test Score 3 ="  +90 );
        System.out.println("Total of Score ="+(70 + 85 + 90) );
        System.out.println("Average of Score =" + (70 + 85 + 90)/3);
    }
}

image

fakhiraadriana commented 3 years ago
//Developer: Nur Fakhira Adriana
// Task    : Average of three test scores
public class Testscore {
    public static void main ( String [] args ) {
        System.out.println("score 1 = " + 95 );
        System.out.println("score 2 = " + 74 );
        System.out.println("score 3 = " + 53);
        System.out.println("Total of score = " + (95 + 74 + 53) );
        System.out.println("Average of score = " + (95 + 74 + 53) / 3);
    }
}

Screenshot (25)

NoorHusna202271 commented 3 years ago
//Diveloper: Noor Husna
//Task: Average of Score
public class activities2 {
    public static void main (String [] args){
        System.out.println("Score 1 = 1000");
        System.out.println("Score 2 = 2000");
        System.out.println("Score 3 = 3000");
        System.out.println("total score =" +(1000+2000+3000) );
        System.out.println("Average of score =" +(6000/3) );

    }
}

image

FarhanaYusri commented 3 years ago
// Developer : Farhana Yusri
// Task : Calculate Average Score
public class Main {

    public static void main(String[] args) {
        System.out.println("Test Score 1 =" + 30);
        System.out.println("Test Score 2 =" + 45);
        System.out.println("Test Score 3 =" + 70);
        System.out.println("Total of Score =" + (30  + 45 + 70));
        System.out.println("Average of Score =" + (30 + 45 + 70)/3);
    }
}

Capture 4

Amizayazid commented 3 years ago
public class Score {
    public static void main ( String [] args ){
        System.out.println(" Score 1 = " + 45 );
        System.out.println(" Score 2 = " + 69 );
        System.out.println(" Score 3 = " + 76 );
        System.out.println(" Total of Score = " + ( 45 + 69 + 76 ));
        System.out.println(" Total of Score = " + ( 45 + 69 + 76 )/3);
    }

}

image

WanNurfarah commented 3 years ago
// Developer : Wan Nurfarah
// Task : Calculate Average of Test Scores
public class Score {
    public static void main (String [] args) {
        System.out.println("Test Score 1 = " + 85);
        System.out.println("Test Score 2 = " + 80);
        System.out.println("Test Score 3 = " + 95);
        System.out.println("Total of Score = " + (85 + 80 + 95));
        System.out.println("Average of Score = " + ((85 + 80 + 95) / 3));
    }
}
Screenshot (3)
nrhzrhrsli commented 3 years ago


    //Developer : Hazirah Rosli
    //Task : Average Score

    public class Average {
        public static void main (String [] args) {
            System.out.println("Score test 1 = " + 55);
            System.out.println("Score test 2 = " + 30);
            System.out.println("Score test 3 = " + 12);
            System.out.println("Total score test = " + (55 + 30 + 12));
            System.out.println("Average of score test = " + (55 + 30 + 12 ) / 3);
        }
    }
nrhzrhrsli commented 3 years ago

    //Developer : Hazirah Rosli
    //Task : Average Score

    public class Average {
        public static void main (String [] args) {
            System.out.println("Score test 1 = " + 55);
            System.out.println("Score test 2 = " + 30);
            System.out.println("Score test 3 = " + 12);
            System.out.println("Total score test = " + (55 + 30 + 12));
            System.out.println("Average of score test = " + (55 + 30 + 12 ) / 3);
        }
    }

image

elyamaisarah commented 3 years ago
public class HelloWorld{
    public static void main(String [] args) {
        //Developer: Elya Maisarah (202487)
        //Task: Calculate average of three scores
        double score1 = 74.5;
        double score2 = 88.0;
        double score3 = 61.5;
        double totalscores = score1 + score2 + score3;
        double average = (score1 + score2 + score3)/3;
        System.out.println("Test Score 1: "+score1);
        System.out.println("Test Score 2: "+score2);
        System.out.println("Test Score 3: "+score3);
        System.out.println("Total of Scores : "+totalscores);
        System.out.println("Total Scores Average: "+average);

    }
}

Screenshot_3

Lyanaazwanis99 commented 3 years ago
//Developer:Lyana Azwanis
//Task:Average of score
public class Activity2 {
    public static void main (String [] args){
        System.out.println("Score 1 =" + 6);
        System.out.println("Score 2 =" + 21);
        System.out.println(" Score 3 =" + 24);
        System.out.println("Total score =" +6 +21 +24);
        System.out.println("Average score =" + (51/3));
    }
}

image

Syazimah06 commented 3 years ago
//Developer : Siti Nur Syazimah (203023)
//Task : Average Score

public class Score {
    public static void main (String [] args) {
        System.out.println("Score 1 =" + 85);
        System.out.println("Score 2 =" + 65);
        System.out.println("Score 3 =" + 55);
        System.out.println("Total of Score = " + (85+65+55));
        System.out.println("Average =" + (85+65+55/3));
    }
}

Score

NurHanisHaziqah commented 3 years ago
//Developer: Nur Hanis Haziqah Binti Hisham Haizad
//Task: Calculate average score
public class Test {
    public static void main (String [] args){
        double score1 = 70;
        double score2 = 50;
        double score3 = 30;
        double totalscore = score1 + score2 + score3;
        double averagescore = (( score1 + score2 + score3)/3);
        System.out.println( " Test score 1 = " + score1);
        System.out.println( " Test score 2 = " + score2);
        System.out.println( " Test score 3 = " + score3);
        System.out.println( " Total of score = " + totalscore);
        System.out.println( "Average of score = " + averagescore);

    }
}

Screenshot_4

azeelahyasmin00 commented 3 years ago
// Developer : Azeelah yasmin
// Task : Average

public class testscore {
    public static void main(String[] args) {
        System.out.println(" Test Score 1 =" +2 );
        System.out.println(" Test Score 2 =" +4 );
        System.out.println(" Test Score 3 =" +6);
        System.out.println(" Total Test Score ="+(2 + 4 + 6) );
        System.out.println(" Average Text Score =" + (2 + 4 + 6)/3);

image

izzatisyahzanani16 commented 3 years ago

// Developer : Izzati Syahzanani
// Task : Calculating Average Test Score

public class TestScore {
    public static void main(String [] args){
        System.out.println("Test Score 1 = " + 75);
        System.out.println("Test Score 2 = " + 90);
        System.out.println("Test Score 3 = " + 65);
        System.out.println("Total Score = " + (75 + 90 + 65));
        System.out.println("Average Score = " + (75 + 90 + 65) / 3);
    }
}

java3

AzimArifin commented 3 years ago

//Developer : Azim
//Task : Total and average score
public class totalandaveragescore {
    public static void main (String [] args){
        System.out.println(" Test Score 1 = 80 ");
        System.out.println(" Test Score 2 = 70 ");
        System.out.println(" Test Score 3 = 90 ");
        System.out.println(" Total of score = " + ( 70 + 80 + 90 ));
        System.out.println(" Average of score = " + ( 70 + 80 + 90 ) / 3 );
    }
}
AzimArifin commented 3 years ago

ssk total average score

ajim1619 commented 3 years ago

//Developer: Abdul Azim (203198)
//Task: Average Score

public class Score {
    public static void main (String [] args){

        int score1 = 75;
        int score2 = 80;
        int score3 = 90;
        int totalscore = 0;
        int average = 0;

        System.out.println("Score 1 = " + score1);
        System.out.println("Score 2 = " + score2);
        System.out.println("Score 3 = " + score3);
        totalscore = score1 + score2 + score3;
        System.out.println("Total of Score = " + totalscore);
        average = totalscore/3;
        System.out.println("Average of Score = " + average);

        /*System.out.println("Score 1 = " + 75);
        System.out.println("Score 2 = " + 80);
        System.out.println("Score 3 = " + 90);
        System.out.println("Total of Score = " + (75+80+90));
        System.out.println("Average of Score = " + (75+80+90)/3);*/
    }
}

Flowschart Score PAC   IPO for Score Score with variables

izzatisyahzanani16 commented 3 years ago

image

Average Test


// Developer : Izzati Syahzanani
// Task : Calculating Average Test Score

public class TestScore {
    public static void main(String [] args){

        int score1 = 75;
        int score2 = 90;
        int score3 = 65;
        int total_score = 0;
        int average_score = 0;

        System.out.println("Test Score 1 = " + score1 );
        System.out.println("Test Score 2 = " + score2 );
        System.out.println("Test Score 3 = " + score3 );
        // System.out.println("Total Score = " + (75 + 90 + 65));
        // System.out.println("Average Score = " + (75 + 90 + 65) / 3);

        total_score = score1 + score2 + score3;
        System.out.println("Total Score = " + total_score);
        average_score = total_score / 3;
        System.out.println("Average Score = " + average_score);

    }
}

image

shazmi10 commented 3 years ago
//Developer : Muhammad Shazmi Bin Mohd Basri
//Task : Calculate the average of three test scores

public class TestScore {
    public static void main (String [] args) {

        int score1 = 84;
        int score2 = 72;
        int score3 = 94;
        int total_score = 0;
        int average_score = 0;

        System.out.println("Test Score 1 =" + 84 );
        System.out.println("Test Score 2 =" + 72 );
        System.out.println("Test Score 3 =" + 94 );
        System.out.println("Total Score =" +(84+72+94));
        System.out.println("Average of Score =" + (84+72+94)/3);

        total_score = score1 + score2 + score3;
        System.out.println("Total Score = " + total_score);
        average_score = total_score / 3;
        System.out.println("Average Score = " + average_score);
    }
}

image image image

ikmalhafiq commented 3 years ago

Screenshot 2020-11-02 222044

Screenshot 2020-11-02 222021

Screenshot 2020-11-02 221939


// Developer : Ikmal Hafiq
//Task : Total and Average score

public class testscore {
    public static void main (String [] args) {

        int score1 = 87;
        int score2 = 80;
        int score3 = 85;
        int totalscore;
        int average;

        System.out.println("Test Score 1=" + score1);
        System.out.println("Test Score 2=" + score2);
        System.out.println("Test Score 3=" + score3);
        totalscore = score1 + score2 + score3;
        System.out.println("Total of Score = " + totalscore);
        average = totalscore/3;
        System.out.println("Average of Score = " + average);

        /*System.out.println("Score 1 = " + 87);
        System.out.println("Score 2 = " + 80);
        System.out.println("Score 3 = " + 85);
        System.out.println("Total of Score = " + (87+80+85));
        System.out.println("Average of Score = " + (87+80+85)/3);*/

    }

}
haswani203024 commented 3 years ago
//Developer :Nurul Haswani

public class test {
    public static void main (String [] args){

        int score1 = 70;
        int score2 = 85;
        int score3 = 90;
        int total_score = 0;
        int average_score = 0;

        System.out.println("Test Score 1 ="  + score1 );
        System.out.println("Test Score 2 =" + score2 );
        System.out.println("Test Score 3 ="  + score3 );
        total_score = score1 + score2 + score3;

        //System.out.println("Total of Score ="+(70 + 85 + 90) );
        //System.out.println("Average of Score =" + (70 + 85 + 90)/3);

        System.out.println("Total of Score ="+(total_score) );
        average_score = total_score / 3;
        System.out.println("Average Score =" + average_score);
    }
}

image

image

image

fakhiraadriana commented 3 years ago
//Developer: Nur Fakhira Adriana
// Task    : Average of three test scores
public class Testscore {
    public static void main ( String [] args ) {
        int score1 = 95 ;
        int score2 = 74 ;
        int score3 = 53 ;
        int total_of_score ;
        int average ;

        total_of_score = score1 + score2 + score3 ;
        average = total_of_score / 3 ;

        System.out.println("score 1 = " + score1 );
        System.out.println("score 2 = " + score2 );
        System.out.println("score 3 = " + score3 );
        System.out.println("Total of score = " + total_of_score );
        System.out.println("Average of score = " + ( total_of_score ) / 3);
    }
}

Screenshot (56) Screenshot (57) Screenshot (58)

SorfinaNorly commented 3 years ago

Screenshot_2

Testscores


//Developer : Norshasha Sorfina
//Task : Average of Test Scores
public class TestScores {
    public static void main (String[] args){

        int score1 = 30;
        int score2 = 30;
        int score3 = 40;
        int total_score;
        int average_score;

        System.out.println("Test Score 1 = " + score1);
        System.out.println("Test Score 2 = " + score2);
        System.out.println("Test Score 3 = " + score3);
        //System.out.println("Total of Scores = " + ( 30+30+40));
        //System.out.println("Average Scores = " + ( 30+30+40)/3);

        total_score = score1 + score2 + score3;
        System.out.println("Total of Scores = " + total_score);
        average_score = total_score / 3;
        System.out.println("Average Scores = " + average_score);

    }
}

Run test score

azeelahyasmin00 commented 3 years ago

image

image

// Developer : Azeelah yasmin
// Task : Average

public class testscore {
    public static void main(String[] args) {

        int score1 = 2;
        int score2 = 4;
        int score3 = 6;
        int total_score = 0;
        int average_score = 0;

        System.out.println(" Test Score 1 =" + score1);
        System.out.println(" Test Score 2 =" + score2);
        System.out.println(" Test Score 3 =" + score3);
        // System.out.println(" Total Test Score ="+(2 + 4 + 6) );
        // System.out.println(" Average Test Score =" + (2 + 4 + 6)/3);

        total_score = score1 + score2 + score3;
        System.out.println(" Total Test Score = " + total_score);
        average_score = total_score / 3;
        System.out.println(" Average Test Score = " + average_score);

    }

}

image

Masturah29 commented 3 years ago
// Developer : Masturah Binti Mokhtar
// Task : Calculating Average Test Score

public class Test {
    public static void main (String [] args) {

        int score1 = 60;
        int score2 = 90;
        int score3 = 70;
        int totalscore = 0;
        int averagescore = 0;

        System.out.println("Test Score 1 =" + 60);
        System.out.println("Test Score 2 =" + 90);
        System.out.println("Test Score 3 =" + 70);
        System.out.println("Total of Score =" + (60  + 90 + 70));
        System.out.println("Average of Score =" + (60 + 90 + 70)/3);

        totalscore = score1 + score2 + score3;
        System.out.println("Total Score = " + totalscore);
        averagescore = totalscore / 3;
        System.out.println("Average Score = " + averagescore);
    }

}

Picture2

test score

97881600-92621e80-1d5d-11eb-9787-b006595a8742

elyamaisarah commented 3 years ago
//Developer: Elya Maisarah (202487)
//Calculate average of test score
public class Average {
    public static void main (String [] args){
        double score1 = 74.5;
        double score2 = 88.0;
        double score3 = 61.5;
        double totalscores = score1 + score2 + score3;
        double average = (score1 + score2 + score3)/3;

        System.out.println("Test Score 1: "+score1);
        System.out.println("Test Score 2: "+score2);
        System.out.println("Test Score 3: "+score3);
        System.out.println("Total of Scores : "+totalscores);
        System.out.println("Total Scores Average: "+average);

    }

}

Test score flowchart ipo pac 2 FLOWCHART 2

FtyRzd commented 3 years ago
//Developer : Siti Nurfatihah bt Rozaidi
//Task : Calculate average of test scores

public class LabQuestion1b {
    public static void main (String [] args){

        int score1 = 70 ;
        int score2 = 80 ;
        int score3 = 90 ;
        int total_score ;
        int average_score ;

        System.out.println(" Test Score 1 = " + score1);
        System.out.println(" Test Score 2 = " + score2);
        System.out.println(" Test Score 3 = " + score3);

        //System.out.println(" Total of Score = " + (70 + 80 + 90));
        //System.out.println(" Average of Score = " + (70+80+90) / 3);

        total_score = score1 + score2 + score3 ;
        System.out.println(" Total of Score = " + total_score );
        average_score = total_score / 3 ;
        System.out.println(" Average of Score = " + (total_score) / 3 );

    }
}

image image image

WanNurfarah commented 3 years ago
// Developer : Wan Nurfarah
// Task : Calculate Average of Test Scores
public class Score {
    public static void main (String [] args) {

        int Score1 = 85;
        int Score2 = 80;
        int Score3 = 95;
        int Total_of_Score = 0;
        int Average_of_Score = 0;

        System.out.println("Test Score 1 = " + Score1);
        System.out.println("Test Score 2 = " + Score2);
        System.out.println("Test Score 3 = " + Score3);
        //System.out.println("Total of Score = " + (85 + 80 + 95));
        //System.out.println("Average of Score = " + ((85 + 80 + 95) / 3));

        Total_of_Score = Score1 + Score2 + Score3;
        System.out.println("Total Score = " + Total_of_Score);
        Average_of_Score = Total_of_Score / 3;
        System.out.println("Average of Score = " + Average_of_Score);
    }
}
Screenshot (16) Screenshot (14)

flowchart test score

nadiahisml commented 3 years ago

image

image


//Developer : Nadiah Ismail
//Task : Calculate the average of three test scores
public class AverageTestScore {
    public static void main (String [] args){

        int score1 = 80;
        int score2 = 70;
        int score3 = 90;
        int total_score = 0;
        int average_total_score = 0;

        System.out.println(" Test Score 1 = " + score1);
        System.out.println(" Test Score 2 = " + score2);
        System.out.println(" Test Score 3 = " + score3);
        //System.out.println(" Total of score = " + ( 70 + 80 + 90 ));
        //System.out.println(" Average of score = " + ( 70 + 80 + 90 ) / 3 );

        total_score = score1 + score2 + score3;
        System.out.println("Total score = " + total_score);
        average_total_score = total_score / 3;
        System.out.println("Average total score = " + average_total_score);

    }
}

image

Farhanazul98 commented 3 years ago
//Developer: Farhana Zulkhairi
//Task: Test Score

public class Test {
    public static void main (String [] args) {
        System.out.println("Test Score 1 = " + 78 );
        System.out.println("Test Score 2 = " + 86 );
        System.out.println("Test Score 3 = " + 90 );
        System.out.println("Total Score = " + (78 + 86 + 90));
        System.out.println("Average Score = " + ((78 + 86 + 90)/3) );

    }
}

image

image

image

NoorHusna202271 commented 3 years ago
//Diveloper: Noor Husna
//Task: Average of test
public class activities2 {
    public static void main (String [] args){

        int test1= 1000;
        int test2= 2000;
        int test3= 3000;
        int total= 0;
        int average=0;

        //System.out.println("test 1 = 1000");
        //System.out.println("test 2 = 2000");
        //System.out.println("test 3 = 3000");
        //System.out.println("total test =" +(1000+2000+3000) );
        //System.out.println("Average of test =" +(6000/3) );

        System.out.println("test 1=" + test1 );
        System.out.println("test 2 =" + test2 );
        System.out.println("test 3 =" +test3);
        total = test1 + test2 + test3;
        System.out.println("total =" + total );
        average = total/3;
        System.out.println("average =" + average );

    }
}

image image image

FarhanaYusri commented 3 years ago
// Developer : Farhana Yusri
// Task : Calculate Average of Test Score
public class Main {

    public static void main (String [] args) {

        int score1 = 66;
        int score2 = 88;
        int score3 = 99;
        int total_score;
        int average;

        total_score = score1 + score2 + score3;
        average = total_score / 3;

        System.out.println("score 1 = " + score1 );
        System.out.println("score 2 = " + score2 );
        System.out.println("score 3 = " + score3 );
        System.out.println("Total of score = " + total_score );
        System.out.println("Average of score = " + ( total_score ) / 3);
    }
}

2 flowchart 2 PAC   IPO 2

NurHanisHaziqah commented 3 years ago
//Developer: Nur Hanis Haziqah Binti Hisham Haizad
//Task: Calculate Average Test Score
public class Score {
    public static void main ( String [] args){
        int testScore1 = 70;
        int testScore2 = 50;
        int testScore3 = 30;
        int totalScore ;
        int averageScore;

        System.out.println("Test score 1 = "+ testScore1);
        System.out.println("Test score 2 = " + testScore2);
        System.out.println("Test score 3 = "+ testScore3);

        totalScore = testScore1 + testScore2 + testScore3;
        averageScore = totalScore/3;

        System.out.println(" Total score = "+ totalScore);
        System.out.println(" Average score = " +averageScore);

    }
}

image Screenshot_50 Test score

DenzKaizer commented 3 years ago
//Developer : Danish
//Task : Calculate Average Score

public class Main {

    public static void main(String[] args) {

        int Test_Score_1 = 20;
        int Test_Score_2 = 40;
        int Test_Score_3 = 60;
        int Total_of_score = Test_Score_1 + Test_Score_2 + Test_Score_3;
        int Average_of_Score = Total_of_score / 3;

        //System.out.println("Test Score 1 =" + 20);
        //System.out.println("Test Score 2 =" + 40);
        //System.out.println("Test Score 3 =" + 60);
        //System.out.println("Total of Score =" + (20  + 40 + 60));
        //System.out.println("Average of Score =" + (20 + 40 + 60)/3);

        System.out.println("Test Score 1 =" + Test_Score_1);
        System.out.println("Test Score 2 =" + Test_Score_2);
        System.out.println("Test Score 3 =" + Test_Score_3);
        System.out.println("Total Score =" + Total_of_score);
        System.out.println("Average of score =" + Average_of_Score);

    }
}

Soalan 2 2

Soalan 2

Soalan 2

nrhzrhrsli commented 3 years ago

    //Developer : Hazirah Rosli
    //Task : Average Score

    public class Average {
        public static void main (String [] args) {

            int score1 = 55;
            int score2 = 30;
            int score3 = 12;
            int total_score = 0;
            int average_score = 0;

            System.out.println("Score test 1 = " + 55);
            System.out.println("Score test 2 = " + 30);
            System.out.println("Score test 3 = " + 12);
            System.out.println("Total score test = " + (55 + 30 + 12));
            System.out.println("Average of score test = " + (55 + 30 + 12 ) / 3);

            total_score = score1 + score2 + score3;
            System.out.println("total score = " + total_score);
            average_score = total_score / 3;
            System.out.println(" Average score =" + average_score);
        }
    }

image

image

image

Syazimah06 commented 3 years ago
//Developer : Siti Nur Syazimah (203023)
//Task : Average Score

public class Score {
    public static void main (String [] args) {

        int score_1 = 85;
        int score_2 = 65;
        int score_3 = 55;
        int total_of_score = 85 + 65 + 55;
        int average = ((total_of_score) / 3);

        System.out.println("Score 1 =" + score_1 );
        System.out.println("Score 2 =" + score_2 );
        System.out.println("Score 3 =" + score_3 );

        System.out.println("Total of Score =" + total_of_score);
        System.out.println("Average =" + average);

        //System.out.println("Score 1 =" + 85);
        //System.out.println("Score 2 =" + 65);
        //System.out.println("Score 3 =" + 55);
        //System.out.println("Total of Score = " + (85+65+55));
        //System.out.println("Average =" + (85+65+55/3));
    }
}

Score1 Score Score

Lyanaazwanis99 commented 3 years ago
//Developer:Lyana Azwanis
//Task:Average of score
public class Activity2 {
    public static void main (String [] args){

        int score1 = 6;
        int score2 = 21;
        int score3 = 24;
        int total_score = 0;
        int average = 0;

        //System.out.println("Score 1 =" + 6);
        //System.out.println("Score 2 =" + 21);
        //System.out.println(" Score 3 =" + 24);
        //System.out.println("Total score =" +6 +21 +24);
        //System.out.println("Average score =" + (51/3));
        System.out.println("score 1 =" + score1);
        System.out.println("Score 2 =" + score2);
        System.out.println("Score 3 =" + score3);
        total_score = score1 + score2 + score3;
        System.out.println("total score =" + total_score);
        average = (total_score)/3;
        System.out.println("average =" + average);

    }
}

https://prnt.sc/ve2v9o

https://prnt.sc/ve2w51

https://prnt.sc/ve2xkb