INTRODUCTION 3
SCRIPT 4
TESTING 7
Testing with valid inputs 7
Testing with invalid inputs 8
CONTENTS OF THREE FILES (TEXTS) 10
A1 10
N1 10
M1 10
CONCLUSION 11
REFERENCES 12
INTRODUCTION
The main objective of this course work is to develop a small program in the UNIX environment either by using Bash shell or Korn shell. After creating the program, the students have to test the program for any errors/bugs. If any errors are found the students are required to diagnose/troubleshoot the bugs.
This type of course work is very helpful to the IT students especially to those students who want to build their future milestone in computing. SCRIPT print print "Welcome to the program. Your ID is "$2 print "You are "$1 date mainloop="yes" until [ $mainloop = "no" ] do rloop="yes" while [ $rloop = "yes" ] do print print "#### Regions of Nepal #####." print print "Z1 Eastern" print "Z2 Central" print "Z3 Western" print "Z4 Mid Western" print "Z5 Far Western" print print "Choose your birth place:\c" read bplace case $bplace in Z1) print "You chose Eastern" print "Illam lies in this region" rloop="no" ;; Z2) print "You chose Central" print "kathmandu lies in this region" rloop="no" ;; Z3) print "You chose Western" print "Pokhara lies in this region" rloop="no" ;; Z4) print "You chose Mid Western" print "Karnali lies in this region" rloop="no" ;; Z5) print "You chose Far Western" print "Doti lies in this region" rloop="no" ;; *) print "You are out of track choose again." rloop="yes" ;; esac done loop="no" until [ $loop = "yes" ] do print print "#### Tribes of Nepal ####" print print "N1 Newari" print "M1 Maithili" print "B1 Bhojpuri" print "A1 Arya" print "MN1 Mangol" print "K1 Krati" print "Bh1 Bharopeli" print print "Choose any three [remember to keep spaces] :\c" read tribe1 tribe2 tribe3
tloop="no" until [
References: • London Metropolitan University, (n.d.). Operating System [online] available at:< http://learning.londonmet.ac.uk/computing/IC_Link/Comp/modules/cc2011/WeekByWeek.html> [Accessed OCT 10, 2012 ]