Program to perform a search of an employee list

Assignment Help Programming Languages
Reference no: EM131614

Write a /bash/bin program to perform a search of an employee list. The file emplist has the format given in the table below and contains information about an upcoming paintball game.

Columns

Data field

01 - 11

Department

12 - 26

Player name

27-39

Team Name

40- 54

Target

55-58

Status (full-time, retired, etc.)

Example of the " emplist " file... (The first two lines represent columns numbers, not in file)

0        1         2         3         4         5         6         7
1234567890123456789012345678901234567890123456789012345678901234567890
Marketing  Ken Whillans   Eagles       Karen Thompson FULL
President  Sandeep Jain   Wimps        Ken Whillans   CONT
...
etc...
Program Requirements
  • Continually prompt the user to enter a player's name or portion thereof (should not have to re-run program for each search).  Use "ZZZ" to exit program.
  • Ask the user if s/he wishes to see the corresponding target (T/t) or team name (M/m); reject any other input with an error message ("Please enter only T or M.") and re-prompt user.
  • Search only the player field of the data file displaying the all occurrences of matching player(s) and corresponding target or team name.
  • E.g. A search for the target of "Ken", should not display any information about "Sandeep". i.e. the search must be restricted to the information in the player column.
  • Use the sample data file from the course website.
  • If no player is found, your program should output a short message to the effect "No such player."
  • If you create any temporary files, they must be cleaned up by your program before it terminates.

Sample execution (not exhaustive testing):

$ search
Player name? ohn
See target (T/t) or team name (M/m)? j
Please enter only T or M.
See target (T/t) or team name (M/m)? t
John Thompson Cher
John Jacobs   Davinder Singh
Dean Johnson  Sandeep Jain
Player name?..

Reference no: EM131614

Questions Cloud

Income adjustment : To maintain utility constant an income adjustment brought the student to consume the basket (61,92). What are substitution effects and the income ?
Retirement plans : How much will Jane have in her retirement account immediately after she makes her last contribution in Year 40, assuming a return on her investments of 9%?
Lender - borrower relationship : The following questions are focused on a specific Lender / Borrower relationship
Budget allocation : Budget allocation - calculate the end values at the end of the respective periods.
Program to perform a search of an employee list : Write a /bash/bin program to perform a search of an employee list.
Investment comparison problems : This Assignment consists Investment Comparison Problems.
Bonds nominal yield to maturity : What is the current yield on these bonds and  What is the bond's nominal yield to maturity.
Investment management assignment : Prepare a report recommending the appropriate investment of AUD$3 million for a five year investment period for a particular investment client.
Neolithic revolution : What  was the Neolithic Revolution. Explain

Reviews

Write a Review

Programming Languages Questions & Answers

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Application development and programming languages

Application Development and Programming Languages,  Programming languages have evolved since the First Generation Languages (1GLs) in the 1940s. The 1GLs were machine languages, which interacted directly with hardware. 2GLs were assembly languages. F..

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Html/css

"Validating Your Work" Please respond to the following:  Describe attribute minimization. Explain what would happen if you tried to validate a page containing instances of attribute minimization. Propose a solution to this problem.

  Accuracy and completeness of computations

Analysis right and you have to develop a plausible argument to "prove" that your analysis is correct

  Write a paper on memory management

Write a paper on Memory Management

  Questions on programing problem with the process of analysis

Questions on Programing Problem with the process of analysis and reflection that went on as you developed the project.

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Create a multi-threaded competition

Create a multi-threaded competition in which opposing Robin Hoods will attack one another and try to take each other's gold coins.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd