Select Page

Your Perfect Assignment is Just a Click Away

Starting at \$8.00 per Page

100% Original, Plagiarism Free, Customized to Your instructions!

## SDSU Database Web Interface Array Function Reading Strings & Creating Tables Exercise

### Question Description

P1) Array Function

1-1) Write a function calculateUnion() that gets two arrays and finds the union of the elements of the two arrays. The function should return unique members (no duplicate members in the final result array).

1-2) Write a function calculateIntersection() that gets two arrays and finds the intersection of the elements of the two arrays. The function should return unique members (no duplicate members in the final result array).

1-3) Write a function calculateSetDiff() that gets two array arr1 and arr2 respectively and finds the arr1 – arr2 (all the elements that are a member of arr1 but not in arr2). The function should return unique members (no duplicate members in the final result array).

##### P2) Reading String and Creating a Table

We have the following data that we have read from the database. Each row is a single string.

1006 Barry Riles 559619412

1007 Cynthia Chance 456574136
1008 Justin Booth 629199458
1009 Darlene Ford 699943760
1010 Kevin Haynes 837467249
1011 Marjorie Broderick 696041024
1012 Robert Greco 689191573
1013 Lynn Cote 176484555
1014 Diane Wasser 239881571
1015 Fay Fay 772542172
1016 Joseph Thomas 607032507
1017 Molly Jones 560348529
1018 Richard Martinez 703071905
1019 Aaron Brown 421268302
1020 Lisa Cook 840376444

1) Put all the data in an array (each element of the array is a one row of data).

2) Then with a loop on this array, split each string into 4 parts: “ID”, “fName”, “lName” and “ssn” and store all the info in a new array.

3) Then run a loop on this new array and create a table that with columns “ID”, “fName”, “lName” and “ssn” and display the data in this table. The final output should be as follows.

 id Name Last_name Ssn 1006 Barry Riles 559619412 1007 Cynthia Chance 456574136 1008 Justin Booth 629199458 1009 Darlene Ford 699943760 1010 Kevin Haynes 837467249 1011 Marjorie Broderick 696041024 1012 Robert Greco 689191573 1013 Lynn Cote 176484555 1014 Diane Wasser 239881571 1015 Fay Fay 772542172 1016 Joseph Thomas 607032507 1017 Molly Jones 560348529 1018 Richard Martinez 703071905 1019 Aaron Brown 421268302 1020 Lisa Cook 840376444

P3) …

will be added after our Thursday session.

How to submit you work?

1) Add all the code for both of the parts to a Microsoft Word Documents file, with some sample run results (screenshot) added to the file and attach it.

2) Put all your code in a separate folder and compress (zip) it and attach it as the second file.

"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you A results."

## Our Service Charter

1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.