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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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