Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIS129 - Project 2 1) Write a program that will take the information from two data files and produce an output file. 2) The script

image text in transcribedimage text in transcribed

CIS129 - Project 2 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 project 2.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 313.123.4567 Carol 248.344.5576 Mary 313.449.1390 Ted 248.496.2204 Alice 616.556.4458 Bob Tuesday 3 Carol Monday 15 Ted Sunday 10 Alice Wednesday 17 Dave Friday 23 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 ********* **** ***** 3 pm 248.344.5576 313.123.4567 616.556.4458 3 am 5 pm Carol Bob Alice Nobody Dave Mary Ted MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAY 11pm 734.838.9800 313.449.1390 248.496.2204 9 am 10 am *** AND *** ************************ Student name... Project 2 CIS 129 Sec # Current Date/time ********************** Name ***** On-Call ****** Phone ***** Start Time ********** 248.344.5576 313.123.4567 616.556.4458 15:00 hours 03:00 hours 17:00 hours Carol Bob Alice Nobody Dave Mary Ted MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAY 734.838.9800 313.449.1390 248.496.2204 23:00 hours 09:00 hours 10:00 hours 5) Upload your fully functioning script, two output files AND two input files to Moodle. That is 5 files in total! CIS129 - Project 2 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 project 2.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 313.123.4567 Carol 248.344.5576 Mary 313.449.1390 Ted 248.496.2204 Alice 616.556.4458 Bob Tuesday 3 Carol Monday 15 Ted Sunday 10 Alice Wednesday 17 Dave Friday 23 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 ********* **** ***** 3 pm 248.344.5576 313.123.4567 616.556.4458 3 am 5 pm Carol Bob Alice Nobody Dave Mary Ted MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAY 11pm 734.838.9800 313.449.1390 248.496.2204 9 am 10 am *** AND *** ************************ Student name... Project 2 CIS 129 Sec # Current Date/time ********************** Name ***** On-Call ****** Phone ***** Start Time ********** 248.344.5576 313.123.4567 616.556.4458 15:00 hours 03:00 hours 17:00 hours Carol Bob Alice Nobody Dave Mary Ted MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAY 734.838.9800 313.449.1390 248.496.2204 23:00 hours 09:00 hours 10:00 hours 5) Upload your fully functioning script, two output files AND two input files to Moodle. That is 5 files in total

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Anti Fraud Risk And Control Workbook

Authors: Peter Goldmann, Hilton Kaufman

1st Edition

0470496533, 978-0470496534

More Books

Students also viewed these Accounting questions