Computer scienceSystem administration and DevOpsCommand lineBash syntax

Conditional statements and test checks

Checking the word count

Report a typo

Mary is writing an essay for her literature class. The essay has to be between 500 and 1000 words (both inclusive). If the essay is of the correct length, print Good Job!. If it does not meet the length criteria, print Revise the essay.

Note: The length of Mary's essay is passed as a parameter to the solve() function and pay attention to the correct spelling of "Good Job!" and "Revise the essay" in your script.

Tip: You will have to use logical operators here!

Sample Input 1:

350

Sample Output 1:

Revise the essay
Write a program in Shell
#!/usr/bin/env bash

solve() {
# add your solution here

}
___

Create a free account to access the full topic