Question: Create a C - Shell script program that will demonstrate the use of using sequential, conditional, and iteration to control the application process control. In

Create a C-Shell script program that will demonstrate the use of using sequential, conditional, and iteration to control the application process control. In your script program, please do the following:
Put #!/bin/csh in the first line (interpreter line) of the program
Declare an integer variable to hold user input.
To begin sequentially, output to the screen prompting the user to enter a number.
Accept the user input, and assign it to the integer variable that you declared.
Create an if condition statement checking the number that was input to see if it is less than 100.
If the number is less than 100, output to the screen that the number is less than 100.
If the number is equal to 100, output to the screen that the number is equal to 100.
If the number is greater than 100, output to the screen that the number is greater than 100.
Create a while loop to reduce the variable value that the user input to 0, and in each iteration output to the screen the value of the variable. Be creative and output anything else that you would like here. Once the while loop is complete and prior to the end of your program, output to the screen that the script has ended and goodbye.
Exit the script.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!