How do I make exceptions to the code? I. IMPORTANT FACTS: CS112: Programming (2) - Group
Fantastic news! We've Found the answer you've been seeking!
Question:
How do I make exceptions to the code?
Transcribed Image Text:
I. IMPORTANT FACTS: • CS112: Programming (2) - Group Project Second Semester 2020-2021 • Deadline: Tuesday 13 April 2021 at 11:00 pm. Mark Returned: within one week. This assignment is a group piece of work (2-3 members), counts as 8% of your final mark. • The deadline is strict, and resubmission is NOT allowed. II. PROJECT OBJECTIVES The purpose of this project is to enable you to demonstrate your understanding of object oriented concepts in building a simulation of Student Registration System. You will be able to combine your knowledge of encapsulation, abstraction and inheritance that you have learnt throughout the semester to develop this system. The application has different types of users that are: Lecturer • Student Administrator Project consists from three phases: Phase 1: Designing the Structural Part and Build Java Classes. Phase 2: Exception Handling Part and interface Phase 3: Design Graphical User Interface. [1] III. PROJECT REQUIREMENTS Your task is to program all the following points in two phases: Phase 1: Designing the Structural Part and Build Java Classes. (1) Create a UML class diagram that models at least four classes (you can add more classes as you see necessary) as follows: • A class called Course with courseCode, courseName, and creditHours; • A class called student with studentID, StudentName, StudentEMail and StudentContact No • a superclass called Staff with StaffID, StafFname, StafLname, Contact Number and StaffAddress • a subclass of superclass Staff called Faculty Member (that inherits from Staff class) with three data fields are academic Rank, EmailID and academicSpecialization. a subclass of superclass Staff called AdministartorMember (that inherits from Staff class) with two data fields are AdminEmailID and Admin Specialization • a class teaching subclass inherits from the Faculty Member class with specific member variables representing the courses and Lecturers whom he/she is responsible of; (2) Create a project called Student Registration System (SRS) - TaibahCCSE and implement your class diagram that must include: Course, Faculty, student and administrator. (3) Declare some overloaded constructors with parameters for all classes, and some appropriate methods as you suggest. [2] (4) Executing your implementation using Console Application, In the main method, a menu should display the three types of users: • Student • Lecturer • Administrator (5) If the user is Faculty member, he should enter the ID to display their information (assignedCourses, maximum NumberOfCourses... etc). • Declare and implement methods to display the faculty members information, including the details of their courses (override toString()). (6) If the user is administrator, the following menu should be displayed: • Allocate course • • Drop course Print a report A. If allocate course is chosen (AddCourse(...)): • Ask the user to enter the course Id and the lecturer Id to allocate the mentioned course to the intended faculty member. B. If Drop course is chosen (dropCourse(...)): • Ask the user to enter the course Id and the lecturer Id to drop the mentioned course from the courses of the intended faculty member. (7) Print a report should display lists of courses and faculltymember. [3] Phase Two: Exceptions Handling Part and interface (1) Add exception handling for all classes that mentioned in phase 1 (section 1): A. Checked exceptions B. Unchecked exceptions Includes: general exceptions, invalid input, out of index for array, so on. C. Create one interface includes 2 methods that can be implement with any class. Phase Three: Design Graphical User Interface (2) Design the main page contains the following components: -Image view contains the image of the logo. -label contains project name Student Registration System - Login Screen with the following components Student Registration System (Login Screen) Parward Student Registration System 5 a) When pressing Login button, the following page appears: [4] I. IMPORTANT FACTS: • CS112: Programming (2) - Group Project Second Semester 2020-2021 • Deadline: Tuesday 13 April 2021 at 11:00 pm. Mark Returned: within one week. This assignment is a group piece of work (2-3 members), counts as 8% of your final mark. • The deadline is strict, and resubmission is NOT allowed. II. PROJECT OBJECTIVES The purpose of this project is to enable you to demonstrate your understanding of object oriented concepts in building a simulation of Student Registration System. You will be able to combine your knowledge of encapsulation, abstraction and inheritance that you have learnt throughout the semester to develop this system. The application has different types of users that are: Lecturer • Student Administrator Project consists from three phases: Phase 1: Designing the Structural Part and Build Java Classes. Phase 2: Exception Handling Part and interface Phase 3: Design Graphical User Interface. [1] III. PROJECT REQUIREMENTS Your task is to program all the following points in two phases: Phase 1: Designing the Structural Part and Build Java Classes. (1) Create a UML class diagram that models at least four classes (you can add more classes as you see necessary) as follows: • A class called Course with courseCode, courseName, and creditHours; • A class called student with studentID, StudentName, StudentEMail and StudentContact No • a superclass called Staff with StaffID, StafFname, StafLname, Contact Number and StaffAddress • a subclass of superclass Staff called Faculty Member (that inherits from Staff class) with three data fields are academic Rank, EmailID and academicSpecialization. a subclass of superclass Staff called AdministartorMember (that inherits from Staff class) with two data fields are AdminEmailID and Admin Specialization • a class teaching subclass inherits from the Faculty Member class with specific member variables representing the courses and Lecturers whom he/she is responsible of; (2) Create a project called Student Registration System (SRS) - TaibahCCSE and implement your class diagram that must include: Course, Faculty, student and administrator. (3) Declare some overloaded constructors with parameters for all classes, and some appropriate methods as you suggest. [2] (4) Executing your implementation using Console Application, In the main method, a menu should display the three types of users: • Student • Lecturer • Administrator (5) If the user is Faculty member, he should enter the ID to display their information (assignedCourses, maximum NumberOfCourses... etc). • Declare and implement methods to display the faculty members information, including the details of their courses (override toString()). (6) If the user is administrator, the following menu should be displayed: • Allocate course • • Drop course Print a report A. If allocate course is chosen (AddCourse(...)): • Ask the user to enter the course Id and the lecturer Id to allocate the mentioned course to the intended faculty member. B. If Drop course is chosen (dropCourse(...)): • Ask the user to enter the course Id and the lecturer Id to drop the mentioned course from the courses of the intended faculty member. (7) Print a report should display lists of courses and faculltymember. [3] Phase Two: Exceptions Handling Part and interface (1) Add exception handling for all classes that mentioned in phase 1 (section 1): A. Checked exceptions B. Unchecked exceptions Includes: general exceptions, invalid input, out of index for array, so on. C. Create one interface includes 2 methods that can be implement with any class. Phase Three: Design Graphical User Interface (2) Design the main page contains the following components: -Image view contains the image of the logo. -label contains project name Student Registration System - Login Screen with the following components Student Registration System (Login Screen) Parward Student Registration System 5 a) When pressing Login button, the following page appears: [4]
Expert Answer:
Answer rating: 100% (QA)
It looks like you have a detailed project description for a Student Registration System SRS for your CS112 course Heres a breakdown of the requirement... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
How do I make assumptions for the exit cap and discount rate in the following question using the screenshot below? "Estimate each propertys current value by calculating the present discounted value...
-
How do I write PHP code to read an XML file? I'm using Adobe Dreamweaver and I'm not sure what settings to put it on so that the software reads my code live (it says Forbidden whenever I do a .php...
-
Do as I say, not as I do. How does this statement relate to attitude models?
-
Evaluate the integrals in Problem. Check your answers by differentiating. (3x 2 - 4x - 4) dx
-
Some extreme bubbles are obvious with hindsight, after they burst. But how would you define a bubble? There are many examples of good news and rising stock prices, followed by bad news and falling...
-
The cornea behaves as a thin lens of focal length approximately 1.8 cm, although this varies a bit. The material of which it is made has an index of refraction of 1.38, and its front surface is...
-
At the end of 2010, Zeman, Corp., had total assets of $25 million and total liabilities of $13 million. Included in the assets were property, plant, and equipment with a cost of $9 million and...
-
PowerTrain Sports Inc. manufactures and sells two styles of All Terrain Vehicles (ATVs), the Mountain Monster, and Desert Dragon from a single manufacturing facility. The manufacturing facility...
-
Athens First S&L originated a pool containing 7 5 ten - year fully amortizing fixed interest rate mortgages with an average balance of $ 1 0 0 , 0 0 0 each. All mortgages in the pool carry an...
-
The Alfredo Fragrance Company produces only one product, a perfume called Hint of Elegance. Hint of Elegance consists of two secret ingredients blended into an exclusive fragrance, which is marketed...
-
Suppose you have n elements in the array 'a' numbered from 1 to n. It is possible to remove the i-th element of 'a' if the number a[i] and i are relatively co-prime i.e. gcd (a[i],i)=1. After an...
-
65 Teresa works as a junior financial planner with Ponzi Financial. Last month, she found out that the company uses misleading advertising regarding the returns on certain real estate investment...
-
Course- Arts and Cultural Tourism QUESTION: Read "The impact of community-based tourism in Kyrgyzstan" Express your opinion about the importance of community-based tourism in the industry, in...
-
To what extent does the cultural and historical context influence the interpretation and reception of mixed media artworks, particularly in terms of social commentary and cultural critique ?
-
Find the points where the two curves intersect. List your answers as points in the form (x, y). If there are no solutions, type "None". Answer (separate by commas): (f(x) = x-3x+ g(x) = x+1 3x+4)
-
This company is calculating the termination cash flow of one of its proposed projects. The firm will invest $10,000 for inventories of which $4,000 will be financed with Accounts Payable, at the...
-
Explain and fix the error of the following segments of codes: a) class SuperSubcatch ( public static void main (String args[]) { try ( int num1 0; int div 70 / a: ) catch (Exception e) {...
-
Discuss the concept of the looking-glass self. how do you think others perceive you? do you think most people perceive you correctly?
-
On September 14, 2012, Jay purchased a passenger automobile that is used 75 percent in his accounting business. The automobile has a basis for depreciation purposes of $35,000, and Jay uses the...
-
Ken (age 31) and Amy (age 28) Booth have brought you the following information regarding their income, expenses, and withholding for the year. They are unsure which of these items must be used to...
-
Sophie is a single taxpayer. For the first payroll period in October 2012, she is paid wages of $3,250 monthly. Sophie claims three allowances on her Form W-4. a. Use the percentage method to...
-
The water tank shown in Fig. 14.33 is supported by a hollow circular steel column. The tank, made of steel, is in the form of a thin-walled pressure vessel and has a capacity of 40,000 litres. Design...
-
Using the third-order Runge-Kutta method, solve Problem 11.15. Data From Problem 11.15:- Using the second-order Runge-Kutta method, solve the differential equation \(\ddot{x}+1000 x=0\) with the...
-
Linear acceleration method a. Assumes that acceleration varies linearly between \(t_{i}\) and \(t_{i}+\theta \Delta t ; \theta \geq 1\) b. Assumes that acceleration varies linearly between \(t_{i}\)...
Study smarter with the SolutionInn App