
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question

Transcribed Image Text:Create a fee invoice application for students attending Valence College, a college in the State of Florida. There are two types of students: graduate and
undergraduate. Out-of-state undergraduate students pay twice the tuition of Florida-resident
undergraduate students (all students pay the same health and id fees). A graduate student is either a PhD or a MS student. PhD students don't take any
courses, but each has an advisor and a research subject. Each Ms and Phd student must be a teaching assistant for one undergraduate course. MS students can
only take graduate courses. A course with a Course Number (crn) less than 5000 is considered an undergraduate course, and courses with a 5000 crn or higher
are graduate courses.
CRN Course Credit Hours.
4587 MAT 236 4
4599 COP 220 3
8997 GOL 124 1
9696 COP 100 3
4580 MAT 136 1
2599 COP 260 3
1997 CAP 424 1
5696 KOL 110 2
7587 MAT 936 5
2599 COP 111 3
6997 GOL 109 1
2696 COP 101 3
5580 MAT 636 2
2099 COP 268 3
4997 CAP 427 1
3696 KOL 910 2
Example of an MS student
Name Emily Jones
Id em1254
Courses taken 7587 and 8997
TA for 1997
Example of an PhD student:
Name Zaydoun BenSellam
Id zb5954
Advisor Gary Richarson
Research Subject Fuzzy Topology
TA for 2599
It costs, for undergraduate Florida residents, $120.25 per credit hour, and all MS students pay $300 per credit hour. in addition to $35.00 charged for
health and id services. Undergraduate Students with gpa of 3.5 or higher receive a discount of 25% when the total payments exceed $500. PhD students pay a
separate research fee of $700.
A fee invoice for an undergraduate student should look like
VALENCE COLLEGE
ORLANDO FL 10101
Fee Invoice Prepared for Student:
KJ2959-KARIM JONES (Karim, a FL resident, has gpa higher than 3.5 gpa).
1 Credit Hour = $120.25
CRN CR_PREFIX CR_HOURS
4599 COP 220 3 $ 360.75
4587 MAT 236 4 $ 481.00
$35.00
Health & id fees
$ 876.75
-$219.18
TOTAL PAYMENTS $ 657.56
A fee invoice for an MS student should look like.
VALENCE COLLEGE
ORLANDO FL 10101
Fee Invoice Prepared for Student:
KA2959-ERICKA JUNAID
1 Credit Hour = $300.00
CRN CR PREFIX CR HOURS
6997 GOL 109 1 $ 300.00
Health & id fees $35.00
tal Payments $335.00
A fee invoice for an PhD student should look like
VALENCE COLLEGE
ORLANDO FL 10101
Fee Invoice Prepared for Student:
J02978-John JUNAID John's research subject:
Climate Change
RESEARCH
Climate Change $ 700.00
Health & id fees $ 35.00
Total Payments $ 735.00
1) In addition to the DriverClass class, you will need to add all the classes shown on the inheritance hierarchy shown above. (Student, Graduate Student,
Undergraduate Student, Ms Student and PhdStudent). Both Student and Graduate Student are to be made abstract. The Student class must contain the abstract
method:
abstract public void printInvoice ();
2) The abstract method, printInvoice, is to be overridden to display the right fee invoice, depending on the type of the student. Data fields of all classes
are to be made private.
3) Do not change anything in the DriverClass.java (see skeleton
below). You may add your own methods or data whenever you see that becomes necessary. Just don't duplicate code!
4) Your job is to add the necessary code.
public class DriverClass {
![// DO NOT CHANGE ANYTHING IN THIS CLASS (DriverClass)
public static void main(String[] args) {
Student s;
S = new PhdStudent ("Zaydoun BenSellam",
"zb5954",
"Ga
"Gary Richarson",
"Fuzzy Topology",
2599 );
s.printInvoice ();
int[] gradCrns Taken = {7587,8997) ;
S = new MsStudent ( "Emily Jones",
"em1254",
gradCrns Taken,
1997);
s.printInvoice ();
int[] undergradCrns Taken = {4587,2599);
s new Undergraduate Student ("Jamila Jones".
"ja5225",
ja radCrns Taken,
3.0,
false);
s.printInvoice ();
}//end of main
}
abstract class Student (
public Student String name
}
abstract public void printInvoice ();
}
class Undergraduate Student extends Student {
public Undergraduate Student (String name, String id, int [] undergradCrns Taken, double gpa, boolean resident)
{
super (name, id);
}
String name, String id) {
@Override
public void printInvoice () {
}
}
abstract class Graduate Student extends Student {
public Graduate Student (String name, String id, int crn) {
//crn is the crn that the grad student is a teaching assistant for
super name, id);
}
}
class PhdStudent extends Graduate Student {
// ・・・
public PhdStudent (String name, String id, String advisor, String research Subject, int crn) {
//crn is the course number that the Phd student is a teaching assistant for
super name, id, crn );
}
@Override
public void printInvoice () {
}
}
class Ms Student extends Graduate Student {
public MsStudent (String name, String id, int [] gradCrns Taken, int crn) {
// gradCourses Taken is the array of the crns that the Ms student is taking
//crn is the course number that the Phd student is a teaching assistant for
super name, id, crn);
}
@Override
public void printInvoice () {
}](https://content.bartleby.com/qna-images/question/44870f31-83c6-452e-ba54-77702704a3ca/a880de3a-d11d-4840-a61e-659c3de1e745/69g7an4_thumbnail.png)
Transcribed Image Text:// DO NOT CHANGE ANYTHING IN THIS CLASS (DriverClass)
public static void main(String[] args) {
Student s;
S = new PhdStudent ("Zaydoun BenSellam",
"zb5954",
"Ga
"Gary Richarson",
"Fuzzy Topology",
2599 );
s.printInvoice ();
int[] gradCrns Taken = {7587,8997) ;
S = new MsStudent ( "Emily Jones",
"em1254",
gradCrns Taken,
1997);
s.printInvoice ();
int[] undergradCrns Taken = {4587,2599);
s new Undergraduate Student ("Jamila Jones".
"ja5225",
ja radCrns Taken,
3.0,
false);
s.printInvoice ();
}//end of main
}
abstract class Student (
public Student String name
}
abstract public void printInvoice ();
}
class Undergraduate Student extends Student {
public Undergraduate Student (String name, String id, int [] undergradCrns Taken, double gpa, boolean resident)
{
super (name, id);
}
String name, String id) {
@Override
public void printInvoice () {
}
}
abstract class Graduate Student extends Student {
public Graduate Student (String name, String id, int crn) {
//crn is the crn that the grad student is a teaching assistant for
super name, id);
}
}
class PhdStudent extends Graduate Student {
// ・・・
public PhdStudent (String name, String id, String advisor, String research Subject, int crn) {
//crn is the course number that the Phd student is a teaching assistant for
super name, id, crn );
}
@Override
public void printInvoice () {
}
}
class Ms Student extends Graduate Student {
public MsStudent (String name, String id, int [] gradCrns Taken, int crn) {
// gradCourses Taken is the array of the crns that the Ms student is taking
//crn is the course number that the Phd student is a teaching assistant for
super name, id, crn);
}
@Override
public void printInvoice () {
}
SAVE
AI-Generated Solution
info
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
Unlock instant AI solutions
Tap the button
to generate a solution
to generate a solution
Click the button to generate
a solution
a solution
Knowledge Booster
Similar questions
- (1) for each Customer (e.g., customer C), display all other customers who have higher salary than this Customer (e.g., customer C). (use inner join, display each customer’s ID, name, and all higher salaries, you don’t need to display information about the customers who have higher salary.) (2) for each Customer (e.g., customer C), display all other customers who have higher salary and are younger than this Customer (e.g., customer C).arrow_forwardBelow are some rows of the PROVIDERS table for a factory: PCODE 10192 98411 0489035 NAME Hans, Inc. Tools and More Motors Inc. PHONE 231 - 3092 231-1029 993 - 1821 All providers from the factory zone of the city start with 231. You want to get the providers that are in the factory zone of the city. Which of the following is more appropriate? O a. O b. SELECT * FROM PROVIDERS WHERE PHONE LIKE '% 231' O C. O d. SELECT * FROM PROVIDERS WHERE PHONE LIKE $231%' SELECT * FROM PROVIDERS WHERE PHONE LIKE 231 SELECT * FROM PROVIDERS WHERE PHONE LIKE '%231%'arrow_forwardQuery 3: Write a parameter query to display the names of all prospects each member tried to recruit based on the member’s first name and the member’s last name you input. List the member’s First Name, member’s Last Name, prospect’s First Name, and prospect’s Last Name (in this order in the query grid). Display the member’s First Name Heading as Member First Name, member’s Last Name Heading as Member Last Name, prospect’s first name heading as Prospect First Name, and prospect’s last name heading as Prospect Last Name. Sort the list by Member Last Name, Member First Name, Prospect Last Name, and Prospect First Name, all ascending order. (WE ARE USING ACCESS SO I AM JUST TRYING TO UNDERSTAND WHAT TO PUT AND PLUG IN ETC. USE MY PICTURES AS REFERRENCE!)arrow_forward
- Create a fee invoice application for students attending Valence College, a college in the State of Florida. There are two types of students: graduate and undergraduate. Out-of-state undergraduate students pay twice the tuition of Florida-resident undergraduate students (all students pay the same health and id fees). A graduate student is either a PhD or a MS student. PhD students don't take any courses, but each has an advisor and a research subject. Each Ms and Phd student must be a teaching assistant for one undergraduate course. MS students can only take graduate courses. A course with a Course Number (crn) less than 5000 is considered an undergraduate course, and courses with a 5000 crn or higher are graduate courses. CRN Course Credit Hours. 4587 MAT 236 4 4599 COP 220 3 8997 GOL 124 1 9696 COP 100 3 4580 MAT 136 1 2599 COP 260 3 1997 CAP 424 1 5696 KOL 110 2 7587 MAT 936 5 2599 COP 111 3 6997 GOL 109 1 2696 COP 101 3 5580 MAT 636 2 2099 COP 268 3 4997 CAP 427 1 3696 KOL 910 2…arrow_forwardThe header record of a batch file contains totals of items in the file. Each time the file is processed, the totals are also updated. Nightly, after the batch processes, the relevant data fields are summed and compared with the totals. Unbalanced conditions are reported and corrected. This example describes: a) Segregation of duties b) Application output control c) Application edit check d) Applicaiton input controlarrow_forwardThe InstantRide Driver Relationship team wants to learn how many travels each driver has done in the month of October. You need to send them the DRIVER_ID, and two calculated columns: DAY and RIDES. The DAY column is calculated using the DAY() function with the TRAVEL_START_TIME as the argument. The RIDES column is calculated by using the COUNT() function to determine the number of rides given for each day. Filter the results with the MONTH function.arrow_forward
- ABC department store keeps information on departments, products, and employees. For each department, the department ID, name and office phone extension are stored. For each employee, the employee ID, and name are stored. A department can have many employees and each employee can be assigned to multiple departments. Each department is managed by one employee. Each department sells many products and each product is sold by only one department. Products can be shoes, clothes, or other miscellaneous. The product ID and price are stored for each product. No additional data is stored for the miscellaneous products. For all shoes, shoe type, shoe color and shoe size are also stored. For all clothes, the season (one of: winter, spring, summer, year-round) is stored. Clothes can be shirts, pants or dresses. For shirts, collar size, sleeve size and type are stored. For pants, waist size, length and type are stored. For dresses, size, and type are stored. Draw the Crow’s foot ERD (including all…arrow_forwardSQL Use the IN operator to list the item ID and description of each item in category FSH or BRD.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education