Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 2 - Linux Shell Scripting - Worth 5 points. - Create a sh file named: program2.sh - Set the permissions for this this *.sh

Part 2 - Linux Shell Scripting - Worth 5 points. - Create a sh file named: program2.sh - Set the permissions for this this *.sh file using this command to make it executable: chmod 755 *.sh - program2.sh should append your name and the current date and time to a NEW file called results.txt -program2.sh should then do the following: How: - Ask the user to enter a number. - Verify that the number is between 1 and 50, inclusive. - If the number is not between 1 and 50, then keep asking the user to enter a number until it is valid. - Use a loop from 1 to the value entered by the user - Sum the results of all the included numbers, but do not include any output yet. - After the loop ends, display the sum and append it to the results.txt file on a new line as follows Sum of numbers is xxx

Zip your files into one file named FirstnameLastnameA2.zip submit them in the Assignment 2 dropbox. Only include the folowing files: - MemoryCalculator.java - program2.sh Do not include any other files or folders in your submission. Note that a Java program that does not compile and run and do something useful will earn 0 points. A shell script that does not do any part of the assignment will not earn any points either.

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_2

Step: 3

blur-text-image_3

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions

Question

Understand the importance of strategic HR planning.

Answered: 1 week ago

Question

What are the best practices for managing a large software project?

Answered: 1 week ago

Question

How does clustering in unsupervised learning help in data analysis?

Answered: 1 week ago

Question

3. What might you have done differently

Answered: 1 week ago

Question

4. Did you rethink your decision?

Answered: 1 week ago

Question

3. Did you seek anyones advice?

Answered: 1 week ago