Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please program script in Linux show output Also CIS 345 Homework 2 Write a bash script called greeting that will print out Good morning username

please program script in Linux show output Also image text in transcribed
CIS 345 Homework 2 Write a bash script called greeting that will print out Good morning username" in the moming, "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 C 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 moming, "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 C 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

International Baccalaureate Computer Science HL And SL Option A Databases Part I Basic Concepts

Authors: H Sarah Shakibi PhD

1st Edition

1542457084, 978-1542457088

More Books

Students also viewed these Databases questions