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.
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.
Step by Step Solution
3.49 Rating (142 Votes )
There are 3 Steps involved in it
Step: 1
The detailed answer for the above question is provided below 1 binbash if z 1 then echo Usage Need c...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started