Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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... blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Principles Of Information Security

Authors: Michael E. Whitman, Herbert J. Mattord

7th Edition

035750643X, 978-0357506431

More Books

Students also viewed these Electrical Engineering questions

Question

How does the global economy relate to contingency leadership?

Answered: 1 week ago

Question

What is the difference between an exempt and a nonexempt employee?

Answered: 1 week ago

Question

CL I P COL Astro- L(1-cas0) Lsing *A=2 L sin(0/2)

Answered: 1 week ago