Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP PROGRAM SCRIPT IN LINUX SHOW OUTPUT ALSO Program in Linux Ternimal...also added the customers_and_contact file that is needed to complete this script thanks

PLEASE HELP PROGRAM SCRIPT IN LINUX SHOW OUTPUT ALSO image text in transcribed

Program in Linux Ternimal...also added the customers_and_contact file that is needed to complete this script

thanks in advance for the help!!

customers_and _contact file

John, Hane 12 West World Webb City, CA 97153 John, John 12 West World Webb City, CA 97153 Jones, Jilly Bob Jim 7845 West Cape Canveral Neosho, MO 87978 Kent, Martha 1122 North Hwy 5 Smallville, KS 66789 Nygma, Edward 443 W. Broadway Gotham City, NJ 12458 Robinson, Andrew 1 College Way Joplin, MO 65589 Webb, David Box 34 Rural Route 2 Nixa, MO 65714 
.
Write in Bash Script no required commands
CIS 345 Homework 2 Write a bash script called greeting that will print out Good morning username in the morning, "Good afternoon username" between 12:00 and 5:59, and "Good evening username after 6:00. Substitute the user's real first name for username. The first letter of the user's name should be capitalized. Then it should report the user's last time of login and some statistics about your system. Report a total of how many users are logged in then display the user name, real name, and login time in columns with each listed only once. 5 points Write an interactive script to add a person's personal information to your customers and contacts file. Your file should not have duplicate entries in it. 5 points Write an interactive script to remove an entry from your customers and contacts file. Incorporate appropriate error checking in this and all the other scripts. 5 points Write a script to look up someone in your customers and contacts file. Your script should look up an entry based on any arguments passed. If no arguments are passed then it should be interactive. Return to the screen the name, phone number, and street address. We are using it like a phonebook lookup. Private information should not be returned. 10 points Write a bash script that takes an integer passed as a command line argument and outputs the equivalent in Roman Numerals. The rules are: 1-1 V-5 X-10 L-50 C-100 D-500 M-1000 There will be no more than three consecutive occurrences of the same letter. I can be placed before V and X indicating it is subtracted such as in IV =4 and IX = 9. Likewise X can be placed before L and C and can be placed before D and M. There is no zero and numbers greater than or equal to 4000 cannot be converted. Your script should error check the input. 10 points CIS 345 Homework 2 Write a bash script called greeting that will print out Good morning username in the morning, "Good afternoon username" between 12:00 and 5:59, and "Good evening username after 6:00. Substitute the user's real first name for username. The first letter of the user's name should be capitalized. Then it should report the user's last time of login and some statistics about your system. Report a total of how many users are logged in then display the user name, real name, and login time in columns with each listed only once. 5 points Write an interactive script to add a person's personal information to your customers and contacts file. Your file should not have duplicate entries in it. 5 points Write an interactive script to remove an entry from your customers and contacts file. Incorporate appropriate error checking in this and all the other scripts. 5 points Write a script to look up someone in your customers and contacts file. Your script should look up an entry based on any arguments passed. If no arguments are passed then it should be interactive. Return to the screen the name, phone number, and street address. We are using it like a phonebook lookup. Private information should not be returned. 10 points Write a bash script that takes an integer passed as a command line argument and outputs the equivalent in Roman Numerals. The rules are: 1-1 V-5 X-10 L-50 C-100 D-500 M-1000 There will be no more than three consecutive occurrences of the same letter. I can be placed before V and X indicating it is subtracted such as in IV =4 and IX = 9. Likewise X can be placed before L and C and can be placed before D and M. There is no zero and numbers greater than or equal to 4000 cannot be converted. Your script should error check the input. 10 points

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago