Closed zafienas closed 3 years ago
//Developer : Azim
//Task : Total and average score
public class totalandaveragescore {
public static void main (String [] args){
int score1 = 10;
int score2 = 20;
int score3 = 30;
int total_score = 10+20+30;
int average = ((total_score)/3);
System.out.println(" Test Score 1 = 10 ");
System.out.println(" Test Score 2 = 20 ");
System.out.println(" Test Score 3 = 30 ");
System.out.println(" Total of score = " + ( 10 + 20 + 30 ));
System.out.println(" Average of score = " + ( 10 + 20 + 30 ) / 3 );
//System.out.println(" Test Score 1 = 10 ");
//System.out.println(" Test Score 2 = 20 ");
//System.out.println(" Test Score 3 = 30 ");
//System.out.println(" Total of score = " + ( 10 + 20 + 30 ));
//System.out.println(" Average of score = " + ( 10 + 20 + 30 ) / 3 );
}
}
// developer: arif qhuzairie
// task: average of test score
public class mountain {
public static void main ( String [] args ){
int test_score_1 = 100;
int test_score_2 = 75;
int test_score_3 = 50;
int total_test_score = test_score_1 + test_score_2 + test_score_3;
int average_test_score = total_test_score / 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 test score = " + total_test_score);
System.out.println("average test score = " + average_test_score);
//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);
}
}
//developer yazid rahman 204608
{ public static void main (String [] args){
int test_score_1 = 430;
int test_score_2 = 780;
int test_score_3 = 290;
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 = " +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);
}
}
//Developer : Batrisya Alwani
//Task : calculate average score
public class Main {
public static void main(String[] args) {
int Test_Score_1 = 77;
int Test_Score_2 = 48;
int Test_Score_3 = 11;
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 =" + 77);
//System.out.println("Test Score 2 =" + 48);
//System.out.println("Test Score 3 =" + 11);
//System.out.println("Total of Score =" + (77 + 48 + 11));
//System.out.println("Average of Score =" + (77 + 48 + 11)/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);
}
}
Problem Definition:
Calculate the average of three test scores and display all of them.
Submission: