Unix Question: Only some of the EMACS code is complete. Observe the comments to complete the EMACS code. The program enables you to document payroll information: Surname Forename Sector How many hours worked The code writes the information into a file named “measurecard” The user is asked to attach another “s” (for sure) or “l” to leave Please see the EMACS code below:   # ================================================================== # Script Name: Measurecard # By: Anonymous # Date: April 26, 2022 #                       # Command Line: measurecard # ================================================================== measurefile=measurefile bendtrial="s" attachanother = “s” while [ $bendtrial = s ] do ### ### empty the mesh ###     tput cup 1 4; echo "Workers' Worktime"   tput cup 2 4; echo "=============================="   tput cup 4 4; echo "Type l to leave or s to attach: "   tput cup 5 4; echo "Surname   : " ### ### tput cup Forename:    ### tput cup "Sector Number: " ### tput cup "Hours Worked: " ####     tput cup 12 4; echo "Attach Another? (s)ure or (l)eave:  "   tput cup 4 37; read attachanother if [ "$attachanother" = "l" ]        then              clear; exit   fi   tput cup 5 19; read surname   ### tput cup read forename   ### tput cup read sector   ### tput cup read zero_hours #### ### Is attachanother cleared with an if-then? #### ##### #### note the field to a file named measurefile #####     tput cup 12 33; read bendtrial   if [ "$bendtrial" = "l" ]        then          clear; exit   fi   done

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Unix Question:

  1. Only some of the EMACS code is complete.
  2. Observe the comments to complete the EMACS code.
  3. The program enables you to document payroll information:
    1. Surname
    2. Forename
    3. Sector
    4. How many hours worked
  4. The code writes the information into a file named “measurecard”
  5. The user is asked to attach another “s” (for sure) or “l” to leave

Please see the EMACS code below:

 

# ==================================================================
# Script Name: Measurecard
# By: Anonymous
# Date: April 26, 2022
#                      
# Command Line: measurecard
# ==================================================================
measurefile=measurefile
bendtrial="s"
attachanother = “s”
while [ $bendtrial = s ]
do
###
### empty the mesh
###  

  tput cup 1 4; echo "Workers' Worktime"
  tput cup 2 4; echo "=============================="
  tput cup 4 4; echo "Type l to leave or s to attach: "
  tput cup 5 4; echo "Surname   : "
###
### tput cup Forename:   
### tput cup "Sector Number: "
### tput cup "Hours Worked: "
####    
tput cup 12 4; echo "Attach Another? (s)ure or (l)eave:  "
  tput cup 4 37; read attachanother
if [ "$attachanother" = "l" ]
       then
             clear; exit
  fi
  tput cup 5 19; read surname
  ### tput cup read forename
  ### tput cup read sector
  ### tput cup read zero_hours
####
### Is attachanother cleared with an if-then?
####
#####
#### note the field to a file named measurefile
#####    

tput cup 12 33; read bendtrial
  if [ "$bendtrial" = "l" ]
       then
         clear; exit
  fi
  done
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY