Question: As simple as possible Bash Script/shell script Please create each part in a separate file. 1) Create a positive numeric variable N and assigitsvalue as
As simple as possible
Bash Script/shell script Please create each part in a separate file. 1) Create a positive numeric variable "N" and assigitsvalue as an integer of your choice. Create a script that makesthe user guess the value of the variable you createdN. The user should be informedif the number he/she entered is greater or less than N. The game stops if the user guesses the value or if he/she enters-1. 2) Write a script that takesthe measurement of the side of a square from the user, calculates the area and the perimeter of this square, and thenprints the results on the screen. 3) Using Case statement condition create a program thattakes2 integersfrom the user and askshim/her to choose one number accordingto the following .1 to add those nunbers 2 to subtractthose numbers . 3 to multiply those numbers - 4to divide those numbers For each case, the result should be printed on the screen. The program should repeat on taking a choice from the user until he/she enters-1 asa choice 4) Create a script that asks the user to enter the list of his/her favorite courses and then store the entered data in an array. Print the courses entered from the last entered to the first one entered using afar loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
