Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package project;
- import java.util.*;
- public class Project {
- public static double p_result;
- public static String name_l[] = new String[100];
- public static String roll_l[] = new String[100];
- public static double quiz_m[] = new double[100];
- public static double assig_m[] = new double[100];
- public static double OHT1_m[] = new double[100];
- public static double OHT2_m[] = new double[100];
- public static double Finals_m[] = new double[100];
- public static void main(String[] args){
- Scanner input = new Scanner(System.in);
- System.out.println(" [~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]");
- System.out.println(" [ ]");
- System.out.println(" [ ++++++++++STUDENT PORTAL FOR THE CLASS OF 5++++++++++++ ]");
- System.out.println(" [ ======================================================= ]");
- System.out.println(" [ ]");
- System.out.println(" [~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]");
- while (true) {
- System.out.println("Are you the teacher or the student? \nFor Teacher Press 1. For Student press 2.");
- System.out.print("Your choice: ");
- int choice = input.nextInt();
- //================================================= FOR ICT SUBJECT =================================================#
- if (choice == 1) {
- line_break();
- System.out.println("YOU ARE THE TEACHER! CHOOSE YOUR SUBJECT: ");
- System.out.println(" For ICT, Choose 1");
- System.out.println(" For ECA, Choose 2");
- System.out.println(" For CAL, Choose 3");
- line_break();
- System.out.println("Make the choice: ");
- int subject_choice = input.nextInt();
- if (subject_choice == 1){
- System.out.println("Enter the password provided by the department to gain access to the ICT portal");
- while (true){
- System.out.println("Your password: ");
- Scanner inp = new Scanner(System.in);
- int teacher_password = inp.nextInt();
- line_break();
- if (teacher_password == 1532) {
- System.out.println("*********Access granted*********");
- break;
- }
- else {
- System.out.println("Invalid. Type Again");
- }
- }
- while (true){
- line_break();
- System.out.println("You are the teacher of ICT");
- System.out.println("Setup your portal by creating student profiles");
- line_break();
- style1();
- Scanner y = new Scanner(System.in);
- System.out.println("Enter your name: ");
- String name = y.nextLine();
- System.out.println("Enter your roll: ");
- String roll = y.nextLine();
- for (int i=0; i < name_l.length; i++ ){
- if (name_l[i] == null){
- name_l[i] = name;
- roll_l[i] = roll;
- break;
- }
- }
- for (int i=0; i < name_l.length; i++ ){
- if(name.equals(name_l[i])&& roll.equals(roll_l[i])){
- All_method_call();
- break;
- }
- }
- System.out.println("Do You want to enter marks of another student? For Yes Press 1. For No Press 0");
- System.out.println("Your Choice: ");
- Scanner x = new Scanner(System.in);
- int choice_2 = x.nextInt();
- if (choice_2 == 1) {
- continue;
- }
- else {
- break;
- }
- }
- System.out.print("If You want to edit the marks/credentials of current student Press 2. For NO press 0");
- Scanner ch1 = new Scanner(System.in);
- System.out.println("Your Choice: ");
- int choice2 = ch1.nextInt();
- if (choice2 == 1) {
- line_break();
- }
- else if (choice2 == 2){
- System.out.println("*****************USER DATA MODIFICATION PANEL*****************");
- line_break();
- line_break();
- System.out.println("-To Change name and roll. no of current user. Press 1");
- System.out.println("-To Delete Record of a current user. Press 2");
- System.out.println("-To Change Quiz Marks of a student. Press 3");
- System.out.println("-To Change Assignment marks of student. Press 4");
- System.out.println("-To Change OHT1 Marks of a student. Press 5");
- System.out.println("-To Change OHT2 Marks of a student. press 6");
- System.out.println("-To Change Terminal Marks of a student. Press 7");
- System.out.println("-Again Entry Press 8");
- System.out.println("-To End the Program. Press 0");
- line_break();
- while (true) {
- System.out.println("Enter Your Choice: ");
- choice = ch1.nextInt();
- if (choice == 1){
- name_change();
- roll_change();
- wh_tab();
- line_break();
- modifi_pane();
- }
- else if (choice == 2){
- delete_record();
- wh_tab();
- line_break();
- modifi_pane();
- }
- else if (choice == 3){
- quiz_entry_change();
- wh_tab();
- line_break();
- modifi_pane();
- }
- else if (choice == 4) {
- assigment_entry();
- wh_tab();
- line_break();
- modifi_pane();
- }
- else if (choice == 5) {
- OHT1_entry();
- wh_tab();
- line_break();
- modifi_pane();
- }
- else if (choice == 6) {
- OHT2_entry();
- wh_tab();
- line_break();
- modifi_pane();
- }
- else if (choice == 7) {
- Terminal_entry();
- wh_tab();
- line_break();
- modifi_pane();
- }
- else if (choice == 0) {
- break;
- }
- else if (choice == 8) {
- Scanner y = new Scanner(System.in);
- System.out.println("Enter your names: ");
- String name = y.nextLine();
- System.out.println("Enter your rolls: ");
- String roll = y.nextLine();
- for (int i=0; i < name_l.length; i++ ){
- if (name_l[i] == null){
- name_l[i] = name;
- roll_l[i] = roll;
- All_method_call();
- result();
- wh_tab();
- line_break();
- modifi_pane();
- break;
- }
- }
- }
- }
- }
- }
- //================================================= FOR ECA SUBJECT =================================================#
- else if (subject_choice == 1){
- System.out.println("Enter the password provided by the department to gain access to the ICT portal");
- while (true){
- System.out.println("Your password: ");
- Scanner inp = new Scanner(System.in);
- int teacher_password = inp.nextInt();
- line_break();
- if (teacher_password == 1532) {
- System.out.println("*********Access granted*********");
- break;
- }
- else {
- System.out.println("Invalid. Type Again");
- }
- }
- while (true){
- line_break();
- System.out.println("You are the teacher of ICT");
- System.out.println("Setup your portal by creating student profiles");
- line_break();
- style1();
- Scanner y = new Scanner(System.in);
- System.out.println("Enter your name: ");
- String name = y.nextLine();
- System.out.println("Enter your roll: ");
- String roll = y.nextLine();
- for (int i=0; i < name_l.length; i++ ){
- if (name_l[i] == null){
- name_l[i] = name;
- roll_l[i] = roll;
- break;
- }
- }
- for (int i=0; i < name_l.length; i++ ){
- if(name.equals(name_l[i])&& roll.equals(roll_l[i])){
- All_method_call();
- wh_tab();
- break;
- }
- }
- System.out.println("Do You want to enter marks of another student? For Yes Press 1. For No Press 0");
- System.out.println("Your Choice: ");
- Scanner x = new Scanner(System.in);
- int choice_2 = x.nextInt();
- if (choice_2 == 1) {
- continue;
- }
- else {
- break;
- }
- }
- System.out.print("If You want to edit the marks/credentials of current student Press 2. For NO press 0");
- Scanner ch1 = new Scanner(System.in);
- System.out.println("Your Choice: ");
- int choice2 = ch1.nextInt();
- if (choice2 == 1) {
- line_break();
- }
- else if (choice2 == 2){
- System.out.println("*****************USER DATA MODIFICATION PANEL*****************");
- line_break();
- line_break();
- System.out.println("-To Change name and roll. no of current user. Press 1");
- System.out.println("-To Delete Record of a current user. Press 2");
- System.out.println("-To Change Quiz Marks of a student. Press 3");
- System.out.println("-To Change Assignment marks of student. Press 4");
- System.out.println("-To Change OHT1 Marks of a student. Press 5");
- System.out.println("-To Change OHT2 Marks of a student. press 6");
- System.out.println("-To Change Terminal Marks of a student. Press 7");
- System.out.println("-Again Entry Press 8");
- System.out.println("-To End the Program. Press 0");
- line_break();
- while (true) {
- System.out.println("Enter Your Choice: ");
- choice = ch1.nextInt();
- if (choice == 1){
- name_change();
- roll_change();
- wh_tab();
- }
- else if (choice == 2){
- delete_record();
- }
- else if (choice == 3){
- quiz_entry_change();
- }
- else if (choice == 4) {
- assigment_entry();
- }
- else if (choice == 5) {
- OHT1_entry();
- }
- else if (choice == 6) {
- OHT2_entry();
- }
- else if (choice == 7) {
- Terminal_entry();
- }
- else if (choice == 8) {
- Scanner y = new Scanner(System.in);
- System.out.println("Enter your names: ");
- String name = y.nextLine();
- System.out.println("Enter your rolls: ");
- String roll = y.nextLine();
- for (int i=0; i < name_l.length; i++ ){
- if (name_l[i] == null){
- name_l[i] = name;
- roll_l[i] = roll;
- All_method_call();
- result();
- break;
- }
- }
- }
- }
- }
- }
- //================================================= FOR CAL SUBJECT =================================================#
- else if (subject_choice == 1){
- System.out.println("Enter the password provided by the department to gain access to the ICT portal");
- while (true){
- System.out.println("Your password: ");
- Scanner inp = new Scanner(System.in);
- int teacher_password = inp.nextInt();
- line_break();
- if (teacher_password == 1532) {
- System.out.println("*********Access granted*********");
- break;
- }
- else {
- System.out.println("Invalid. Type Again");
- }
- }
- while (true){
- line_break();
- System.out.println("You are the teacher of ICT");
- System.out.println("Setup your portal by creating student profiles");
- line_break();
- style1();
- Scanner y = new Scanner(System.in);
- System.out.println("Enter your name: ");
- String name = y.nextLine();
- System.out.println("Enter your roll: ");
- String roll = y.nextLine();
- for (int i=0; i < name_l.length; i++ ){
- if (name_l[i] == null){
- name_l[i] = name;
- roll_l[i] = roll;
- break;
- }
- }
- for (int i=0; i < name_l.length; i++ ){
- if(name.equals(name_l[i])&& roll.equals(roll_l[i])){
- All_method_call();
- wh_tab();
- break;
- }
- }
- System.out.println("Do You want to enter marks of another student? For Yes Press 1. For No Press 0");
- System.out.println("Your Choice: ");
- Scanner x = new Scanner(System.in);
- int choice_2 = x.nextInt();
- if (choice_2 == 1) {
- continue;
- }
- else {
- break;
- }
- }
- System.out.print("If You want to edit the marks/credentials of current student Press 2. For NO press 0");
- Scanner ch1 = new Scanner(System.in);
- System.out.println("Your Choice: ");
- int choice2 = ch1.nextInt();
- if (choice2 == 1) {
- line_break();
- }
- else if (choice2 == 2){
- System.out.println("*****************USER DATA MODIFICATION PANEL*****************");
- line_break();
- line_break();
- System.out.println("-To Change name and roll. no of current user. Press 1");
- System.out.println("-To Delete Record of a current user. Press 2");
- System.out.println("-To Change Quiz Marks of a student. Press 3");
- System.out.println("-To Change Assignment marks of student. Press 4");
- System.out.println("-To Change OHT1 Marks of a student. Press 5");
- System.out.println("-To Change OHT2 Marks of a student. press 6");
- System.out.println("-To Change Terminal Marks of a student. Press 7");
- System.out.println("-Again Entry Press 8");
- System.out.println("-To End the Program. Press 0");
- line_break();
- while (true) {
- System.out.println("Enter Your Choice: ");
- choice = ch1.nextInt();
- if (choice == 1){
- name_change();
- roll_change();
- wh_tab();
- modifi_pane();
- }
- else if (choice == 2){
- delete_record();
- wh_tab();
- modifi_pane();
- }
- else if (choice == 3){
- quiz_entry_change();
- wh_tab();
- }
- else if (choice == 4) {
- assigment_entry();
- wh_tab();
- modifi_pane();
- }
- else if (choice == 5) {
- OHT1_entry();
- wh_tab();
- modifi_pane();
- }
- else if (choice == 6) {
- OHT2_entry();
- wh_tab();
- modifi_pane();
- }
- else if (choice == 7) {
- Terminal_entry();
- wh_tab();
- modifi_pane();
- }
- else if (choice == 0) {
- break;
- }
- else if (choice == 8) {
- Scanner y = new Scanner(System.in);
- System.out.println("Enter your names: ");
- String name = y.nextLine();
- System.out.println("Enter your rolls: ");
- String roll = y.nextLine();
- for (int i=0; i < name_l.length; i++ ){
- if (name_l[i] == null){
- name_l[i] = name;
- roll_l[i] = roll;
- All_method_call();
- result();
- break;
- }
- }
- }
- }
- }
- }
- }
- if (choice == 2) {
- line_break();
- System.out.println("You are the student");
- line_break();
- Scanner n = new Scanner(System.in);
- System.out.println("Enter your name: ");
- String name = n.next();
- System.out.println("Enter your roll: ");
- String roll = n.next();
- for (int i=0; i < name_l.length;i++) {
- if (name_l[i] == name && roll_l[i] == roll){
- System.out.println("--Access granted to the user: " + name_l[i]);
- line_break();
- System.out.println("========================================================================================================");
- System.out.printf("%12s | %12s | %12s | %12s | %12s | %12s | %12s|" , "Name", "Roll.no", "quizes", "Assign", "OHT1", "OHT2","Terminal");
- System.out.printf("%12s | %12s | %12s | %12s | %12s | %12s | %12s|" , name_l[i], roll_l[i], quiz_m[i], assig_m[i], OHT1_m[i], OHT2_m[i], Finals_m[i]);
- System.out.println("========================================================================================================");
- }
- }
- }
- }
- }
- public static void line_break(){
- System.out.println();
- System.out.println();
- }
- public static void quiz() {
- style8();
- double quiz_marks ;
- Scanner input = new Scanner(System.in);
- System.out.println("Enter the marks of the quiz");
- quiz_marks = input.nextInt();
- System.out.println("Enter the total marks of the quiz: ");
- double total_quiz_marks;
- total_quiz_marks = input.nextInt();
- System.out.print("15% weightage of quiz: ");
- double quiz15percent;
- quiz15percent = (quiz_marks*100/total_quiz_marks *15/100);
- quiz15percent =Math.round(quiz15percent*100.0)/100.0;
- System.out.println(quiz15percent);
- for(int i =0; i<= quiz_m.length; i++) {
- if (quiz_m[i] == 0) {
- quiz_m[i] = quiz15percent;
- break;
- }
- }
- style8();
- line_break();
- }
- public static void assignment() {
- style8();
- double assig_marks ;
- Scanner input = new Scanner(System.in);
- System.out.println("Enter the marks of the assignment");
- assig_marks = input.nextInt();
- System.out.println("Enter the total marks of the assignment: ");
- double total_assig_marks;
- total_assig_marks = input.nextInt();
- System.out.print("10% weightage of assigment: ");
- double assig10percent;
- assig10percent = (assig_marks*100/total_assig_marks *10/100);
- assig10percent = Math.round(assig10percent*100.0)/100.0;
- System.out.println(assig10percent);
- for(int i =0; i<= assig_m.length; i++) {
- if (assig_m[i] == 0) {
- assig_m[i] = assig10percent;
- break;
- }
- }
- style8();
- line_break();
- }
- public static void OHT1() {
- style8();
- double OHT1_marks ;
- Scanner input = new Scanner(System.in);
- System.out.println("Enter the marks of the Sessional 1");
- OHT1_marks = input.nextInt();
- System.out.println("Enter the total marks of the Sessional 1: ");
- double total_OHT1_marks;
- total_OHT1_marks = input.nextInt();
- System.out.print("10% weightage of Sessional 1: ");
- double OHT10percent;
- OHT10percent = (OHT1_marks*100/total_OHT1_marks *10/100);
- OHT10percent = Math.round(OHT10percent*100.0)/100.0;
- System.out.println(OHT10percent);
- for(int i =0; i<= OHT1_m.length; i++) {
- if (OHT1_m[i] == 0) {
- OHT1_m[i] = OHT10percent;
- break;
- }
- }
- style8();
- line_break();
- }
- public static void OHT2() {
- style8();
- double OHT2_marks ;
- Scanner input = new Scanner(System.in);
- System.out.println("Enter the marks of the Sessional 2");
- OHT2_marks = input.nextInt();
- System.out.println("Enter the total marks of the Sessional 2: ");
- double total_OHT2_marks;
- total_OHT2_marks = input.nextInt();
- System.out.print("15% weightage of Sessional 2: ");
- double OHT15percent;
- OHT15percent = (OHT2_marks*100/total_OHT2_marks *15/100);
- OHT15percent = Math.round(OHT15percent*100.0)/100.0;
- System.out.println(OHT15percent);
- for(int i =0; i<= OHT2_m.length; i++) {
- if (OHT2_m[i] == 0) {
- OHT2_m[i] = OHT15percent;
- break;
- }
- }
- style8();
- line_break();
- }
- public static void Finals() {
- style8();
- double Finals_marks;
- Scanner input = new Scanner(System.in);
- System.out.println("Enter the marks of the Finals");
- Finals_marks = input.nextInt();
- System.out.println("Enter the total marks of the Finals: ");
- double total_Finals_marks;
- total_Finals_marks = input.nextInt();
- System.out.print("15% weightage of Finals: ");
- double Finals50percent;
- Finals50percent = (Finals_marks*100/total_Finals_marks *50/100);
- Finals50percent = Math.round(Finals50percent*100.0)/100.0;
- System.out.println(Finals50percent);
- for(int i =0; i<= Finals_m.length; i++) {
- if (Finals_m[i] == 0) {
- Finals_m[i] = Finals50percent;
- break;
- }
- }
- style8();
- line_break();
- }
- public static void result(){
- for (int i = 0; i < name_l.length; i++) {
- if (name_l[i] != null){
- style5();
- System.out.println("The following is the record for student: " + name_l[i]);
- System.out.println("The Roll number of the student is : " + roll_l[i]);
- line_break();
- System.out.println("The projected total in quiz is : " + quiz_m[i]);
- System.out.println("The projected total in assignment is : " + assig_m[i]);
- System.out.println("The projected total in Sessional 1 is : " + OHT1_m[i]);
- System.out.println("The projected total in Sessional 2 is : " + OHT2_m[i]);
- System.out.println("The Projected total in Terminal is : " + Finals_m[i]);
- double end_result = quiz_m[i]+assig_m[i]+OHT1_m[i]+OHT2_m[i]+Finals_m[i];
- double p_result = Math.round(end_result*100.0)/100.0;
- System.out.println("The end result out of 100 is: "+ end_result);
- line_break();
- if (end_result <= 50) {
- System.out.println("The student is Fail and the grade is F");
- }
- if (50 <= p_result && p_result <= 54) {
- System.out.println("The student is on probation and the grade is D");
- }
- if (55 <= p_result && p_result <= 59) {
- System.out.println("The student is on probation and the grade is C-");
- }
- if (60 <= p_result && p_result <= 64) {
- System.out.println("The CGPA is 2.0 and the grade is C");
- }
- if (65 <= p_result && p_result <= 69) {
- System.out.println("The CGPA is 2.3 and the grade is C+");
- }
- if (70 <= p_result && p_result <= 74) {
- System.out.println("The CGPA is 2.7 and the grade is B-");
- }
- if (75 <= p_result && p_result <= 79) {
- System.out.println("The CGPA is 3.0 and the grade is B");
- }
- if (80 <= p_result && p_result <= 84) {
- System.out.println("The CGPA is 3.3 and the grade is B+");
- }
- if (85 <= p_result && p_result <= 89) {
- System.out.println("The CGPA is 3.7 and the grade is A");
- }
- if (p_result >= 89){
- System.out.println("The CGPA is 4.0 and the grade is A+");
- }
- wh_tab();
- }
- }
- style5();
- line_break();
- }
- public static void All_method_call() {
- quiz();
- assignment();
- OHT1();
- OHT2();
- Finals();
- result();
- }
- //#========================== NAME UPDATE ================================#
- public static void name_change() {
- Scanner input = new Scanner(System.in);
- System.out.println("Type the name of the student you want to update");
- String name = input.nextLine();
- for (int i = 0; i < name_l.length; i++) {
- if(name.equals(name_l[i])){
- System.out.println("Type the UPDATED NAME: ");
- String new_name = input.nextLine();
- name_l[i] = new_name;
- System.out.println("---Change Successful---");
- System.out.println(name_l[i]);
- line_break();
- result();
- }
- }
- }
- //#=======================================================================#
- //#======================== ROLL UPDATE ==================================#
- public static void roll_change() {
- Scanner input = new Scanner(System.in);
- System.out.println("Type the roll number of the student you want to update");
- String roll = input.nextLine();
- for (int i = 0; i < name_l.length; i++) {
- if(roll.equals(roll_l[i])){
- System.out.println("Type the UPDATED ROLL NUMBER: ");
- String new_roll = input.nextLine();
- roll_l[i] = new_roll;
- System.out.println("---Change Successful---");
- line_break();
- result();
- }
- }
- }
- //#========================================================================#
- //#========================== DELETE RECORD =============================#
- public static void delete_record(){
- Scanner input = new Scanner(System.in);
- System.out.println("Type the name of the student you want to delete record of: ");
- String name = input.nextLine();
- for (int i = 0; i < name_l.length; i++) {
- if(name.equals(name_l[i])){
- name_l[i] = null;
- roll_l[i] = null;
- quiz_m[i] = 0;
- System.out.println("---Delete Successful---");
- result();
- }
- }
- }
- //#========================================================================#
- //#======1====================== QUIZ RECORD UPDATE ==============================#
- public static void quiz_entry_change(){
- Scanner input = new Scanner(System.in);
- System.out.println("Enter the name of the student you want to enter Quiz marks: ");
- String name = input.nextLine();
- for (int i = 0; i <name_l.length; i++) {
- if(name.equals(name_l[i])){
- System.out.println("Enter Quiz Marks for student ");
- int quiz_marks = input.nextInt();
- quiz_m[i] = quiz_marks;
- System.out.println("---Change Successful---");
- System.out.println(quiz_m[i]);
- result();
- }
- }
- }
- //#================================================================================#
- //#=============================== ASSIGNMENT RECORD UPDATE ===============================#
- public static void assigment_entry(){
- Scanner input = new Scanner(System.in);
- System.out.println("Enter the name of the student you want to enter Assignment marks: ");
- String name = input.nextLine();
- for (int i = 0; i < name_l.length; i++) {
- if(name.equals(name_l[i])){
- System.out.println("Enter Assignment Marks for student ");
- int assig_marks = input.nextInt();
- assig_m[i] = assig_marks;
- System.out.println("---Change Successful---");
- result();
- }
- }
- }
- //#==========================================================================================#
- //#=========================== SESSIONAL 1 RECORD UPDATE ==================================#
- public static void OHT1_entry(){
- Scanner input = new Scanner(System.in);
- System.out.println("Enter the name of the student you want to enter Sessional 1 marks: ");
- String name = input.nextLine();
- for (int i = 0; i < name_l.length; i++) {
- if(name.equals(name_l[i])){
- System.out.println("Enter new Sessional 1 Marks for student ");
- int OHT1_marks = input.nextInt();
- OHT1_m[i] = OHT1_marks;
- System.out.println("---Change Successful---");
- result();
- }
- }
- }
- //#========================================================================================#
- //#============================= SESSIONAL 2 RECORD UPDATE =============================#
- public static void OHT2_entry(){
- Scanner input = new Scanner(System.in);
- System.out.println("Enter the name of the student you want to enter Sessional 2 marks: ");
- String name = input.nextLine();
- for (int i = 0; i < name_l.length; i++) {
- if(name.equals(name_l[i])){
- System.out.println("Enter new Sessional 2 Marks for student ");
- int OHT2_marks = input.nextInt();
- OHT1_m[i] = OHT2_marks;
- System.out.println("---Change Successful---");
- result();
- }
- }
- }
- //#==================================== TERMINAL UPDATE ====================================#
- public static void Terminal_entry(){
- Scanner input = new Scanner(System.in);
- System.out.println("Enter the name of the student you want to enter Sessional 2 marks: ");
- String name = input.nextLine();
- for (int i = 0; i < name_l.length; i++) {
- if(name.equals(name_l[i])){
- System.out.println("Enter new Sessional 2 Marks for student ");
- int Finals_marks = input.nextInt();
- Finals_m[i] = Finals_marks;
- System.out.println("---Change Successful---");
- result();
- }
- }
- }
- //#========================================================================================#
- public static void style1(){
- System.out.println("-----------------------------------------------");
- }
- public static void style2(){
- System.out.println("-----------------------------------------------");
- }
- public static void style3(){
- System.out.println("################################################");
- }
- public static void style4(){
- System.out.println("................................................");
- }
- public static void style5(){
- System.out.println("************************************************");
- }
- public static void style6(){
- System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- }
- public static void style7(){
- System.out.println("++++++++++++++++++++++++++++++++++++++++++++++++");
- }
- public static void style8(){
- System.out.println("================================================");
- }
- public static void wh_tab() {
- System.out.println("========================================================================================================");
- System.out.printf("%12s| %12s| %12s| %12s| %12s| %12s| %12s|\n", "Name", "Roll.no", "quizes", "Assign", "OHT1", "OHT2","Terminal");
- for (int i = 0; i < name_l.length; i++){
- if (name_l != null && roll_l != null && quiz_m[i] != 0){
- System.out.printf("%12s| %12s| %12s| %12s| %12s| %12s| %12s|\n" , name_l[i], roll_l[i], quiz_m[i], assig_m[i], OHT1_m[i], OHT2_m[i], Finals_m[i]);
- }
- }
- System.out.println("========================================================================================================");
- }
- public static void modifi_pane(){
- System.out.println("-To Change name and roll. no of current user. Press 1");
- System.out.println("-To Delete Record of a current user. Press 2");
- System.out.println("-To Change Quiz Marks of a student. Press 3");
- System.out.println("-To Change Assignment marks of student. Press 4");
- System.out.println("-To Change OHT1 Marks of a student. Press 5");
- System.out.println("-To Change OHT2 Marks of a student. press 6");
- System.out.println("-To Change Terminal Marks of a student. Press 7");
- System.out.println("-Again Entry Press 8");
- System.out.println("-To End the Program. Press 0");
- line_break();
- }
- }
Add Comment
Please, Sign In to add comment