Write a bashbin program to perform a search of an employee

Assignment Help Application Programming
Reference no: EM13347681

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: EM13347681

Questions Cloud

Questionin november 2010 each and every mzumbe university : questionin november 2010 each and every mzumbe university student had an income of 150000 per month facing the price of
Jane stevens is 30 years old and she is reviewing her : jane stevens is 30 years old and she is reviewing her retirement plans.nbsp she currently has 20000 in a retirement
Te following questions are focused on a specific lender : the following questions are focused on a specific lender borrower relationshiphowever each question is independent so
Question 1nbsp assume you have the following personal loans : question 1nbsp assume you have the following personal loans outstanding and have allocated 675 per month as your
Write a bashbin program to perform a search of an employee : write a bashbin program to perform a search of an employee list. the file emplist has the format given in the table
1for each of the subsequent pairs of investments a through : 1.for each of the subsequent pairs of investments a through e identify which has the lowest risk by placing an x to the
Question 1mega industries corporation has eighteen years of : question 1.mega industries corporation has eighteen years of a bond outstanding to maturity an 8.25 nominal coupon with
Investment management assignmentprepare a report : investment management assignmentprepare a report recommending the appropriate investment of aud3 million for a five
Question 1a whatnbsp was the neolithic revolutionnbsp : question 1a. whatnbsp was the neolithic revolution?nbsp describe carefully what basic changes caused this revolution

Reviews

Write a Review

Application Programming Questions & Answers

  Basic requirementsscreen one has three edittext views and

basic requirementsscreen one has three edittext views and one button.the edittext views allow you to enter a students

  Problemthe manager of the super supermarket would like to

problemthe manager of the super supermarket would like to be able to compute the unit price for products sold there. to

  Problem 1 create a simple shell basically your shell should

problem 1. create a simple shell. basically your shell should read the line from standard input parse the line with

  In this project you will create an application to run in

in this project you will create an application to run in the amazon ec2 service and you will also create a client that

  In a typical cpu implementation the design-cycle starts

in a typical cpu implementation the design-cycle starts with a cc based instruction set simulator iss of the target

  Part - 1 object-oriented designwrite a program that allows

part - 1 object-oriented designwrite a program that allows an instructor to keep a grade book. each students has scores

  Problem descriptionyou are working as an engineer for a

problem descriptionyou are working as an engineer for a materials manufacturing research lab and have been asked to

  Tavelling salesman tsp problem on the l1-metric plane

travelling salesman tsp problem on the l1-metric plane problem description a travelling salesman wants to make a tour

  Imagine that your company has decided to expand to the web

imagine that your company has decided to expand to the web. you want to reuse some data entry code that has been

  Design a program that models the worms behavior in the

design a program that models the worms behavior in the subsequent scenarioa worm is moving toward an apple. each time

  Assessmentthe project reports will be evaluated in three

assessmentthe project reports will be evaluated in three areasaccuracy and completeness of computationsyou have to get

  Produce a project plan and an interim description of the

produce a project plan and an interim description of the project developmentproblem 1. northern lights alert service.

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