You are trying to get a job in a well-known database management company. During a job interview, a manager suggests you should be able to write a useless database access program named DB
Hi
Attached the input file also
Deadline: 19th nov 2022
You are trying to get a job in a well-known database management company. During a job interview, a manager suggests you should be able to write a useless database access program named DB2 (Dummy Bytes Too). The program should keep a table with 3 entries showing keywords to access Information in a file (table shown below). The only accepted input will be the keyword used to search a file for some information. The table will provide the byte location of the requested information, which will be some string with20 characters. Your program will access and display the 20 characters, starting at the position specified in the table.. Your mission is to write the DB2 program (it should be very short, less than 50 lines for sure) that reads the input, opens the file, skips to the desired location and displays the information. You must use the CYGWIN system or any UNIX/LINUX like system. WINDOWS solutions are not accepted since this is a test of your UNIX knowledge.
Program Table
Keyword Byte position
Intro 20
Pass 40
Fail 60
Next 80
File contents (file available on your portal)
01234567890123456789About grades in this You got an A, worked You get an F, failed Look for nursing ads
Example:
Input: pass
Output: You got an A, worked
Small variations are accepted in case the byte positions are wrong by 1 or 2
01234567890123456789About grades in thisYou got an A, workedYou get an F, failedLook for nursing ads!!!!!!!
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.