Closed zafienas closed 3 years ago
IPO chart
Flowchart
Pseudocode
Java source code
//Developer: Farhana Zulkhairi
//Task: Calculation of total final marks and percentage
import java.util.Scanner;
import java.text.DecimalFormat;
public class Software {
public static void main(String [] args){
double test1, test2, assignment1, assignment2, assignment3, exam;
double percent_test1,percent_test2, total_assignment, percent_assignment, percent_exam, final_marks;
//final marks is addition all of the percentage calculated
Scanner scanner = new Scanner(System.in);
DecimalFormat decimal = new DecimalFormat("0.00");
System.out.println("\t\t\t\t\t\t\t\t\t\t\tCOMPUTER PROGRAMMING I\t\t\t\t\t\t\t\t\t\t");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t (SSK3100)\t\t\t\t\t\t\t\t\t\t\t\t\t");
System.out.println("***************************************MARKS EVALUATION APPLICATION*****************************************");
System.out.println(
);
System.out.println("PLEASE ENTER MARKS:- ");
System.out.print("Mark of Test 1 : ");
test1 = scanner.nextDouble();
System.out.print("Mark of Test 2 : ");
test2 = scanner.nextDouble();
System.out.print("Mark of Assignment 1 : ");
assignment1 = scanner.nextDouble();
System.out.print("Mark of Assignment 2 : ");
assignment2 = scanner.nextDouble();
System.out.print("Mark of Assignment 3 : ");
assignment3 = scanner.nextDouble();
System.out.print("Mark of Final Exam : ");
exam = scanner.nextDouble();
total_assignment = (assignment1 + assignment2 + assignment3);
percent_test1 = (test1 / 50) * 20;
percent_test2 = (test2 / 50) * 20;
percent_assignment = (total_assignment / 90) * 30;
percent_exam = (exam / 100) * 30;
final_marks = (percent_test1 + percent_test2 + percent_assignment + percent_exam);
//("Total Marks of Assignments = " + total_assignment)
//("Percentage marks test 1 = "+ decimal.format(percent_test1))
//("Percentage marks test 2 = " + decimal.format(percent_test2))
//("Percentage marks total assignments = " + decimal.format(percent_assignment))
//("Percentage marks for final exam = " + decimal.format(percent_exam))
//("Total Final Marks = " + decimal.format(final_marks))
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t CALCULATED MARKS \t\t\t\t\t\t\t\t\t\t\t\t\t ");
System.out.println(" FIRST TEST \t SECOND TEST \t ASS 1 \t ASS 2 \t ASS 3 \t ASSIGNMENT SUB-TOTAL \t FINAL EXAMINATION \t TOTAL \t");
System.out.println("----------------------------------------------------------------------------------------------------------------\t ");
System.out.println(test1 + "(" + decimal.format(percent_test1) + "%)" + "\t" + test2 + "(" + decimal.format(percent_test2) + "%)" + "\t" + assignment1 + "\t" + assignment2 + "\t" + assignment3 + "\t\t" + total_assignment + "(" + decimal.format(percent_assignment) + "%)" + "\t\t" + exam + "(" + decimal.format(percent_exam) + "%)" + "\t\t" + decimal.format(final_marks) + "%");
}
}
Output
// Developer : Nurul Izzati Syahzanani Binti Farooq Azam
// Project : Mark Calculator
import java.util.Scanner;
import java.text.DecimalFormat;
public class MarkCalculator1 {
public static void main(String[] args) {
double test1, test2, assignment1, assignment2, assignment3, finalExam, percentTest1, percentTest2, percentAssignment, percentFinalExam, totalmark, totalAssignment;
DecimalFormat df = new DecimalFormat("0.00");
System.out.println("\t\t\t\t\t\t\t\t\t\t COMPUTER PROGRAMMING I \t\t\t\t\t\t\t\t\t\t");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t (SSK3100) \t\t\t\t\t\t\t\t\t\t\t");
System.out.println("************************************* MARKS EVALUATION APPLICATION **************************************");
Scanner input = new Scanner (System.in);
System.out.println("Please Enter Marks :- \n");
System.out.print("\t First Test: \t \t");
test1 = input.nextDouble();
System.out.print("\t Second Test: \t \t");
test2 = input.nextDouble();
System.out.print("\t Assignment 1: \t \t");
assignment1 = input.nextDouble();
System.out.print("\t Assignment 2: \t \t");
assignment2 = input.nextDouble();
System.out.print("\t Assignment 3: \t \t");
assignment3 = input.nextDouble();
System.out.print("\t Final Exam: \t \t");
finalExam = input.nextDouble();
percentTest1 = (test1 / 50)* 20;
percentTest2 = (test2 / 50)* 20;
totalAssignment = assignment1 + assignment2 + assignment3;
percentAssignment = (totalAssignment / 90)* 30;
percentFinalExam = (finalExam / 100)* 30;
totalmark = percentTest1 + percentTest2 + percentAssignment + percentFinalExam;
System.out.println("\n\t\t\t\t\t\t\t\t\t\t CALCULATED MARKS \n");
System.out.println("First Test \t\t Second Test \t\t Ass 1 \t\t Ass 2 \t\t Ass 3 \t\t Assignment Sub-Total \t\t Final Exam \t\t Total");
System.out.println("------------------------------------------------------------------------------------------------------------------------------------------");
System.out.println(test1 + "(" + percentTest1 + "%) \t" + test2 + "(" + percentTest2 + "%) \t\t" + assignment1 + "\t\t" + assignment2 + "\t\t" + assignment3 + "\t\t" + totalAssignment + "(" + df.format(percentAssignment) + "%) \t\t\t\t" + finalExam + "(" + percentFinalExam + "%) \t\t" + df.format(totalmark) + "%");
}
}
//Developer : Danish
//Task : Marks Evaluation
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
double test1, test2, percent_test1, percent_test2, assignment1, assignment2, assignment3, total_assignment, percent_assignment, exam, percent_exam, total_percent;
System.out.println(" COMPUTER PROGRAMMING I ");
System.out.println(" (SSK3100) ");
System.out.println("********************************MARKS EVALUATION APPLICATION********************************");
DecimalFormat df = new DecimalFormat("0.00");
df .setRoundingMode(RoundingMode.CEILING);
Scanner scanner = new Scanner(System.in);
System.out.println("Please enter mark : ");
System.out.print("\tFirst Test : ");
test1 = scanner.nextDouble();
percent_test1 = (test1/50) * 20;
System.out.print("\tSecond Test : ");
test2 = scanner.nextDouble();
percent_test2 = (test2/50) * 20;
System.out.println("\n");
System.out.print("\tAssignment 1 : ");
assignment1 = scanner.nextDouble();
System.out.print("\tAssignment 2 : ");
assignment2 = scanner.nextDouble();
System.out.print("\tAssignment 3 : ");
assignment3 = scanner.nextDouble();
total_assignment = (assignment1 + assignment2 + assignment3);
percent_assignment = (total_assignment / 100) * 30;
System.out.println("\n");
System.out.print("FINAL EXAMINATION: ");
exam = scanner.nextDouble();
percent_exam = (exam / 100) * 30;
total_percent = percent_assignment + percent_exam;
System.out.println("\n");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t CALCULATED MARK \n");
System.out.println("FIRST TEST \t SECOND TEST \t ASS 1 \t ASS 2 \t ASS 3 \t ASSIGNMENT SUB-TOTAL \t\t FINAL EXAMINATION \t\t TOTAL");
System.out.println("--------------------------------------------------------------------------------------------------------------");
System.out.println(test1 + "(" + df.format (percent_test1) + " %) \t" + test2 + "(" + df.format (percent_test2) + " %) \t" + assignment1 + "\t" + assignment2 + "\t" + assignment3 + "\t" + total_assignment + "("+ df.format (percent_assignment) +" %)\t\t\t\t" + exam + "(" + df.format (percent_exam) + " %)\t\t" + df.format (total_percent) + " %" );
}
}
//Developer : Siti Nurfatihah bt Rozaidi (202934)
//Task : Mark
import java.util.Scanner;
import java.text.DecimalFormat;
public class MarkCalculator {
public static void main(String[] args) {
double firstTest,secondTest,assignment1,assignment2,assignment3,FinalExam;
double percent_test1,percent_test2,percent_assignment,total,percent_finalexam,total_percentagemarks;
Scanner in = new Scanner(System.in);
DecimalFormat df= new DecimalFormat("0.00");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCOMPUTER PROGRAMMING I");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(SSK3100)");
System.out.println("********************************************************************MARKS EVALUATION APPLICATION*******************************************************************");
System.out.println("Please Enter Marks :-");
System.out.print("\n\t\t First Test \t: ");
firstTest = in.nextDouble();
System.out.print("\t\t Second Test \t: ");
secondTest = in.nextDouble();
System.out.print("\n\t\t Assignment1 \t: ");
assignment1 = in.nextDouble();
System.out.print("\t\t Assignment2 \t: ");
assignment2 = in.nextDouble();
System.out.print("\t\t Assignment3 \t: ");
assignment3 = in.nextDouble();
System.out.print("\n Final Examination \t\t: ");
FinalExam = in.nextDouble();
percent_test1 = (firstTest/50)*20;
percent_test2 = (secondTest/50)*20;
total = (assignment1 + assignment2 + assignment3);
percent_assignment = (total/90)*30;
percent_finalexam = (FinalExam / 100)*30;
total_percentagemarks = (percent_test1 + percent_test2 + percent_assignment + percent_finalexam);
System.out.println("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCALCULATED MARKS\n");
System.out.println("FIRST TEST \t\t SECOND TEST \t\t\t ASS 1 \t\t ASS 2 \t\t ASS 3 \t\t\t ASSIGNMENT SUB-TOTAL \t\t\t FINAL EXAMINATION \t\t\t TOTAL");
System.out.println("--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
System.out.print(firstTest + "(" +df.format(percent_test1) +"%)\t\t");
System.out.print(secondTest + "(" +df.format(percent_test2) +"%)\t\t\t");
System.out.print(assignment1+"\t\t"+assignment2+"\t\t"+assignment3+"\t\t\t");
System.out.print(total + "(" +df.format(percent_assignment) +"%)\t\t\t\t\t");
System.out.print(FinalExam + "(" +df.format(percent_finalexam) +"%)\t\t\t");
System.out.print("" +df.format(total_percentagemarks) + "%\t\t\t");
}
}
//Developer : Elya Maisarah (202487)
import java.text.DecimalFormat;
import java.util.Scanner;
public class MarkCalculator {
public static void main (String [] args){
Scanner sc = new Scanner(System.in);
DecimalFormat df = new DecimalFormat("00.00");
double percent_test1,percent_test2,percent_assg,total, percent_finalexam, totalpercentagemarks;
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t Computer Programming I\t");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t\t SSK 3100 \t");
System.out.println("********************************************** MARKS EVALUATION APPLICATION **********************************************");
System.out.println("PLEASE ENTER MARKS :- \n");
//read user input
System.out.print("\tFirst Test\t: ");
double test1 =sc.nextDouble();
//calculate percentage
percent_test1 = (test1 / 50)*20;
//read user input
System.out.print("\tSecond Test\t: ");
double test2 =sc.nextDouble();
// calculate percentage
percent_test2 = (test2 / 50)*20;
//read user input
System.out.print("\n\tAssignment 1\t: ");
double assg1 = sc.nextDouble();
System.out.print("\tAssignment 2\t: ");
double assg2 = sc.nextDouble();
System.out.print("\tAssignment 3\t: ");
double assg3 = sc.nextDouble();
//calculate total assg & percentage
total = (assg1 + assg2 + assg3);
percent_assg = (total/90)*30;
System.out.print("\n\tFinal Exam\t:");
double finalexam = sc.nextDouble();
percent_finalexam = (finalexam / 100) * 30;
//calculate total percentage mark
totalpercentagemarks =( percent_test1 + percent_test2 + percent_assg + percent_finalexam );
//print marks
System.out.println("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCALCULATED MARKS\n");
System.out.println("FIRST TEST \t\t\t SECOND TEST \t\tASS 1 \tASS 2 \tASS 3 \t ASSIGNMENT SUB-TOTAL \tFINAL EXAM \t\t\tTOTAL");
System.out.println("------------------------------------------------------------------------------------------------------------------------------");
System.out.print(test1 + "(" + df.format(percent_test1) + "%)\t\t");
System.out.print(test2 + "(" + df.format(percent_test2) + "%)\t\t");
System.out.print(assg1+"\t"+assg2+"\t"+assg3+"\t\t");
System.out.print(total + "(" + df.format(percent_assg) + "%)\t\t");
System.out.print(finalexam + "(" + df.format(percent_finalexam) + "%)\t\t");
System.out.print("(" + df.format(totalpercentagemarks) + "%)\t\t");
}
}
import java.text.DecimalFormat;
import java.util.Scanner;
public class example {
public static void main(String[]args) {
double test1, test2, assign1, assign2, assign3, finalexam ;
double percenttest1,percenttest2, totalassign , percent_assign_subtotal,percentfinal, totalmark ;
DecimalFormat df = new DecimalFormat("00.00");
System.out.println("\t\t\t\t\t\t\t COMPUTER PROGRAMMING 1");
System.out.println("\t\t\t\t\t\t\t\t\tSSK3100 " );
System.out.println("************************* MARKS EVALUATION OF APPLICATION ********************************");
Scanner scanner = new Scanner(System.in);
System.out.println("PLEASE ENTER MARKS:- \n");
System.out.print( "\t MARK TEST 1\t :");
test1 = scanner.nextDouble();
System.out.print( "\t MARK TEST 2\t :");
test2 = scanner.nextDouble();
System.out.println("\n");
System.out.print( "\t ASSIGNMENT 1\t :");
assign1 = scanner.nextDouble();
System.out.print( "\t ASSIGNMENT 2\t :");
assign2 = scanner.nextDouble();
System.out.print( "\t ASSIGNMENT 3\t :");
assign3 = scanner.nextDouble();
System.out.println("\n");
System.out.print( "FINAL EXAMINATION\t :");
finalexam = scanner.nextDouble();
//calculate
percenttest1= (test1/50)* 20 ;
percenttest2= (test2/50)* 20 ;
totalassign = assign1 + assign2 + assign3 ;
percent_assign_subtotal = (totalassign/90)* 30 ;
percentfinal = (finalexam/100)* 30 ;
totalmark = percenttest1 + percenttest2 + percent_assign_subtotal + percentfinal ;
System.out.println("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t CALCULATED MARKS \t\t\t\n ");
System.out.println( "TEST 1\t\t\tTEST 2\t\t\tASS 1\tASS 2\tASS 3\tASSIGMENT SUB-TOTAL\t\tFINAL EXAMINATION\t\t\tTOTAL");
System.out.println("_________________________________________________________________________________________________________________\t\t\n");
System.out.print( test1 + "(" + df.format(percenttest1)+"%" +")"+"\t"+ test2 +"("+ df.format(percenttest2) +"%"+")" +"\t");
System.out.print( assign1 +"\t"+ assign2 +"\t"+ assign3 +"\t\t"+ totalassign+"("+ df.format(percent_assign_subtotal )+"%"+")"+"\t\t");
System.out.print("\t" + finalexam+ "("+ df.format(percentfinal)+"%"+")"+"\t\t\t"+df.format(totalmark)+"%");
}
}
//Developer : Nur Hanis Haziqah Binti Hisham Haizad
import java.text.DecimalFormat;
import java.util.Scanner;
public class MarkCalculator {
public static void main (String [] args){
double test1,test2,percent_test1,percent_test2,totalAssignment,assignment1,assignment2,assignment3,percent_assignment,finalExamination,percent_final,total_marks;
DecimalFormat df = new DecimalFormat( "0.00");
System.out.println(" \t\t\t\t\t\t\t\t\t\t\t Computer Programming 1 \t" );
System.out.println("*****************************************MARKS EVALUATION APPLICATION******************************************");
// read user input(marks)
Scanner scanner = new Scanner( System.in);
System.out.println( "Please Enter Marks : \n");
System.out.print( "\t FIRST TEST : \t");
test1= scanner.nextDouble();
System.out.print( "\t SECOND TEST: \t");
test2 = scanner.nextDouble();
System.out.print( "\t Assignment 1 : ");
assignment1 = scanner.nextDouble();
System.out.print( "\t Assignment 2 : ");
assignment2 = scanner.nextDouble();
System.out.print( "\t Assignment 3 : ");
assignment3 = scanner.nextDouble();
System.out.print( "\t Final Examination : ");
finalExamination = scanner.nextDouble();
//calculate percentage
percent_test1= (test1/50)*20;
percent_test2 = (test2/50)*20;
totalAssignment= (assignment1 + assignment2 + assignment3);
percent_assignment= (totalAssignment/90)*30;
percent_final= (finalExamination/100)*30;
total_marks= (percent_test1+percent_test2+percent_assignment + percent_final);
System.out.println( "\n\t\t\t\t\t\t\t\t\t\t CALCULATED MARKS \n" );
System.out.println(" FIRST TEST \t SECOND TEST \t ASS1 \t ASS2 \t ASS3 \t ASSIGNMENT SUB-TOTAL \t FINAL EXAMINATION \t TOTAL");
System.out.println( " _____________________________________________________________________________________________________________");
System.out.print(test1 + "("+ df.format(percent_test1) + " %)\t");
System.out.print(test2 + "("+ df.format(percent_test2) + " %)\t");
System.out.print(assignment1 + "\t ");
System.out.print(assignment2 + "\t ");
System.out.print(assignment3 + "\t\t ");
System.out.print(totalAssignment + "("+ df.format(percent_assignment) + " %)\t\t\t" );
System.out.print(finalExamination + "("+ df.format(percent_final) + " %)\t");
System.out.print("("+ df.format(total_marks) + " %)\t\t");
}
}
// Developer : Masturah Binti Mokhtar
// Task : Test score SSK3100
import java.text.DecimalFormat;
import java.util.Scanner;
public class test {
public static void main(String[] args) {
double test1,test2,assignment1,assignment2,assignment3,finalexam,percent_test1,percent_test2,total_marks_3_assignments,percent_assignment1, percent_assignment2, percent_assignment3,percent_total_assignment,percent_finalexam,total;
DecimalFormat df = new DecimalFormat("0.00");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComputer Programming 1");
System.out.println("*********************************************************MARKS EVALUATION APPLICATION*****************************************************************************");
Scanner input = new Scanner (System.in);
// read input user (marks)
System.out.println("PLEASE ENTER MARKS :- \n");
System.out.print("\t First Test \t:");
test1 = input.nextDouble();
System.out.print ("\t Second Test \t:");
test2 = input.nextDouble();
System.out.print ("\t Assignment 1 \t:");
assignment1 = input.nextDouble();
System.out.print ("\t Assignment 2 \t:");
assignment2 = input.nextDouble();
System.out.print ("\t Assignment 3 \t:");
assignment3 = input.nextDouble();
System.out.print ("\t Final Examination \t:");
finalexam = input.nextDouble();
// calculate percentage
percent_test1 = ( test1 / 50 ) * 20;
percent_test2 = ( test2 / 50 ) * 20;
total_marks_3_assignments = (assignment1 + assignment2 + assignment3);
percent_assignment1 = ( assignment1 / 30) * 10;
percent_assignment2 = ( assignment2 / 30) * 10;
percent_assignment3 = ( assignment3 / 30) * 10;
percent_total_assignment = (percent_assignment1 + percent_assignment2 + percent_assignment3);
percent_finalexam = (finalexam / 100) * 30;
total = percent_test1 + percent_test2 + percent_total_assignment + percent_finalexam;
// print marks
System.out.println( "\t\t\t\t\t\t\t\t\t CALCULATED MARKS \t\t\t\t\t\t\t\t");
System.out.println(" FIRST TEST \t SECOND TEST \t ASS1 \t\t\t ASS2 \t\t\t ASS3 \t\t\t ASSIGNMENT SUB-TOTAL \t\t\t FINAL EXAMINATION \t\t\t TOTAL");
System.out.println("--------------------------------------------------------------------------------------------------------------------------------------------------------");
System.out.println(test1 + "(" + df.format (percent_test1) + " %) \t" +test2 + "(" + df.format (percent_test2) + " %) \t"+ assignment1 + "(" + df.format (percent_assignment1) + " %) \t" +assignment2 + "(" + df.format (percent_assignment2) + " %) \t"+ assignment3 + "(" + df.format (percent_assignment3) + "%) \t "+ total_marks_3_assignments + " ( " + df.format( percent_total_assignment) + "%) \t\t\t\t " + finalexam + " ( " + df.format( percent_finalexam) + "%) \t\t\t " + df.format(total) + "%");
}
}
Pseudocode Start Read the user input test 1 Read the user input test 2 Read the user input assignment 1 Read the user input assignment 2 Read the user input assignment 3 Read the user input final examination Print Computer Programming 1, MARKS EVALUATION APPLICATION Calculate percentage of test 1 = (test 1/50)20 Calculate percentage of test 1 = (test 2/ 50)20 Calculate to this assignment - assignment 1 + assignment 2 + Calculate percentage of total assignment = (total assignm- Calculate percentage of final examination (final assigned Calculate total marks = (percentage test 1 + percentage test 2 +percentage total assignment + percentage final examination) Print Calculated Marks Print FIRST TEST, percentage test 1 Print SECOND TEST , percentage test 2 Print ASS 1, percentage assignment 1 Print ASS 2, percentage assignment 2 Print ASS 3, percentage assignment 3 Print ASSIGNMENT SUB-TOTAL, percentage total assignment Print FINAL EXAMINATION. percentage of final examination End
import java.text.DecimalFormat;
import java.util.Scanner;
// developer: arif qhuzairie
// task: mark calculate app
public class calcapps {
public static void main(String[] args) {
double test1,test2,percentage_test1,percentage_test2;
double assigment1,assignment2,assignment3,total_assignmentmark,percentage_assignmentmark;
double finalexamination,percentage_finalexamination,totalmark_percentage;
System.out.println(" COMPUTER PROGRAMMING I ");
System.out.println(" (SSK3100) ");
System.out.println("********************************MARKS EVALUATION APPLICATION********************************");
Scanner scanner = new Scanner(System.in);
DecimalFormat decimal = new DecimalFormat("0.00");
System.out.println("Please enter the mark = ");
System.out.print(" First test : ");
test1 = scanner.nextDouble();
percentage_test1 = (test1/50) * 20;
System.out.print(" Second test : ");
test2 = scanner.nextDouble();
percentage_test2 = (test2/50) * 20;
System.out.println("\n");
System.out.print(" Assignment 1 : ");
assigment1 = scanner.nextDouble();
System.out.print(" Assignment 2 : ");
assignment2 = scanner.nextDouble();
System.out.print(" Assignment 3 : ");
assignment3 = scanner.nextDouble();
total_assignmentmark = (assigment1+assignment2+assignment3);
percentage_assignmentmark = (total_assignmentmark / 90) * 30;
System.out.println("\n");
System.out.print(" Final examination : ");
finalexamination = scanner.nextDouble();
percentage_finalexamination = (finalexamination / 100) * 30;
totalmark_percentage = (percentage_test1+percentage_test2+percentage_assignmentmark+percentage_finalexamination);
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCALCULATED MARKS\n");
System.out.println("FIRST TEST \t\t\t SECOND TEST \t\tASS 1 \tASS 2 \tASS 3 \t ASSIGNMENT SUB-TOTAL \tFINAL EXAM \t\t\t\tTOTAL");
System.out.println("-----------------------------------------------------------------------------------------------------------------");
System.out.print(test1 + "(" + decimal.format(percentage_test1) + "%)\t\t");
System.out.print(test2 + "(" + decimal.format(percentage_test2) + "%)\t\t");
System.out.print(assigment1+"\t"+assignment2+"\t"+assignment3+"\t\t");
System.out.print(total_assignmentmark + "(" + decimal.format(percentage_assignmentmark) + "%)\t\t");
System.out.print(finalexamination + "(" + decimal.format(percentage_finalexamination) + "%)\t\t");
System.out.print("(" + decimal.format(totalmark_percentage) + "%)\t\t");
}
}
//Developer: Norshasha Sorfina
//Task: Marks EValuation
import java.util.Scanner;
import java.text.DecimalFormat;
public class MarksEvaluation {
public static void main(String[] args){
//declare
double test1;
double test2;
double assignment1;
double assignment2;
double assignment3;
double totalAssignment;
double exam;
double percent_Test1;
double percent_Test2 ;
double percent_Assignment;
double percent_exam;
double total_Percentage;
DecimalFormat df = new DecimalFormat( "0.00");
System.out.println(" COMPUTER PROGRAMMING I ");
System.out.println(" (SSK3100) ");
System.out.println("*****************************************MARKS EVALUATION APPLICATION***************************************");
System.out.println("\nPLEASE ENTER MARKS:- ");
//Enter Marks
Scanner input = new Scanner(System.in);
System.out.print(" \n\t Test 1:");
test1 = input.nextDouble();
System.out.print(" \t Test 2:");
test2 = input.nextDouble();
System.out.print(" \n\t Assignment 1:");
assignment1 = input.nextDouble();
System.out.print(" \t Assignment 2:");
assignment2 = input.nextDouble();
System.out.print(" \t Assignment 3:");
assignment3 = input.nextDouble();
System.out.print(" \n\t Final Exam:");
exam = input.nextDouble();
//Calculation
totalAssignment = (assignment1 + assignment2 + assignment3);
percent_Test1 = (test1/50)*20;
percent_Test2 = (test2/50)*20;
percent_Assignment = (totalAssignment/90)*30;
percent_exam = (exam/100)*30;
total_Percentage = (percent_Test1 + percent_Test2 + percent_Assignment + percent_exam);
//Calculated Marks
System.out.println(" \n CALCULATED MARKS ");
System.out.println("FIRST TEST \t \tSECOND TEST \t \tASS1 \tASS2 \tASS3 \tASSIGNMENT SUB-TOTAL \tFINAL EXAM \t \tTOTAL");
System.out.println("_____________________________________________________________________________________________________________");
System.out.print(test1 + "(" + df.format(percent_Test1) + "%) \t");
System.out.print(test2 + "(" + df.format(percent_Test2) + "%) \t\t");
System.out.print(assignment1 + "\t" + assignment2 + "\t" + assignment3 + "\t \t" + totalAssignment + "(" + df.format(percent_Assignment) + ") \t \t");
System.out.print(exam + "(" + df.format(percent_exam) + "%)");
System.out.print("\t" + df.format(total_Percentage) + "%");
}
}
//Developer: Nadiah Ismail
//Task: Display total marks obtained by the student
import java.util.Scanner;
import java.text.DecimalFormat;
public class MarkCalculatorApplication {
public static void main (String [] args){
Scanner input = new Scanner(System.in);
DecimalFormat df = new DecimalFormat("0.00");
System.out.println("\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t COMPUTER PROGRAMMING I ");
System.out.println("\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t (SSK3100) ");
System.out.println("************************************************************MARKS EVALUATION APPLICATION" +
"***********************************************");
System.out.println();
System.out.println("PLEASE ENTER MARKS: -");
System.out.println();
System.out.print("\t FIRST TEST:\t");
double firstTest = input.nextDouble();
System.out.print("\t SECOND TEST:\t");
double secondTest = input.nextDouble();
System.out.println();
System.out.print("\t ASSIGNMENT 1:\t");
double assignment1 = input.nextDouble();
System.out.print("\t ASSIGNMENT 2:\t");
double assignment2 = input.nextDouble();
System.out.print("\t ASSIGNMENT 3:\t");
double assignment3 = input.nextDouble();
System.out.println();
System.out.print("FINAL EXAMINATION:\t");
double finalExamination = input.nextDouble();
//Calculate percentage
double percent_test1 = (firstTest / 50) * 20;
double percent_test2 = (secondTest / 50) * 20;
double percent_totalAssignment = ((assignment1 + assignment2 + assignment3) / 90) * 30;
double percent_finalExam = (finalExamination / 100) * 30;
double total_percent = (percent_test1 + percent_test2 + percent_totalAssignment + percent_finalExam);
System.out.println();
//Print marks
System.out.println("\t \t \t \t \t \t \t \t \t \t CALCULATED MARKS ");
System.out.println("FIRST TEST \t \t SECOND TEST \t\t ASS 1 \t\t ASS 2 \t\t ASS 3 \t \t ASSIGNMENT SUB-TOTAL"
+ "\t \t FINAL EXAMINATION \t \t TOTAL");
System.out.println("-------------------------------------------------------------------------------------------"
+ "-------------------------------------------");
System.out.println(firstTest + "(" + df.format(percent_test1)+ "%)" + "\t" + secondTest + "(" +
df.format(percent_test2) + "%)" + "\t\t" + assignment1 + "\t\t" + assignment2 + "\t\t" + assignment3 +
"\t \t \t" + (assignment1 + assignment2 + assignment3) + "(" + df.format(percent_totalAssignment) + "%)"
+ "\t \t \t \t" + finalExamination + "(" + df.format(percent_finalExam) + "%)" + "\t \t " + df.format(total_percent)+
"%");
}
}
// Developer : Azeelah Yasmin Bt Azlee
// Task : Calculated total mark
import java.text.DecimalFormat;
import java.util.Scanner;
public class Markcalculator {
public static void main (String [] args) {
double test1, test2, ass1, ass2, ass3, final_exam;
double total_test1, total_test2, total_ass, total_assignment, total_final_exam, total_marks;
DecimalFormat df = new DecimalFormat( "0.00");
System.out.println(" ****************************************MARKS EVALUATION APPLICATION********************************************");
Scanner input = new Scanner(System.in);
//read user input (marks)
System.out.print(" Please enter mark :- \n");
System.out.print("\t First test \t:");
test1 = input.nextDouble();
System.out.print("\t Second test \t: ");
test2 = input.nextDouble();
System.out.print("\t please enter your Assignment 1 \t:");
ass1 = input.nextDouble();
System.out.print("\t please enter your Assignment 2 \t:");
ass2 = input.nextDouble();
System.out.print("\t please enter your Assignment 3 \t:");
ass3 = input.nextDouble();
System.out.print("\t FinalExam \t:");
final_exam = input.nextDouble();
//calculate percentage
total_test1 = (test1/50)*20;
total_test2 = (test2/50)*20;
total_ass = (ass1 + ass2 + ass3);
total_assignment = (total_ass/90)*30;
total_final_exam = (final_exam/100)*30;
total_marks = (total_test1 +total_test2 + total_assignment + total_final_exam);
// print marks
System.out.println("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t CALCULATED MARKS \n");
System.out.println( "FIRST TEST \t\t\t SECOND TEST \t ASS1 \t ASS2 \t ASS3 \t ASSIGMNET TOTAL \t FINAL EXAM \t TOTAL \t");
System.out.println("_______________________________________________________________________________________________________");
System.out.print(test1 + "("+ df.format(total_test1) + "%) \t\t");
System.out.print(test2 + "("+ df.format(total_test2) + "%) \t\t" );
System.out.print(ass1+ "(" + df.format(ass1) + " %) \t" + ass2+ "(" + df.format(ass2) + " %) \t" + ass3+ "(" + df.format(ass3) + " %) \t" );
System.out.print(total_ass + "("+ df.format(total_assignment) + "%)\t\t");
System.out.println(final_exam + "("+ df.format(total_final_exam) + "%)\t\t");
System.out.println( "(" + df.format(total_marks) +"%)\t\t");
}
}
//Developer :NUruL HASWANI BINTI ARIFFIN
//NO MATRIC : 203024
import java.text.DecimalFormat;
import java.util.Scanner;
public class MarkCalculator {
public static void main (String [] args)
{
Scanner sc = new Scanner(System.in);
DecimalFormat df = new DecimalFormat("00.00");
double percent_test1,percent_test2,percent_ass,total, percent_finalexam, totalpercentagemarks;
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t Computer Programming I\t");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t\t SSK 3100 \t");
System.out.println("********************************************** MARKS EVALUATION APPLICATION **********************************************");
System.out.println("PLEASE ENTER MARKS :- \n");
//read user input
System.out.print("\tFirst Test\t: ");
double test1 =sc.nextDouble();
//calculate percentage
percent_test1 = (test1 / 50)*20;
//read user input
System.out.print("\tSecond Test\t: ");
double test2 =sc.nextDouble();
// calculate percentage
percent_test2 = (test2 / 50)*20;
//read user input
System.out.print("\n\tAssignment 1\t: ");
double ass1 = sc.nextDouble();
System.out.print("\tAssignment 2\t: ");
double ass2 = sc.nextDouble();
System.out.print("\tAssignment 3\t: ");
double ass3 = sc.nextDouble();
//calculate total ass & percentage
total = (ass1 + ass2 + ass3);
percent_ass = (total/90)*30;
System.out.print("\n\tFinal Exam\t:");
double finalexam = sc.nextDouble();
percent_finalexam = (finalexam / 100) * 30;
//calculate total percentage mark
totalpercentagemarks =( percent_test1 + percent_test2 + percent_ass + percent_finalexam );
//print marks
System.out.println("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCALCULATED MARKS\n");
System.out.println("FIRST TEST \t\t\t SECOND TEST \t\tASS 1 \tASS 2 \tASS 3 \t ASSIGNMENT SUB-TOTAL \tFINAL EXAM \t\t\tTOTAL");
System.out.println("------------------------------------------------------------------------------------------------------------------------------");
System.out.print(test1 + "(" + df.format(percent_test1) + "%)\t\t");
System.out.print(test2 + "(" + df.format(percent_test2) + "%)\t\t");
System.out.print(ass1+"\t"+ass2+"\t"+ass3+"\t\t");
System.out.print(total + "(" + df.format(percent_ass) + "%)\t\t");
System.out.print(finalexam + "(" + df.format(percent_finalexam) + "%)\t\t");
System.out.print("(" + df.format(totalpercentagemarks) + "%)\t\t");
}
}
FLOWCHART: JAVA SOURCE CODE:
//Developer: Wan Nurfarah Binti Wan Zulkifli
//Task: Calculate Total Mark
import java.text.DecimalFormat;
import java.util.Scanner;
public class Test {
public static void main (String [] args){
double test1, test2, assignment1, assignment2, assignment3, final_exam;
double percent_test1, percent_test2, total_assignment, percent_assignment,percent_finalExam, percent_total;
DecimalFormat df= new DecimalFormat ("0.00");
Scanner scanner = new Scanner(System.in);
System.out.println("\t\t\t\t\t\t\t\t\t\tCOMPUTER PROGRAMMING I\t\t ");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t(SSK3100)");
System.out.println("*************************************MARKS EVALUATION APPLICATION**************************************");
System.out.println("PLEASE ENTER MARKS: - ");;
//read the input from user
System.out.print("\t First Test \t: ");
test1 = scanner.nextDouble();
System.out.print("\t Second Test \t: ");
test2 = scanner.nextDouble();
System.out.print("\t Assignment 1 \t: ");
assignment1 = scanner.nextDouble();
System.out.print("\t Assignment 2 \t: ");
assignment2 = scanner.nextDouble();
System.out.print("\t Assignment 3 \t: ");
assignment3 = scanner.nextDouble();
System.out.print("\t Final Exam \t: ");
final_exam = scanner.nextDouble();
//calculate percentage
percent_test1 = (test1 / 50) * 20;
percent_test2 = (test2 / 50) * 20;
total_assignment = assignment1 + assignment2 + assignment3;
percent_assignment = ((total_assignment) / 90 ) * 20;
percent_finalExam = (final_exam / 100) * 30;
percent_total = percent_test1 + percent_test2 + percent_assignment + percent_finalExam;
//print marks
System.out.println("\t\t\t\t\t\t\t\t\tCALCULATED MARKS");
System.out.println("FIRST TEST\t\t SECOND TEST \t ASS 1 \t ASS 2 \t ASS 3 \t ASSIGNMENT SUB-TOTAL \t FINAL EXAMINATION \t TOTAL ");
System.out.println("---------------------------------------------------------------------------------------------------------------");
System.out.print(test1 + "(" + df.format(percent_test1) + "%) \t");
System.out.print(test2 + "(" + df.format(percent_test2) + "%) \t");
System.out.print(assignment1 + "\t" + assignment2 + "\t" + assignment3 + "\t\t");
System.out.print(total_assignment + "(" + df.format(percent_assignment) + "%) \t");
System.out.print("\t\t" + final_exam + "(" + df.format(percent_finalExam) + "%) \t");
System.out.print(df.format(percent_total) + "% \t");
}
}
OUTPUT:
//developer: Abdul Azim
//task: calculate the marks
import java.util.Scanner;
public class Marks {
public static void main (String [] args) {
double test1,test2,ass1,ass2,ass3,ass,examfinal;
double percent_test1,percent_test2,total_ass,percent_finalexam,total;
System.out.println("******************************************MARKS EVALUATION APPLICATION*******************************************");
Scanner input = new Scanner(System.in);
//read user input (marks)
System.out.println("Please Enter Marks:\n");
System.out.print("\t Test 1 \t\t:");
test1 = input.nextDouble();
System.out.print("\t Test 2 \t\t:");
test2 = input.nextDouble();
System.out.print("\t Assingment 1\t:");
ass1 = input.nextDouble();
System.out.print("\t Assingment 2\t:");
ass2 = input.nextDouble();
System.out.print("\t Assingment 3\t:");
ass3 = input.nextDouble();
System.out.print("\t Exam Final\t\t:");
examfinal = input.nextDouble();
//calculate percentage
percent_test1 = (test1/50)*20;
percent_test2 = (test2/50)*20;
ass = ass1 + ass2 + ass3;
total_ass = (ass/90)*30;
percent_finalexam = (examfinal/100)*30;
total = (percent_test1 + percent_test2 + total_ass + percent_finalexam);
//print marks
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\tCALCULATED MARKS\n");
System.out.println(" TEST 1 \t\t TEST 2 \t\tASG 1 \t\tASG 2 \t\tASG 3 \t ASSIGNMENT TOTAL \t\t FINAL EXAM \t\tTOTAL");
System.out.println("__________________________________________________________________________________________________________________");
System.out.println(test1 + "("+ percent_test1 + "%)\t\t" + test2 + "("+ percent_test2 + "%)\t\t" + ass1 +"\t\t" + ass2 + "\t\t" + ass3 + "\t\t" + ass + "("+ total_ass + "%)\t\t\t" + examfinal + "("+ percent_finalexam + "%)\t\t\t" + total +"%");
}
}
// Developer : Ikmal Hafiq
//Task : Marks
import java.util.Scanner;
public class marks {
public static void main (String [] args)
{
double test1,test2,ass1,ass2,ass3,ass,examfinal;
double percent_test1,percent_test2,total_ass,percent_finalexam,total;
System.out.println("\t\t\t\t\t\t\t\t\t\t\tCOMPUTER PROGRAMMING I\t\t\t\t\t\t\t\t\t\t");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t (SSK3100)\t\t\t\t\t\t\t\t\t\t\t\t\t");
System.out.println("******************MARKS EVALUATION APPLICATION******************");
Scanner input = new Scanner(System.in);
//read user input (marks)
System.out.println("Please Enter Marks:");
System.out.print("\t First Test:");
test1 = input.nextDouble();
System.out.print("\t Second Test:");
test2 = input.nextDouble();
System.out.print("\t Assingment 1:");
ass1 = input.nextDouble();
System.out.print("\t Assingment 2:");
ass2 = input.nextDouble();
System.out.print("\t Assingment 3:");
ass3 = input.nextDouble();
System.out.print("\t Exam Final:");
examfinal = input.nextDouble();
//calculate percentage
percent_test1 = (test1/50)*20;
percent_test2 = (test2/50)*20;
ass = ass1 + ass2 + ass3;
total_ass = (ass/90)*30;
percent_finalexam = (examfinal/100)*30;
total = (percent_test1 + percent_test2 + total_ass + percent_finalexam);
//print marks
System.out.println("\t\t\t\tCALCULATED MARKS");
System.out.println("FIRST TEST \t\t SECOND TEST \t\t ASS 1 \t\t ASS 2 \t\t ASS 3 \t\t ASSINGMENT SUB-TOTAL \t\t FINAL EXAM \t\t TOTAL");
System.out.println("____________________________________________________________________________________________________________________________________________________________________________________");
System.out.println(test1 + "("+ percent_test1 + "%)\t\t" + test2 + "("+ percent_test2 + "%)\t\t\t" + ass1 +"\t\t" + ass2 + "\t\t" + ass3 + "\t\t\t\t" + total_ass + "("+ percent_finalexam + "%)\t\t\t\t" + examfinal + "("+ percent_finalexam + "%)\t\t" + total +"%");
}
}
import java.text.DecimalFormat;
import java.util.Scanner;
public class FinalMark {
public static void main (String [] args) {
double test1, test2, percent_test1, percent_test2, ass1, ass2, ass3, total_assignment, percent_assignment, finalExam, exam_percent, total_percent;
DecimalFormat decimal = new DecimalFormat("0.00");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t\t COMPUTER PROGRAMMING 1");
System.out.println("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (SSK3100)");
System.out.println("*******************************************************MARKS EVALUATION APPLICATION********************************************************\n");
Scanner input = new Scanner (System.in);
//read user input
System.out.println("PLEASE ENTER MARKS :- \n");
System.out.print("\t First test \t\t: ");
test1 = input.nextDouble();
System.out.print("\t Second test \t\t: ");
test2 = input.nextDouble();
System.out.print("\t Assignment 1 \t\t: ");
ass1 = input.nextDouble();
System.out.print("\t Assignment 2 \t\t: ");
ass2 = input.nextDouble();
System.out.print("\t Assignment 3 \t\t: ");
ass3 = input.nextDouble();
System.out.print("\t Final Examination \t\t: ");
finalExam = input.nextDouble();
//calculations
percent_test1 = (test1/50) * 20;
percent_test2 = (test2/50) * 20;
total_assignment = ass1 + ass2 + ass3;
percent_assignment = (total_assignment/90) * 30;
exam_percent = (finalExam/100) * 30;
total_percent = (percent_test1 + percent_test2 + percent_assignment + exam_percent);
//print marks
System.out.println("\n\t\t\t\t\t\t\t\t\t\t CALCULATED MARKS \n");
System.out.println(" FIRST TEST \t\t SECOND TEST \t\t ASS 1 \t\t ASS 2 \t\t ASS 3 \t\t ASSIGNMENT SUB-TOTAL \t\t FINAL EXAM \t\t TOTAL ");
System.out.println("__________________________________________________________________________________________________________________________________________");
System.out.println(test1 + "(" + percent_test1 + "%)\t\t\t" + test2 +"(" + percent_test2 + "%)\t\t\t" + ass1 +"\t\t" + ass2 +"\t\t" + ass3 +"\t\t\t" + total_assignment + "(" + decimal.format(percent_assignment) + "%)\t\t\t" + finalExam + "(" + decimal.format(exam_percent) + "%)\t\t" + decimal.format(total_percent) +"%");
}
}
//Developer: Azim
//Task: Mark Calculator
import java.text.DecimalFormat;
import java.util.Scanner;
public class MarkCalculator {
public static void main(String[] args) {
double test1, test2, assignment1, assignment2, assignment3, examfinal;
double percent_test1, percent_test2, percent_test3, total_assignment, percent_assignment, percent_exam, final_marks;
Scanner scanner = new Scanner(System.in);
DecimalFormat decimal = new DecimalFormat("0");
System.out.println("**********MARKS EVALUATION APPLICATION**********");
Scanner Input = new Scanner(System.in);
//read user input (marks)
System.out.print("\t First Test:");
test1 = Input.nextDouble();
System.out.print("\t Second Test:");
test2 = Input.nextDouble();
System.out.print("\t Assingment 1:");
assignment1 = Input.nextDouble();
System.out.print("\t Assingment 2:");
assignment2 = Input.nextDouble();
System.out.print("\t Assingment 3:");
assignment3 = Input.nextDouble();
System.out.print("\t Exam Final:");
examfinal = Input.nextDouble();
//calculate percentage
percent_test1 = (test1 / 50) * 20;
percent_test2 = (test2 / 50) * 20;
total_assignment = assignment1 + assignment2 + assignment3;
percent_assignment = (total_assignment / 90) * 30;
percent_exam = (examfinal / 100) * 30;
final_marks = (percent_test1 + percent_test2 + percent_assignment + percent_exam);
//print marks
System.out.println("\t\t\t\tCALCULATED MARKS");
System.out.println("FIRST TEST \t\t SECOND TEST \t\t ASS 1 \t\t ASS 2 \t\t ASS 3 \t\t ASSINGMENT SUB-TOTAL \t\t FINAL EXAM \t\t TOTAL");
System.out.println("____________________________________________________________________________________________________________________________________________________________________________________");
System.out.println(test1 + "(" + percent_test1 + "%)\t\t" + test2 + "(" + percent_test2 + "%)\t\t\t" + assignment1 + "\t\t" + assignment2 + "\t\t" + assignment3 + "\t\t\t\t" + total_assignment + "(" + examfinal + "%)\t\t\t\t" + examfinal + "(" + percent_exam + "%)\t\t" + final_marks + "%");
}
}
'''java import java.util.Scanner; import java.text.DecimalFormat; //Developer: Noor Husna //Task: Marks students public class Problem2 { public static void main (String[]args){ double Firts_Test, Second_Test, Assignment_1, Assignment_2, Assignment_3,Final_Examination; double percent_Firts_Test,percent_Second_Test, Assignment_Sub_total, Total_Assigment, Percent_FinalExam,Total;
DecimalFormat df = new DecimalFormat( "0.00");
System.out.println(" COMPUTER PROGRAMMING I ");
System.out.println(" (SSK3100) ");
System.out.println("*************************************MARKS EVALUATION APPLICATION**************************************");
Scanner scanner = new Scanner(System.in);
//READ USER INPUT(MARKS)
System.out.println("PLEASE ENTER MARKS:- " );
System.out.println("Firts Test=");
Firts_Test = scanner.nextDouble();
System.out.println("Second Test=");
Second_Test= scanner.nextDouble();
System.out.println("Assignment 1=");
Assignment_1 = scanner.nextDouble();
System.out.println("Assignment 2=");
Assignment_2 = scanner.nextDouble();
System.out.println("Assignment 3=");
Assignment_3 = scanner.nextDouble();
System.out.println("Final Examination=");
Final_Examination = scanner.nextDouble();
//CALCULATE PERCENTAGE
percent_Firts_Test= (Firts_Test/50)*20;
percent_Second_Test= (Second_Test/50)*20;
Total_Assigment = Assignment_1 + Assignment_2 + Assignment_3;
Assignment_Sub_total= (Total_Assigment/90)*30;
Percent_FinalExam= (Final_Examination/100)*30;
Total = (percent_Firts_Test + percent_Second_Test + Assignment_Sub_total + Percent_FinalExam);
System.out.println(" CALCULATED MARKS ");
System.out.println("FIRST TEST SECOND TEST ASS 1 ASS 2 ASS 3 ASSIGNMENT SUB-TOTAL FINAL EXAMINATION TOTAL ");
System.out.println("_______________________________________________________________________________________________________");
System.out.println(Firts_Test + "(" + df.format(percent_Firts_Test) + "%) \t" + Second_Test + "(" + df.format(percent_Second_Test) + "%) \t\t" + Assignment_1 + "\t\t" + Assignment_2+ "\t\t" + Assignment_3 + "\t\t" + Total_Assigment +"(" + df.format(Assignment_Sub_total) + "%) \t\t" + Final_Examination + "(" + df.format(Percent_FinalExam) + "%) \t\t" + df.format(Total) + "%");
}
}
Psuecode:
Start
Declare marks First Test,Second Test,Assignment 1,Assignment 2,Assignment 3 and Final Examination.
percent_First_Test= (First Test/50)*20
percent_Second_Test= (Second_Test/50)*20
Total Assignment = Assignment 1 + Assignment 2 + Assignment 3
Assignment_Sub_total= (Total Assignment)/90)*30
Percent Final_Examination= (Final_Examination/100)*30
Total = (percent_First_Test + percent_Second_Test + Assignment_Sub_total + Final_Examination)
Display First Test,Second Test,Assignment Sub-total,Final Examination and Total.
End
https://prnt.sc/vnddfi https://prnt.sc/vndo39 https://prnt.sc/vndsu0
//Developer: Siti Nur Syazimah Binti Abu (203023)
//Task: Mark Calculator
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.Scanner;
public class Mark {
public static void main (String[] args){
double test1, test2, ass1, ass2, ass3, percent_test1, percent_test2, Final, total_ass, percent_ass, total, percent_final;
System.out.println("**************************************MARK EVALUATION APPLICATION**************************************");
System.out.println("PLEASE ENTER MARK:-\t");
System.out.println("\n");
DecimalFormat df = new DecimalFormat("0.00");
df .setRoundingMode(RoundingMode.CEILING);
Scanner scanner = new Scanner(System.in);
System.out.println("\t\tFIRST TEST: ");
test1 = scanner.nextDouble();
percent_test1 = (test1/50) * 20;
System.out.println("\t\tSECOND TEST: ");
test2 = scanner.nextDouble();
System.out.println("\n");
percent_test2 = (test2/50) * 20;
System.out.println("ASSIGNMENT 1: ");
ass1 = scanner.nextDouble();
System.out.println("ASSIGNMENT 2: ");
ass2 = scanner.nextDouble();
System.out.println("ASSIGNMENT 3: ");
ass3 = scanner.nextDouble();
System.out.println("\n");
System.out.println("FINAL EXAMINATION: ");
Final = scanner.nextDouble();
System.out.println("\n");
//test1 = (mark / 50);
//percent_test1 = test1 * 20;
//test2 = (mark / 50);
//percent_test2 = test2 * 20;
total_ass = (ass1 + ass2 + ass3);
percent_ass = (total_ass / 90) * 30;
percent_final = (Final / 100) * 30;
total = percent_test1 + percent_test2 + percent_ass + percent_final;
System.out.println("\n");
System.out.println("\t\t\t\t\t\tCALCULATED MARK\n");
System.out.println("FIRST TEST\t\t SECOND TEST \t ASS 1\t ASS 2 \t ASS 3 \t ASSIGNMENTS SUB TOTAL \t FINAL EXAMINATION \t TOTAL \t");
System.out.println("-----------------------------------------------------------------------------------------------------------");
System.out.println(test1 + "("+ df.format(percent_test1) + "%)\t"
+ test2 + "("+ df.format(percent_test2) + "%)\t"
+ ass1 + "\t" + ass2 + "\t" + ass3 + "\t\t" + df.format(percent_ass)
+ "(" + df.format(percent_ass) + "%)\t\t\t"
+ "(" + df.format(percent_final) + "%)\t\t"
+ "("+ df.format(total) + "%)\t");
}
}
//Developer : Hazirah
//Task : Result Examination
import javax.swing.plaf.synth.SynthOptionPaneUI;
import java.text.DecimalFormat;
import java.util.Scanner;
public class Examination {
public static void main (String [] args)
{
double test1, test2, assignment1, assignment2, assignment3, finalexam;
double percent_test1, percent_test2, percent_assignment1, percent_assignment2, percent_assignment3;
double assignmentsubtotal, percent_subtotal, percentFinalExam, total;
DecimalFormat df = new DecimalFormat("0.00");
Scanner input = new Scanner (System.in);
System.out.println(" COMPUTER PROGRAMMING I ");
System.out.println(" (SSK3100) ");
System.out.println("******************************************MARKS EVALUATION APPLICATION******************************************");
System.out.println("Please Enter Marks : ");
System.out.println("\t FIRST TEST : ");
test1 = input.nextDouble();
System.out.println("\t SECOND TEST : ");
test2 = input.nextDouble();
System.out.println("\t ASSIGNMENT 1 : ");
assignment1 = input.nextDouble();
System.out.println("\t ASSIGNMENT 2 : ");
assignment2 = input.nextDouble();
System.out.println("\t ASSIGNMENT 3 : ");
assignment3 = input.nextDouble();
System.out.println("\t FINAL EXAMINATION : ");
finalexam = input.nextDouble();
percent_test1 = (test1/50)*20;
percent_test2 = (test2/50)*20;
assignmentsubtotal = assignment1+assignment2+assignment3;
percent_subtotal = (assignmentsubtotal/90)*30;
percentFinalExam = (finalexam/100)*30;
total = (percent_subtotal+percent_test1+percent_test2+percentFinalExam);
System.out.println("\n\t\t\t\t\t\t\t CALCULATED MARKS \n");
System.out.println("FIRST TEST \t\tSECOND TEST \t\t\tASS 1 \tASS 2 \tASS 3 \tASSIGNMENT SUB-TOTAL \tFINAL EXAM \t\tTOTAL");
System.out.println("_______________________________________________________________________________________________________________");
System.out.println(test1 + "("+ df.format(percent_test1) + "%)\t" +test2 + "("+ df.format(percent_test2) + "%)\t\t\t"
+ assignment1 + "\t" + assignment2 + "\t" + assignment3 + "\t" + (df.format(assignmentsubtotal)) + "(" +df.format(percent_subtotal) + "%)\t\t\t"
+ finalexam + "(" +df.format(percentFinalExam) + "%)\t" + df.format(total) + "%");
}
}
// Developer : Farhana Yusri
// Task : MARK CALCULATE APPLICATION
public class Main {
public static void main (String [] args) {
double test_1, test_2, assignment_1, assignment_2, assignment_3, final_exam;
double percentage_test_1, percentage_test_2, percentage_assigment_1, percentage_assignment_2, percentage_assignment_3, percentage_final_exam, percentage_total_mark;
double total_assignment, total_mark, percentage_total_assignment;
System.out.println("*****************************************************MARK EVALUATION APPLICATION***********************************************");
Scanner input = new Scanner(System.in);
DecimalFormat df = new DecimalFormat("0.00");
df .setRoundingMode(RoundingMode.CEILING);
//read user input
System.out.println( " PLEASE ENTER MARK :- \n " );
System.out.print( "\t Enter test 1 : " );
test_1 = input.nextDouble();
System.out.print( "\t Enter test 2 : " );
test_2 = input.nextDouble();
System.out.print( "\t Enter assignment 1 : " );
assignment_1 = input.nextDouble();
System.out.print( "\t Enter assignment 2 : " );
assignment_2 = input.nextDouble();
System.out.print( "\t Enter assignment 3 : " );
assignment_3 = input.nextDouble();
System.out.print( "\t Enter final exam : " );
final_exam = input.nextDouble();
//calculate percentage
total_assignment = assignment_1 + assignment_2 + assignment_3 ;
total_mark = test_1 + test_2 + total_assignment + final_exam;
percentage_test_1 =(test_1/50)*20;
percentage_test_2 = (test_2/50)*20;
percentage_total_assignment = (total_assignment/90)*30;
percentage_final_exam = ( final_exam/100)*30;
percentage_total_mark = percentage_test_1 + percentage_test_2 + percentage_total_assignment + percentage_final_exam;
//print mark
System.out.println("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCALCULATED MARKS \t\t\t\t\t\t\t\t\t\t\t \n ");
System.out.println("FIRST TEST \t\t\t SECOND TEST \t\tASS 1 \tASS 2 \tASS 3 \t TOTAL ASSIGNMENT \t\tFINAL EXAM \t\t\tTOTAL MARK");
System.out.println("------------------------------------------------------------------------------------------------------------------------------");
System.out.print(test_1 + "(" + df.format(percentage_test_1) + "%)\t\t");
System.out.print(test_2 + "(" + df.format(percentage_test_2) + "%)\t\t");
System.out.print(assignment_1+"\t"+assignment_2+"\t"+assignment_3+"\t\t");
System.out.print(total_assignment + "(" + df.format(percentage_total_assignment) + "%)\t\t");
System.out.print(final_exam + "(" + df.format(percentage_final_exam) + "%)\t\t");
System.out.print("(" + df.format(percentage_total_mark) + "%)\t\t");
}
}
import java.text.DecimalFormat;
import java.util.Scanner;
//Developer : Lyana Azwanis
//Task : Mark calculator application
public class Calculatorapplication {
public static void main (String [] args){
double test1 , test2 , assignment1 , assignment2 , assignment3, total_assignment;
double percent_test1 , percent_test2 , percent_assignment, assignment_sub_total , final_exam , total_exam , percent_final_exam;
DecimalFormat df= new DecimalFormat("0.00");
System.out.println(" COMPUTER PROGRAMMING 1 ");
System.out.println(" (SSK 3100) ");
System.out.println("****************************************MARKS EVALUATION APPLICATION***************************************");
Scanner scanner = new Scanner(System.in);
//READ USER INPUT MARKS
System.out.println("PLEASE ENTER MARKS");
System.out.println("FIRST TEST =");
test1 = scanner.nextDouble();
System.out.println("SECOND TEST =");
test2 = scanner.nextDouble();
System.out.println("ASSIGNMENT 1 =");
assignment1 = scanner.nextDouble();
System.out.println("ASSIGNMENT 2 =");
assignment2 = scanner.nextDouble();
System.out.println("ASSIGNMENT 3 =");
assignment3 = scanner.nextDouble();
System.out.println("FINAL EXAMINATION =");
final_exam = scanner.nextDouble();
percent_test1 = (test1/50)*20;
percent_test2 = (test2/50)*20;
total_assignment = assignment1 + assignment2 + assignment3;
assignment_sub_total = ((assignment1 + assignment2 + assignment3)/90)*30;
percent_final_exam = (final_exam / 100)*30;
total_exam = (percent_test1 + percent_test2 + assignment_sub_total + percent_final_exam);
System.out.println(" CALCULATED MARKS ");
System.out.println("FIRST TEST SECOND TEST ASS 1 ASS 2 ASS 3 ASSIGNMENT SUB-TOTAL FINAL EXAMINATION TOTAL");
System.out.println("___________________________________________________________________________________________________________");
System.out.println(test1 + "(" + df.format(percent_test1) + "%) \t" + test2 + "(" + df.format(percent_test2)+ "%) \t\t" + assignment1 + "\t\t" + assignment2 + "\t\t" + assignment3 + "\t\t" + total_assignment + "(" + df.format(assignment_sub_total) + "%)\t\t" + final_exam + "(" + df.format(percent_final_exam) + "%)\t\t" + df.format(total_exam) + "%");
}
}
https://prnt.sc/vnekra
https://prnt.sc/vnelkk
//developer yazid rahman 204608
import java.text.DecimalFormat;
import java.util.Scanner;
public class lab2mark {
public static void main (String [] args) {
double test1,test2,ass1,ass2,ass3,finalexam;
double totaltest1,totaltest2,totalasssignment,totalfinalexam,totalmarks,totalass;
//output atas
DecimalFormat df = new DecimalFormat("0.00");
Scanner input = new Scanner(System.in);
System.out.println ("\t\t\t\t COMPUTER PROGRAMMING 1" );
System.out.println ("\t\t\t\t (SSK3100)" );
System.out.println ("*********************************MARKS EVALUATION APPLICATION*********************************");
System.out.println("please enter your marks :");
System.out.print("\t please enter your test 1 :");
test1 = input.nextDouble();
System.out.print("\t please enter your test 2 :");
test2 = input.nextDouble();
System.out.print("\t please enter your Assignment 1:");
ass1 = input.nextDouble();
System.out.print("\t please enter your Assignment 2:");
ass2 = input.nextDouble();
System.out.print("\t please enter your Assignment 3:");
ass3 = input.nextDouble();
System.out.print("\t please enter your Final exam:");
finalexam = input.nextDouble();
//calcuate percentage
System.out.println("\t\t\t\t\t CALCULATED MARKS");
System.out.println( "FIRST TEST \t\t SECOND TEST \t ASS1 \t ASS2 \t ASS3 \t ASSIGNMENT SUB TOTAL \t FINAL EXAMINATION \t TOTAL" );
System.out.println("-----------------------------------------------------------------------------------------------------------");
totaltest1 = (test1/50)*20;
totaltest2 = (test2/50)*20;
totalass = ass1+ass2+ass3;
totalasssignment = (totalass/90)*30;
totalfinalexam = (finalexam/100)*30;
totalmarks = (totaltest1+totaltest2+totalasssignment+totalfinalexam);
System.out.print(test1 + "("+ df.format(totaltest1) + "%) \t\t");
System.out.print(test2 + "("+ df.format(totaltest2) + "%) \t\t");
System.out.print(ass1+ "\t" + ass2+ "\t" + ass3+ "\t");
System.out.print(totalass+ "("+ df.format(totalasssignment) + "%) \t\t");
System.out.print(finalexam + "("+ df.format(totalfinalexam) + "%) \t\t");
System.out.print( df.format(totalmarks)+ "%\t\t");
}
}
Problem Definition:
Assume that you are hired to develop application software which is designed specifically for the SSK3100 Computer Programming course. The application software will be used among the lecturers who taught the course. The application software should be able to calculate the total marks accumulated by each student registered for the course. In order to calculate the total marks, the lecturer need to input the marks obtained by each student for First Test, Second Test, Assignments, and Final Examination. The following is the distribution of percentages taken for the calculation of the total mark:
The application software shall display all the marks for each evaluation, including total marks in 100%.
Expected Output:
Submission: