Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linux Create the following scripts in your scripts directory Name each script: exercise 1 , exercise 2 , . . . excercise 1 2 .

Linux
Create the following scripts in your scripts directory
Name each script: exercise1, exercise2,... excercise12.
cat each script to display
Run each script once.
Exercise 1: Please write a script that ask user to enter a password, and display it to screen. Use -s option for input the password. (read-secret script)
Exercise 2: Write the script to do the following, ask user to enter an integer, and output whether the given number is divisible by 3.(modify int-even-odd)
Exercise 3: Write a script that print all even number from n1 to n2, n1 and n2(Prompt and read) are provided by user. (while loop)(combine modify - while-count script + arithmetic_ops script)
Exercise 4: Write a menu script that has 3 option, (modify Example7 script
option 1: list all files current directory,
option 2: list all file in your home directory
option 3: exit.
Create Scripts to do each of the following:
Exercise 5: Print number from 1 to 10(modify while-count script)
Exercise 6: Print number from 1 to 100(modify while-count script)
Exercise 7: Print number from 50 to 100(modify while-count script)
Exercise 8: Print only even number from 1 to 100(modify while-count script and int-even-odd script)
Exercise 9: Print sum of number between 1 to 100(exercise 6, create new variable to hold sum, dont print individual numbers, just sum)
Exercise 10: Print sum of even number between 1 to 100(modify exercise 8 to sum, create new variable to hold sum, dont print individual numbers, just sum)
Exercise 11: Print sum of even number between 50 to 100(modify exercise10)
Exercise 12: Print 10 factorial, 10!=1*2*3*4*5*6*7*8*9*10(modify exercise 5, create new variable to hold product, dont print individual numbers, just product)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions