If no argument is entered by the user, the program checks the system date for today's day and displays the appropriate Special. The “[-d day]” denotes that this program allows a day of week to be specified. In other words, when this option is used, the program displays Today's Special for the specified day. The “[-a]” option will display all Specials. It is NOT allowed to specify both “[-a]” and “[-d day]” options at the same time. When validating the entered day, the program ignores the case sensitivity and checks only the first three characters; thus, Mon, mOn, and mon will all be interpreted as Monday.

Shown below are some sample runs of the above script:

UNIX> menuMonday special is: Lobster PlatterUNIX> menu -d wEdWednesday special is: Steak and Fish ComboUNIX> menu -d whatwhat is an invalid dayUNIX> menu -a -d Mon-a and -d cannot be used at the same timeUNIX> menu -k Sun-k is an invalid option

Related Questions in Programming Language

Computer Science Program- Write all of the following: main program: Call a function to open an input file. Call a function to read 3 integers in from the input file. Call a function that will find 3 normalized doubles, g ...

You must do this assignment correctly as described below. If you do not follow the directions or break the rules you will receive a 0 score. Simulation of checking tic-tac-toe board for wins by counting X and O in rows, ...

Operating Systems Assignment- 1. Binary Record Sorting in Ascending Order| You will write a simple sorting program. This program should be invoked as follows: shell% ./fastsort -i inputfile -o outputfile The above line m ...

Shell Programming You have created the directory structure and some base files to be used by the Web server and Web site. For the Web site to be created in a production environment, you need to package your commands in a ...

Pair Programming Phase 1 Talent Agency User Stories 1. User Story 1 As a head office administrator I want to be able to produce formatted output of all the information about our talent agencies so that I can easily incor ...

1. Loops: The greatest and the least- Write a program with a loop that lets the user to enter a series of integers. The use should enter -99 to signal the end of the series. After all the numbers have been entered, the p ...

Your problem is as follows: Write a program that will ask the user to enter 4 quiz scores for 3 students. You will need to fine the lowest quiz grade and drop it out when you calculate the average. You will need to disp ...

The Brief Your small development team of (ideally) three people has been asked to implement and test the Human Resource Information System desktop application. Your software product will be a database- backed desktop app ...

Purpose: The purpose of this assignment is to practice using loops, selections, and other basic features of Java in order to solve a real-world problem. Program Description: The Jeddah Broker Company is one of the compan ...

Assignment: Case Problem1 - Online Trivia found on pages 794-795 of your textbook. Complete the web pages and upload them to your 000WebHost account. After uploading the files make sure to update your index.html page to ...

4,153,160 Questions Asked

13,132 Experts

2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses,
Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.