Please log in as “root” and create a new directory called “myScripts”on your desktop (i.e., /root/Desktop).Please leave a comment with your name at the end of each of your script files. You can use “#” to insertcomments in your script. Write a script and save it as /root/Desktop/exercise1. This script performs the followingfunctions:a. Asks the user for the length and width (in feet) of a rectangular roomb. Calculates the area of the roomc. Displays the result to the userRun the script in terminal using the command: bash /root/Desktop/exercise1 SO I HAVE WROTE THE SCRIPT BUT I DON'T KNOW HOW TO SAVE IT TO EXERCISE1 AND DISPLAY IT, JUST NEED TELL ME HOW TO DO IT , NO NEED SCRIPT

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter10: Object-oriented Programming
Section: Chapter Questions
Problem 1FTB
icon
Related questions
Question

Please log in as “root” and create a new directory called “myScripts”
on your desktop (i.e., /root/Desktop).
Please leave a comment with your name at the end of each of your script files. You can use “#” to insert
comments in your script.

Write a script and save it as /root/Desktop/exercise1. This script performs the following
functions:
a. Asks the user for the length and width (in feet) of a rectangular room
b. Calculates the area of the room
c. Displays the result to the user
Run the script in terminal using the command: bash /root/Desktop/exercise1

SO I HAVE WROTE THE SCRIPT BUT I DON'T KNOW HOW TO SAVE IT TO EXERCISE1 AND DISPLAY IT, JUST NEED TELL ME HOW TO DO IT , NO NEED SCRIPT 

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage