can you do the task. write a basn scriot that can count number of davs trom todav and eacn ot cue dates. Recreate the functionality provided by your Java program and closelv as possible. Please try to


can you do the task.

write a basn scriot that can count number of davs

trom todav and eacn ot cue dates. Recreate the functionality provided by your Java program and closelv as possible. Please try to create with the

same variables ano tunctions

Then write a brief reflection in paragraph format (not a survey format) that cohesively explains in your own woras a comparson oetween pot

programming lanquages. For example:

• Were vou successful in recreatina the same program features as before? Why or why not?

What was similar between the two languages (bash script, Java source code) in their syntax or handling of concepts? What was different?

_ How many lines of code did you need to write to accent user innut? To comnute

arithmetic? To display output? Do you prefer one

over the other?

• What libraries did you have to import to complete your program? Could you have

completed your program without importing? Why or why not?

Include the Java source file, the bash script file, and markdown file in your repository.

Part 2. Shell Script vs Makefile

Write a Bash shell script file named build.sh containing the following functions:

  • compile (not run) your Java program. Provide user input using file redirection
  • run java class(es) that are provided by user supplied input parameters to the shell script.

Recompile the source file if it’s modified. Just run the file if it has not been modified.

– a function that will call the above two functions to

comple and run

Write a sample.sn tile that shows calling the functions defined above along with the bash version of the date calculator.

Write makefile targets that:

  • compile (not run) your Java program, using a user supplied input parameters) for your filename
  • run java class(es) that are provided by user supplied input parameters to the shell script.

Recompile the source file if it’s modified. Just run the file if it has not been modified.

– a target that will call the above two functions

Sample Run for Shell script and Make

Show the output of calling your script tunctions and makefile targets in a log. Remember, data to the java program should be provided by an input file using file redirection.

Include shell scripts, makefile, input file in your repository. Reflect over differences of working with shell script and makefile and include a brief

writeup in vour markaown Tormattea tile

What’s different? What’s similar? Which tasks are

easier. which are not as easv?

3. GNU Awk Program (Group Project)

-orm a small aroup with classmates and then write a

reflection of the experience.

Your group’s goal is to write one or more AWK program(s) collaboratively to read from structured data (i.e., CSV file) and print output. The program will be executed using GNU Make with a target named run. This target will call on other

lardets in vour maketie to run awk

programs

yvrite wit enouan detail that someone else can

replicate vour aroup’s process using the same

tools. Your descriotion should also include notes on

what went well (i.e. communication

structures, schedules, tools selected) and what didn’t go well.

4. Git Repository configurations

Set up a gitignore file in your repository. Ignore any files with the .class extension. Mac users

should include D$ Store in this file

Remove any existing * class file that is tracked in your repository. Mac users, please remove DS_Store files from your repository