The purpose of this question is to develop a simple calculator for solving a quadratic equation of the form Ax2 + Bx + C = 0. The solution of the quadratic equation can be classified as a real or an imaginary solution. In this question you are required to apply two formulas for solving the quadratic equation; the discriminant formula and quadratic formula.
The discriminant formula is applied for determining whether the quadratic equation has a real or imaginary solution, where the quadratic formula is applied for finding the real solution(s) of the quadratic equation.
If the quadratic equation has a real solution, the calculator should find that real solution(s) by applying the quadratic formula. But if the quadratic equation has an imaginary solution, the calculator should notify only that there is an imaginary solution without finding that solution.
In this question you might need to make a quick revision through the internet to remember how to solve the quadratic equation by using discriminant and quadratic formulas.
The quadratic calculator should be implemented by using HTML tags and PHP codes. The final code with 2 snapshots should be provided in your answer sheet.
The calculator software system starts by browsing the calculator web page with:
Note:
The design and the layout of the calculator's web page are left intentionally for the student to show his/her creativity in this part.
The PHP part of the calculator software system should include two functions as described below:
The calculator software system should satisfy the following requirements:
A Business students' association is a new ITC college in Bahrain that keeps information about students, courses and instructors in an Excel sheet. Some of this information is shown in figure 1 below.
Student | Course | Instructor | |||||
Id | Name | Major | Code | Name | Grade | Id | Name |
111 | Majed | ITC | M257 | Advanced Java | A | 110011 | Jamal |
112 | Ali | ITC | M363 | Software Engineering | C | 110012 | Faten |
111 | Majed | ITC | M129 | Calculus | A | 110011 | Jamal |
114 | Sameer | BAS | M257 | Advanced Java | C | 110011 | Jamal |
115 | Maha | ITC | M363 | Software Engineering | C | 110012 | Faten |
114 | Sameer | BAS | GR131 | Bahrain History | B | 110015 | Yusuf |
115 | Maha | ITC | M132 | Linear Algebra | D | 110020 | Waleed |
113 | Batool | English | EL111 | Elementary English | B+ | 110035 | Habib |
111 | Majed | ITC | AR112 | Arabic Language | C+ | 110015 | Yousef |
112 | Ali | ITC | M257 | Advanced Java | A | 110011 | Jamal |
Figure 1: Student Information Excel Sheet.
This sheet does not satisfy the basic design' rules of database. In this question, as a database designer/developer, you are requested to:
A new ITC College in Bahrain is planning to build a new database system for holding information about students, courses, projects and tutors. 'Student' and Project are part of the information that the new college wants to store in the database. These tables are shown below in figure 2 and figure 3. The new college will use MySQL for building the database.
Student ID | Student First Name | Student Last Name | Project Id |
111 | Suhaila | Salman | 1005 |
222 | Mazen | Hamad | 1003 |
333 | Fayrooz | Faris | 1008 |
444 | Irfan | Salem | 1009 |
555 | Hadi | Farhan | 1007 |
666 | Fatima | Ali | 1004 |
777 | Waleed | Khamis | 1006 |
888 | Maysoon | Jaber | 1001 |
999 | Jana | Mohammad | 1002 |
Figure 2: Student Table
Project Id | Project Name | Start Date | Completion Date |
1001 | Search for Driver Coash | 18/10/2018 | 15/05/2019 |
1002 | Dawrat | 25/08/2018 | 13/04/2019 |
1003 | Private Teacher | 31/01/2018 | 21/02/2019 |
1004 | Appointment for Dental Clinic | 28/12/2017 | 24/04/2018 |
1005 | House Budget Expenses | 16/04/2017 | 19/08/2018 |
1006 | Food Order | 22/11/2016 | 14/03/2017 |
1007 | Car Rental Management System | 20/12/2016 | 27/2/2017 |
1008 | Flat Rental Management System | 18/02/2017 | 18/06/2017 |
1009 | Cold Store Accounting System | 30/11/2018 | 25/5/2019 |
Figure 3: Project Table
Based on the above two tables, answer the following 6 questions: