Closed zafienas closed 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)
//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);
}
}
//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);
}
}
// 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);
//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);
}
}
//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);
//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);
}
}
//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);
}
}
//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 );
}
}
// 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);
//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);
}
}
//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) );
}
}
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);
}
}
//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);
}
}
//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);
}
}
//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) );
}
}
// 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);
}
}
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);
}
}
// 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));
}
}
//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);
}
}
//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);
}
}
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);
}
}
//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));
}
}
//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));
}
}
//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);
}
}
// 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);
// 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);
}
}
//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 );
}
}
//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);*/
}
}
// 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);
}
}
//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);
}
}
// 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);*/
}
}
//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);
}
}
//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);
}
}
//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);
}
}
// 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);
}
}
// 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);
}
}
//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);
}
}
//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 );
}
}
// 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);
}
}
//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);
}
}
//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) );
}
}
//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 );
}
}
// 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);
}
}
//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);
}
}
//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);
}
}
//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);
}
}
//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));
}
}
//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/ve2w51
Problem Definition:
Calculate the average of three test scores and display all of them.
Submission: