Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help writing proper Java code for a notification feature on a GUI interface. The code is just a small section of the system.

I need help writing proper Java code for a notification feature on a GUI interface. The code is just a small section of the system.

Here are some notes and an algorithm I tried to throw together if it's of any help.

Notifications of Error- Notifications Class

Assume that it will deal with Exceptions in Java (See lab 5 and notes for help)

Customer Field

All the data entered in the field is correct and in a proper format

- If the data passes all the checks (maybe have a value that increments to keep track if all the checks and tests have been passed)

- Notification displayed Congratulations, your account has been created! Please await a response from a sales representative after the approval of your transfer

Entered a letter in the contact number field: Checks if a letter is in the contact information

Loop to run through each character in the phone number

If its not an integer then

Notification is displayed There is a letter present in the number entered. Please renter your information

If it is an integer then

The system passes and moves on to the next character in the loop

If the name fields have an integer (or maybe a special character minus hyphen): Checks if a integer is in the name

Loop to run through each character in the name

If its not an letter then

Notification is displayed There is a number present in the name entered. Please renter your information

If it is an letter then

The system passes and moves on the next character in the loop

Empty field: Checks if a specific field is empty

If first name = or

Display a notification Please enter your first name

Capital letters in email: Checks if a capital letter has been entered in the email address

Loop to run through each character in the email address

If its not an integer then it is checked for uppercase (nested)

Uppercase

x represents the letter from the email address collected by the loop

x1 = Character.isUpperCase(x);

If x1 is true then

Notification is displayed There is an uppercase letter present in the email address. Please renter your details

If x1 is false

The letter is lower case and the program can move on

If it is an integer, pass and move on to the next letter

(Tip: add pass in the else to exit the if and loop to the next character inimage text in transcribed the email address)

public static boolean isUpperCase(char ch) (Declaration)

Notifications for Errors Requirement ID: 4- Notification function Use Case: Notifing user of changes in the status of processes Rationale: Knowing the status of processes is vital to the smooth operation of this information heavy business. User Requirement: The system shall allow authorized personnel to quickly view the status of processes. System Requirements: 4.1 Consequent to the verification of process completion, the system shall allow the user to view a prompt saying a process has been completed. 4.2 The system shall provide a means to view if a process is incomplete. 4.3 The system shall provide a means to view if a process is deemed to be on-going (still in- progress) Acceptance Criteria: 1. Upon completion of a process, a prompt will be sent 1 minute later showing the user that the process has been completed. 2. At the end of a work day a prompt will be sent to the user's pc which processes are still in progress. Relates to/Dependencies: Tracks customers Progress, Real-Time data Collection and Transfer Notifications for Errors Requirement ID: 4- Notification function Use Case: Notifing user of changes in the status of processes Rationale: Knowing the status of processes is vital to the smooth operation of this information heavy business. User Requirement: The system shall allow authorized personnel to quickly view the status of processes. System Requirements: 4.1 Consequent to the verification of process completion, the system shall allow the user to view a prompt saying a process has been completed. 4.2 The system shall provide a means to view if a process is incomplete. 4.3 The system shall provide a means to view if a process is deemed to be on-going (still in- progress) Acceptance Criteria: 1. Upon completion of a process, a prompt will be sent 1 minute later showing the user that the process has been completed. 2. At the end of a work day a prompt will be sent to the user's pc which processes are still in progress. Relates to/Dependencies: Tracks customers Progress, Real-Time data Collection and Transfer

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Content Audits And Inventories A Handbook

Authors: Paula Ladenburg Land

1st Edition

1937434389, 978-1937434380

More Books

Students also viewed these Accounting questions

Question

A. 100000 . $49.000 c. \$12.080 0. 134.00c

Answered: 1 week ago