Introduction Kindergarten Enrolment Subsystem
UML Class Diagram
UML Use Case Diagram
Cyclomatic Complexity public void actionPerformed (ActionEven Event){1 if (event.getSource()==NewBut) { SearchStudent form = new SearchStudent(); }2 If(event.getSource()==MenuBut) { Menu form = new Menu(); } If(event.getSource()==ResetBut){3 txtCalPrice1.setText(“0”); txtCalPrice2.setText(“0”); txtCalPrice3.setText(“0”); txtAmountPay.setText(“0”); } String input1=txtCalPrice1.getText(); String input2=txtCalPrice2.getText();4 String input3=txtCalPrice3.getText(); String input4=txtAmountPay.getText(); int num1;i int num2; int num3; int AmountPay; int subtotal=0; int fullAmount=0;5 num1=Integer.parseInt(input1); num2=Integer.parseInt(input2); num3=Integer.parseInt(input3); subTotal=num1+num2+num3;6 if (event.getSource()==CalculateBut){ txtsubTotal.setText(“RM “+subtotal); }7 AmountPay = Integer.parseInt (input4);8 fullAmount = AmountPay – subtotal;9 public void main (String args[]){ Calculate design = new Calculate(); Design.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }
10 9 8 7 6 5 4 3 2 1 R1 R2 R3 R4 R5 P1 P2 P3 P4
Design Pattern Creational Pattern The Builder Pattern The creational pattern describes the best way to create instance of objects.  The Builder Pattern is used when each portion of the codes are devided to complete each task.   Separates the construction of complex objects from their representation.   Derived from searchStudent() public void actionPerformed(ActionEvent event){ if(event.getSource()==Menubutton){ menu form=new menu();  //goes to menu  form.setVisible(true); } if(event.getSource()==newButton){ form.setVisible(true); } //call calculate record
public void actionPerformed(ActionEven event){ nt){ String input1=txtCalPrice1.getText(); String input2=txtCalPrice2.getText(); String input3=txtCalPrice3.getText(); String input4=txtCalPrice4.getText(); String input5=txtAmountPAy.getText(); int num1; int num2; int num3; int num4; int subTotal=0; int AmountPay; int fullAmount=0; num1=Integer.parseInt(input1); num2=Integer.parseInt(input2); num3=Integer.parseInt(input3); num4=Integer.parseInt(input4); subTotal=num1+num2+num3+num4; if(event.getSource()==CalculateBut){ txtSubTotalAmount.setText("RM "+subTotal); } //subtotal AmountPay=Integer.parseInt(input5); fullAmount=AmountPay-subTotal; if(event.getSource()==CalculateChargeBut){ 1a1BackCharge.setText("RM "+fullAmount); } //on charge amount in back charge }
Structural Pattern Adapter Pattern This patterns advantage is it makes unrelated or irrelevant of interface class work together which then will support multiple compatibility. public class subOffer extends JFrame implements ActionListener{ JButton MenuButton=new JButton("Menu"); public subOffer(){ JPanel p5=new JPanel(); p5.add(Menubutton); Menubutton.setSize(40,20); Menubutton.addActionListener(this); public void actionPerformed(ActionEvent event){ if(event.getSource()==Menubutton){ this.setVisible(true); }
Facade The Facade Pattern hides what is happening behind the program but only display what its supposed to do. It allows user to change the codes without requiring changes in the client code. if (event.getSource()==Search{ String number=txtNum.getText(); if(number.equals("1")){ 1a1StudentName.setText("Rachele Regis"); 1a1StudentAge.setText("4"); 1a1StudentAddress.setText("No34, Desa Palma"); 1a1GuardianName.setTest("Madhu"); 1a1GuardianNumber.setTest("012-3456789"); 1a1Date1.setText("26/3/2006"); 1a1StudentStatus1.setText("Enrolled"); newButton.setVisible(true); txtNum.setText("");
Behavior Pattern Chain of Responsibility A communication between objects that permit number of classes to handle a number of request without knowing the capacity or working of another class. Would be to handle and manipulate one or more object. It also reduces the coupling between classes. It gives user the added flexibility in distributing responsibilities between objects.
Derived from searchStudent() if(event.getSource()==EnrolButton){ this.setVisible(false); enrolStudent form=new enrolStudent(); // Goes enrol student form form.setVisible(true); } //show enrol form if(event.getSource()==subOffer){ this.setVisible(false); SubjectOffer form=new SubjectOffer();  //goes subject offered form form.setVisible(true); }//find subject offered if(event.getSource()==Search){ this.setVisible(false); SearchStudent form=new SearchStudent(); //goes search student form form.setVisible(true); }//call search student form }

More Related Content

PDF
Java Week10 Notepad
PDF
6. function
PPTX
C Programming Language Part 7
DOC
Unit 4 (1)
PPTX
C Programming Language Part 6
PPTX
C Programming Language Step by Step Part 5
PPTX
C Programming Language Part 8
PPTX
C Programming Language Part 4
Java Week10 Notepad
6. function
C Programming Language Part 7
Unit 4 (1)
C Programming Language Part 6
C Programming Language Step by Step Part 5
C Programming Language Part 8
C Programming Language Part 4

What's hot (18)

PPSX
Functions in c
PPT
functions
PPTX
C Programming Language Part 9
PPSX
C programming function
PPTX
Function
PPTX
Functions in C
PPTX
Dti2143 chapter 5
PPTX
C Programming Language Part 11
PPTX
Functions
PDF
Recursion concepts by Divya
DOC
C important questions
PDF
Stack concepts by Divya
DOCX
PPTX
FLOW OF CONTROL-NESTED IFS IN PYTHON
PPTX
Presentation on function
PDF
Functions in c
functions
C Programming Language Part 9
C programming function
Function
Functions in C
Dti2143 chapter 5
C Programming Language Part 11
Functions
Recursion concepts by Divya
C important questions
Stack concepts by Divya
FLOW OF CONTROL-NESTED IFS IN PYTHON
Presentation on function
Ad

Similar to csc 208 (20)

PPT
ASP.NET System design 2
PDF
Design Patterns
PPTX
Gof design patterns
PPTX
DDD Modeling Workshop
PPTX
PPT
6 class design
PPTX
Sofwear deasign and need of design pattern
PPT
Analysis and design of entreprise with uml
PDF
Software Engineering : OOAD using UML
PDF
Java beginners meetup: Introduction to class and application design
PDF
Design Patterns
PDF
Java Design Patterns Tutorial | Edureka
PPTX
Introduction to Design Patterns
PDF
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
PPTX
Design pattern part 2 - structural pattern
PPT
lecture10-patterns.ppt
PPT
lecture10-patterns.ppt
PPTX
Design pattern of software words computer .pptx
PPTX
2. Design patterns. part #2
PPTX
Design pattern
ASP.NET System design 2
Design Patterns
Gof design patterns
DDD Modeling Workshop
6 class design
Sofwear deasign and need of design pattern
Analysis and design of entreprise with uml
Software Engineering : OOAD using UML
Java beginners meetup: Introduction to class and application design
Design Patterns
Java Design Patterns Tutorial | Edureka
Introduction to Design Patterns
Unified Modeling Language (UML), Object-Oriented Programming Concepts & Desig...
Design pattern part 2 - structural pattern
lecture10-patterns.ppt
lecture10-patterns.ppt
Design pattern of software words computer .pptx
2. Design patterns. part #2
Design pattern
Ad

Recently uploaded (20)

PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
August Patch Tuesday
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Architecture types and enterprise applications.pdf
PPT
Module 1.ppt Iot fundamentals and Architecture
DOCX
search engine optimization ppt fir known well about this
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
Hybrid model detection and classification of lung cancer
PDF
Unlock new opportunities with location data.pdf
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
Chapter 5: Probability Theory and Statistics
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPT
What is a Computer? Input Devices /output devices
Developing a website for English-speaking practice to English as a foreign la...
August Patch Tuesday
DP Operators-handbook-extract for the Mautical Institute
Architecture types and enterprise applications.pdf
Module 1.ppt Iot fundamentals and Architecture
search engine optimization ppt fir known well about this
Taming the Chaos: How to Turn Unstructured Data into Decisions
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Hybrid model detection and classification of lung cancer
Unlock new opportunities with location data.pdf
Getting started with AI Agents and Multi-Agent Systems
Chapter 5: Probability Theory and Statistics
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Assigned Numbers - 2025 - Bluetooth® Document
NewMind AI Weekly Chronicles – August ’25 Week III
A comparative study of natural language inference in Swahili using monolingua...
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
What is a Computer? Input Devices /output devices

csc 208

  • 3. UML Use Case Diagram
  • 4. Cyclomatic Complexity public void actionPerformed (ActionEven Event){1 if (event.getSource()==NewBut) { SearchStudent form = new SearchStudent(); }2 If(event.getSource()==MenuBut) { Menu form = new Menu(); } If(event.getSource()==ResetBut){3 txtCalPrice1.setText(“0”); txtCalPrice2.setText(“0”); txtCalPrice3.setText(“0”); txtAmountPay.setText(“0”); } String input1=txtCalPrice1.getText(); String input2=txtCalPrice2.getText();4 String input3=txtCalPrice3.getText(); String input4=txtAmountPay.getText(); int num1;i int num2; int num3; int AmountPay; int subtotal=0; int fullAmount=0;5 num1=Integer.parseInt(input1); num2=Integer.parseInt(input2); num3=Integer.parseInt(input3); subTotal=num1+num2+num3;6 if (event.getSource()==CalculateBut){ txtsubTotal.setText(“RM “+subtotal); }7 AmountPay = Integer.parseInt (input4);8 fullAmount = AmountPay – subtotal;9 public void main (String args[]){ Calculate design = new Calculate(); Design.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }
  • 5. 10 9 8 7 6 5 4 3 2 1 R1 R2 R3 R4 R5 P1 P2 P3 P4
  • 6. Design Pattern Creational Pattern The Builder Pattern The creational pattern describes the best way to create instance of objects. The Builder Pattern is used when each portion of the codes are devided to complete each task. Separates the construction of complex objects from their representation. Derived from searchStudent() public void actionPerformed(ActionEvent event){ if(event.getSource()==Menubutton){ menu form=new menu(); //goes to menu form.setVisible(true); } if(event.getSource()==newButton){ form.setVisible(true); } //call calculate record
  • 7. public void actionPerformed(ActionEven event){ nt){ String input1=txtCalPrice1.getText(); String input2=txtCalPrice2.getText(); String input3=txtCalPrice3.getText(); String input4=txtCalPrice4.getText(); String input5=txtAmountPAy.getText(); int num1; int num2; int num3; int num4; int subTotal=0; int AmountPay; int fullAmount=0; num1=Integer.parseInt(input1); num2=Integer.parseInt(input2); num3=Integer.parseInt(input3); num4=Integer.parseInt(input4); subTotal=num1+num2+num3+num4; if(event.getSource()==CalculateBut){ txtSubTotalAmount.setText("RM "+subTotal); } //subtotal AmountPay=Integer.parseInt(input5); fullAmount=AmountPay-subTotal; if(event.getSource()==CalculateChargeBut){ 1a1BackCharge.setText("RM "+fullAmount); } //on charge amount in back charge }
  • 8. Structural Pattern Adapter Pattern This patterns advantage is it makes unrelated or irrelevant of interface class work together which then will support multiple compatibility. public class subOffer extends JFrame implements ActionListener{ JButton MenuButton=new JButton("Menu"); public subOffer(){ JPanel p5=new JPanel(); p5.add(Menubutton); Menubutton.setSize(40,20); Menubutton.addActionListener(this); public void actionPerformed(ActionEvent event){ if(event.getSource()==Menubutton){ this.setVisible(true); }
  • 9. Facade The Facade Pattern hides what is happening behind the program but only display what its supposed to do. It allows user to change the codes without requiring changes in the client code. if (event.getSource()==Search{ String number=txtNum.getText(); if(number.equals("1")){ 1a1StudentName.setText("Rachele Regis"); 1a1StudentAge.setText("4"); 1a1StudentAddress.setText("No34, Desa Palma"); 1a1GuardianName.setTest("Madhu"); 1a1GuardianNumber.setTest("012-3456789"); 1a1Date1.setText("26/3/2006"); 1a1StudentStatus1.setText("Enrolled"); newButton.setVisible(true); txtNum.setText("");
  • 10. Behavior Pattern Chain of Responsibility A communication between objects that permit number of classes to handle a number of request without knowing the capacity or working of another class. Would be to handle and manipulate one or more object. It also reduces the coupling between classes. It gives user the added flexibility in distributing responsibilities between objects.
  • 11. Derived from searchStudent() if(event.getSource()==EnrolButton){ this.setVisible(false); enrolStudent form=new enrolStudent(); // Goes enrol student form form.setVisible(true); } //show enrol form if(event.getSource()==subOffer){ this.setVisible(false); SubjectOffer form=new SubjectOffer(); //goes subject offered form form.setVisible(true); }//find subject offered if(event.getSource()==Search){ this.setVisible(false); SearchStudent form=new SearchStudent(); //goes search student form form.setVisible(true); }//call search student form }