Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to write multiple conditions if the name is not found in file or password is wrong show the error message , and second condition

How to write multiple conditions if the name is not found in file or password is wrong show the error message , and second condition open class"Add" for Admin or class"Search" for User .

image text in transcribed

Problem: In this exam, we aim to implement a train management system. We have two actors: - Admin: responsible for adding the trains to the system - User: able to search for a train and make a reservation through the system; All the trains 'data will be stored in a file. It contains all the trains as Train Objects. In follow, we will explain the different GUIs of our system. 1. Login GUI: - If the admin login does not exsit in the database or the password is wrong, the system shows the following message : - The "Enter" button opens the page "Add Train" for the admin or the "Search Train" for the user. - The "Cancel" button cleans the JTextField and the JPasswordField

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

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

Know how to prepare for an interview prior to an applicants arrival

Answered: 1 week ago

Question

=+j Identify the challenges of training an international workforce.

Answered: 1 week ago