1. Write a BASH shell script named onenum_2_word.sh that takes asingle command line input that should be...
Question:
1. Write a BASH shell script named onenum_2_word.sh that takes asingle command line input that should be a single-digit andtranslate it to its English equivalent. Do have an error prompt ifthere is no command-line input. Make the error prompt: “Usage: Needcommand line input of one single digit!”. If command line input isother than a single digit, the program does nothing.
2. Write a BASH script that prompts the user to input 4integers. Prompt each time is “Enter less than 101 only: “. Userinput integer. If an integer is greater than 100, force them toenter again with prompt: “Wrong. Enter less than 101only: After the 4th correct number is inputted, the programoutputs the sum of all 4 numbers and the average of all 4numbers.
3. Write a C program named cel_2_kel.c that will satisfythe following specifications:
a. Prompt user: “Enter a Celsius integer: “
b. User enters an integer representing Celsius degrees.
c. Compute Kelvin degrees from inputted Celsiusdegrees.
d. Kelvin degrees = Celsius degrees+ 273
e. If 50 is entered for Celsius, output: “50 C is 323 K”
f. Prompt user if she/he wants to go again: “Type y if want to goagain: “
g. User enters y, go again. Anything else, exit.
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord