/Traveling-Salesman-Appointment-Scheduler

Submission for WGU's Software II - Advanced Java Concepts – C195. Uses JavaFX, MySQL & SQLite

Primary LanguageJavaScript

This is the repository for WGU's Software 2 project, class C195. Below the divider are the requirements for the end user.
After completion, I've remade the database in SQLite in order to preserve this project once I no longer have access to the MYSQL database used.
The program was made and compiled in NetBeans, per the school's requirement.
I utilized the Data Access Object pattern & MVC pattern to organize my files. If you change the location of your system to Germany, the login screen will display in the appropriate language.

We were not given instruction on how this should look or operate. A CLI program would have been a valid submission.

Technologies used:

Programming language: Java, JavaFX, SQL
Databases: MySQL, SQLite
Design Patterns: Data Access Object, MVC view pattern
Tools Used: NetBeans 8.2 to write & compile (per WGU requirement), MYSQL Workbench 8, SQLite studio, SceneBuilder

NOTE
This program has the following shortcomings:

  • Single user only program. The database is accessed at the start and closing only. If multiple people used this program at once, there would be data conflicts.
  • Prone to SQL injections. SQL queries are passed to the database through input fields. SQL attacks like Little Bobby Tables by XKCD would work on this program.
  • The username & password are both "test".

SCENARIO

You are working for a software company that has been contracted to develop a scheduling desktop user interface application.
The contract is with a global consulting organization that conducts business in multiple languages and has main offices in Phoenix, Arizona; New York, New York; and London, England.
The consulting organization has provided a MySQL database that your application must pull data from. The database is used for other systems and therefore its structure cannot be modified.

The organization outlined specific business requirements that must be included as part of the application.
From these requirements, a system analyst at your company created solution statements for you to implement in developing the application.
These statements are listed in the requirements section.

REQUIREMENTS

Your submission must be your original work.
No more than a combined total of 30% of the submission and no more than a 10% match to any one individual source can be directly quoted or closely paraphrased from sources, even if cited correctly.
An originality report is provided when you submit your task that can be used as a guide.

You must use the rubric to direct the creation of your submission because it provides detailed criteria that will be used to evaluate your work.
Each requirement below may be evaluated by more than one rubric aspect. The rubric aspect titles may contain hyperlinks to relevant portions of the course.

You are not allowed to use frameworks or external libraries.
The database does not contain data, so it needs to be populated.
You must use “test” as the username and password to log-in.

A. Create a log-in form that can determine the user’s location and translate log-in and error control messages (e.g., “The username and password did not match.”) into two languages.

B. Provide the ability to add, update, and delete customer records in the database, including name, address, and phone number.

C. Provide the ability to add, update, and delete appointments, capturing the type of appointment and a link to the specific customer record in the database.

D. Provide the ability to view the calendar by month and by week.

E. Provide the ability to automatically adjust appointment times based on user time zones and daylight saving time.

F. Write exception controls to prevent each of the following. You may use the same mechanism of exception control more than once, but you must incorporate at least two different mechanisms of exception control.

  • scheduling an appointment outside business hours
  • scheduling overlapping appointments
  • entering nonexistent or invalid customer data
  • entering an incorrect username and password

G. Write two or more lambda expressions to make your program more efficient, justifying the use of each lambda expression with an in-line comment.

H. Write code to provide an alert if there is an appointment within 15 minutes of the user’s log-in.

I. Provide the ability to generate each of the following reports:

  • number of appointment types by month
  • the schedule for each consultant
  • one additional report of your choice

J. Provide the ability to track user activity by recording timestamps for user log-ins in a .txt file.
Each new record should be appended to the log file, if the file already exists.

K. Demonstrate professional communication in the content and presentation of your submission.