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