Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 76 pages
Exam (elaborations)

PAT Phase 3 (100%)

Document preview thumbnail
Preview 4 out of 76 pages

Phase 3 of IT Practical Assessment Task including pie charts, advanced SQL and encryption, with a final grade of 100%.

Content preview

Eva Trope
Yeshiva College
Coding Document

,Table of Contents

App……………………………………………………………………………………………………………………………………………………3

Classes………………………………………………………………………………………………….……………………………………………4

Client…………………………………………………………………………………………………………………………………….4

ClientManager………………………………………………………………………………………………………………………6

ClientValidation…………………………………………………………………………………………………………………….9

ConnectDB………………………………………………………………………………………………………………………….11

Product……………………………………………………………………………………………………………………………….13

ProductManager…………………………………………………………………………………………………………………15

ProductValidation……………………………………………………………………………………………………………….19

Sale…………………………………………………………………………………………………………………………….……….21

SaleManager………………………………………………………………………………………………………………….……24

SaleValidation………………………………………………………………………………………………..……………………27

View…………………………………………..……………………………………………………………………………………………………31

AddClientScreen…………………………………………………………………………………………..……………………..31

AddProductScreen………………………………………………………………………………………………………………33

AddSaleScreen…………………………………………………………………………………………………………….………35

AnalyticsOptionsScreen………………………………………………………………………………………………………38

ClientAnalyticsScreen………………………………………………………………………………………………….………41

ClientScreen……………………………………….…………………………………………………………………….…………45

EditClientScreen…………………………………………………………………………………………………….……………49

EditProductScreen……………………………………………………………………………………………………….………52

EditSaleScreen…………………………………………………………………………………………………….………………55

LoginScreen…………………………………………………………………………………………………………………………59

ProductScreen……………………………………….……………………………………………………………………………62

ProvinceAnalyticsScreen……………………………………………………………………………………………………..66

SaleScreen…………………………………………………………………………………………………………………………..70

SalesAnalyticsScreen…………………………………………………………………………………………….....…………74




2

, App
1 package app;
2
3 import view.LoginScreen;
4
5 public class app {
6
7 public static void main(String[] args) {
8 // Create an instance of the LoginScreen view
9 LoginScreen loginScreen = new LoginScreen();
10
11 // Set the visibility of the LoginScreen to true, making it visible to the
user
12 loginScreen.setVisible(true);
13 }
14
15 }
16




3

, Classes
1 package classes;
2
3 // The Client class represents a client with properties such as ID, name, and
area.
4
5 public class Client {
6
7 private int clientID; // Private variable to store the client ID.
8 private String clientName; // Private variable to store the client name.
9 private String area; // Private variable to store the area of the client.
10 private String area2; // Private variable to store additional information
(email) about the client.
11
12 // Constructor that initializes a Client object with the specified ID, name,
area, and email.
13 public Client(int clientID, String clientName, String area, String email) {
14 this.clientID = clientID;
15 this.clientName = clientName;
16 this.area = area;
17 this.area2 = email;
18 }
19
20 // Constructor that initializes a Client object with the specified name,
area, and email.
21 public Client(String clientName, String area, String email) {
22 this.clientName = clientName;
23 this.area = area;
24 this.area2 = email;
25 }
26
27 // Method to get the client ID.
28 public int getClientID() {
29 return clientID;
30 }
31
32 // Method to set the client ID.
33 public void setClientID(int clientID) {
34 this.clientID = clientID;
35 }
36
37 // Method to get the client name.

4

Document information

Schooljaar
200
Uploaded on
February 3, 2025
Number of pages
76
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$9.68

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
evatrope
3.8
(4)
Sold
17
Followers
4
Items
6
Last sold
1 month ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions