Sep 29, 2020 COP-4710 Due: Thu, Oct 8
Before 11:50pm

Assignment-5

The purpose of this assignment is to familiarize with the design of embedded SQL retrieval queries using the Company database ( Tables  and   Description ) in XAMPP.

Write an embedded SQL program (asg5.java) with Java as the
host language that would prompt for an input text file (that contains one project number per line with no hyphens or spaces).

For each input line,
if the input project number value is invalid, print a invalid input message
otherwise, output the following:
    - project number
    - name of the project
    - name of the department that controls the project
    - name of the manager of the department
    - the number of work assignments for the project
Also, list the average number of work assignments per (valid) project (a single value for the entire input file)
Assume that the input file contains at least one valid project number.

Use dynamic SQL queries with parameters and the queries should not use any data values (given in the sample data set).
You are encouraged to use several embedded dynamic SQL queries and share values among them through Java variables.
Upload the embedded query program (asg5.java) with adequate comments through Canvas with its output and the following declaration:

========================================================

Name: _________________________

Panther-ID: x x x -_______

Course: COP 4710

Assignment#: 5

Due: Thu, Oct 8, 2020

I hereby certify that this work is my own and none of
it is the work of any other person.

Signature: ______________________

=========================================================