Question: May I get help with this problem? Mac Terminal/Linux Write a script to read four numbers and then finds the sum of these numbers. If

May I get help with this problem? Mac Terminal/Linux Write a scriptMay I get help with this problem? Mac Terminal/Linux

Write a script to read four numbers and then finds the sum of these numbers. If the sum is more than 150, the script must display that the sum is more than 150. In a different line, the script must display each of the four values and the sum of those four numbers. If the sum is in the range 100 to 149, the script must display the message that the sum is in the range of 100 to 149 and display the first three numbers only. 1 If the sum is in the range 50 to 99, the script must display the message that the sum is in the range of 50 to 99 and display the first two numbers only. For any other sum value, the script must display the sum is not in any expected ranges. Then the script must ask if the user wants to try one more time, if so continue this process. If the user does not want to continue, the script must thank the user for entering those values

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 Databases Questions!