100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Presentation

IT Practical Assessment Task 2023 - Medication Management System - Code Dump

Rating
-
Sold
-
Pages
149
Uploaded on
11-11-2023
Written in
2023/2024

MediTrack is a comprehensive Medication Management System meticulously developed to meet the requirements of a programming assessment task, where it secured an impressive 95%. This Java-based application offers features such as student registration, medication tracking, and a user-friendly interface. The underlying SQL database ensures efficient data storage. By purchasing this package, you gain access to the entire source code, documentation, and database—a valuable resource for learning coding practices and design principles. Explore the intricacies of MediTrack and leverage it as a source of inspiration for your programming projects.

Show more Read less
Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course
Unknown
Schooljaar
200

Document information

Uploaded on
November 11, 2023
Number of pages
149
Written in
2023/2024
Type
Presentation
Person
Unknown

Subjects

Content preview

MEDITRACK
PHASE 3




Michaelhouse
231094020121

,15 October 2023 231094020121



DBManager Class
package meditrackapp;



import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.PreparedStatement;

import java.sql.ResultSet;

import java.util.ArrayList;

import java.util.List;

/**

*

* @author abevi

*/

public class DBManager

{

//Andrew Beviss-Challinor



Page | 1

,15 October 2023 231094020121



private static Connection conn = null;



//Connect to DB

public DBManager()

{

try

{

if (conn == null)

{

Class.forName("com.mysql.cj.jdbc.Driver");

conn = DriverManager.getConnection("jdbc:mysql://localhost/meditrackapp?"

+ "user=root&password=password");

System.out.println("Connected Successfully");

}

}

catch (Exception e)


Page | 2

, 15 October 2023 231094020121



{

System.out.println("ERROR : " + e);

}

}



//Get student from DB

public ArrayList<Student> getStudents()

{

ArrayList<Student> output = new ArrayList<Student>();



String sql = "SELECT * FROM tblstudents";



try

{

PreparedStatement p = conn.prepareStatement(sql);

ResultSet rs = p.executeQuery();


Page | 3
$12.37
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
andrewbeviss-challinor

Also available in package deal

Get to know the seller

Seller avatar
andrewbeviss-challinor
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
7
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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

Frequently asked questions