Write program that will take information from two data files

Assignment Help Computer Engineering
Reference no: EM131937223

Project Assignment

1) Write a program that will take the information from two data files and produce an output file.

2) The script will be called project2.sh and the output files will be called project2.12.out and project2.24.out. See item e below.

3) Requirements of the script:

a) Use a Bourne shell for script processing.

b) Output redirection should be accomplished within the script, not on the command line.

c) Fully document the script. Explain what you're doing. Points will be deducted for any undocumented entries.

d) Must use the input data files exactly as shown below. You will create them.

e) Accept a Command Line Parameter of either 12 or 24 to determine how to display the start time information on the report. If no parameter is passed, default to 12 hour standard. NOTE: This will also affect the name of the output file that is created.

f) You MUST use a looping structure within the script to process one or both data files.

g) The contents of each of the input data files are shown below.

Input file 1: project2.1.input             Input file 2: project2.2.input
Dave 734.838.9800                         Bob Tuesday 3
Bob 313.123.4567                          Carol Monday 15
Carol 248.344.5576                        Ted Sunday 10
Mary 313.449.1390                         Alice Wednesday 17
Ted 248.496.2204                          Dave Friday 23
Alice 616.556.4458                         Mary Saturday 9

4) The output of your script must look like:

************************
Student name...
Project 2 CIS 129 Sec #
Current Date/time
************************

Name

On-Call

Phone

Start Time

*****

******

*****

*********

Carol

MONDAY

248.344.5576

3 pm

Bob

TUESDAY

313.123.4567

3 am

Alice
Nobody
Dave

WEDNESDAY
THURSDAY
FRIDAY

616.556.4458

734.838.9800

5 pm

11pm

Mary

SATURDAY

313.449.1390

9 am

Ted

SUNDAY

248.496.2204

10 am

*** AND ***

************************
Student name...
Project 2 CIS 129 Sec #
Current Date/time
************************

Name

On-Call

Phone

Start Time

*****

******

*****

*********

Carol

MONDAY

248.344.5576

15:00 hours

Bob

TUESDAY

313.123.4567

03:00 hours

Alice
Nobody
Dave

WEDNESDAY
THURSDAY
FRIDAY

616.556.4458

734.838.9800

17:00 hours

23:00 hours

Mary

SATURDAY

313.449.1390

09:00 hours

Ted

SUNDAY

248.496.2204

10:00 hours

5) Upload your fully functioning script, two output files AND two input files to Moodle.

Reference no: EM131937223

Questions Cloud

Calculate the enthalpy change : Calculate the enthalpy change, ?H, for this reaction per mole of X.
Compute the investment income that should be reported : (a) Record these transactions in the General Ledger accounts of the Aslan County General Fund.
What is the change in internal energy of the gas : A gas is compressed from an initial volume of 5.75 L to a final volume of 1.21 L by an external pressure of 1.00 atm.
Determine the withdrawal amount that occurs on the investor : On his 66th birthday the investor will make her first annual retirement withdrawal, and the final withdrawal will take place on her 93rd birthday.
Write program that will take information from two data files : Write a program that will take the information from two data files and produce an output file. Use a Bourne shell for script processing.
What is the annualized yield based on this expectation : An investor buys a T-bill with 120 days to maturity and $50,000 par value for $45,800. He plans to sell it after 90 days, and forecasts a selling price .
What is the correct form of the conversion factor : What is the correct form of the conversion factor needed to convert the number of moles of O2 reacted to the number of moles of Fe2O3 produced?
Standard thermodynamic data : Using standard thermodynamic data at 298K, calculate the change when 2.240 moles of CO(g) react at standard.
How to draw orbitals : An important skill to learn is how to draw orbitals. Draw the 4dyz orbital (on the yz plane. Make sure to include shades to indicate the signs

Reviews

Write a Review

Computer Engineering Questions & Answers

  With increasing awareness of social determinants of health

With increasing awareness of the social determinants of health (SDoH) and the important contribution they have in shaping health outcomes,

  Investigate the capabilities and limitations of kerberos

The Kerberos security model is a part of both the DCE and CORBA standard families. Investigate the capabilities and limitations of Kerberos.

  Identifying and explaining the key components of a

identifying and describing the key components of a comprehensive disaster recovery plan for any incident that could

  Develop the logic for a program that would produce a table

Develop the logic for a program that would produce a table for the school. Each row represents the number of lessons taken: 0-9, 10-19, 20-29, and 30 or more.

  List the time for the worm finishes infecting all computers

List the time for the worm finishes infecting all vulnerable computers in each run; so you need to provide 3 time values.

  Write a java program on a good doctor

Write a java program on A good Doctor

  Outline the steps necessary to prepare a storage device

Outline the steps necessary to prepare a storage device for storing files. Identify and describe the tools used to prepare a storage device for storing files.

  A robot has a position and a method

A robot has a position and a method void move (Maze m) thatmodifies the position. Provide a common superclass Robot whose move method does nothing

  Benefits of utilizing the google

Specify how Google has made it possible for you to have access to the information you have gathered from Internet without your own computer? Provide at least two specific examples and benefits of utilizing the Google.

  Which term involves replacing the old system with new system

Which term involves replacing the old system with a new system? When does system conversion (direct, parallel, pilot, or phased) occur? During implementation, how is alpha testing different from beta testing?

  Implement a version of the rabin-karp algorithm to search

Implement a version of the Rabin-Karp algorithm to search for patterns in two-. dimensional text. Assume both pattern and text are rectangles of characters.

  Developing the modular program

Develop the modular program which asks user in order to enter the monthly costs for following expenses incurred from the operating his or her automobile: loan payment, gas, insurance, oil, tires, and maintenance.

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