Question: Write a shell script that when READing a integer number, determines (and reports) if it is even or odd. You should prompt the user to

Write a shell script that when READing a integer number, determines (and reports) if it is even or odd. You should prompt the user to enter a number, then issue a statement similar to “Your number is even.” or “Your number is odd”. Hint, look at man for expr. This should be tested and run accurately and completely for full credit.

Step by Step Solution

3.40 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a simple shell script that accomplishes this task bash binbash echo ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!