Complete a buy tickets system for customer

Assignment Help Other Subject
Reference no: EM132268540

A unix/Linux shell script assignment - Shell scripts

You are required to write a UNIX shell script (a shell program) to complete a buy tickets system for customer to use.

It should have the following functions:

Buy could be once, or, multi-times without terminating the current session.

The program should produce a summarized report for eachbuy.

Exit the system when your order is completed.

Your session should be similar to: buyTickets" on the first line of the screenshot above is the name of the shell program which you should create for this task.

It should be able to recognize the commands "quit" and "buy", which are functions defined below: . "quit" - displays a message such as "-----Thanks for your purchase! -----" and then quit the program.?

"buy" - starts your buying with prompts that takes inputs and produces a summary for your buying (with time and date as well), as shown in the screenshot above.

The program should accept your choices either in uppercase or lowercase, such as, "quit" or "QUIT", "buy" or "BUY".

At the end of each purchase, you should have the option to execute another purchase, or quit the program.

If you enter a wrong choice, for example 'ok', the program should recognize it and display a message, such as: 'Sorry, 'ok' is not a valid choice. Please enter 'quit' or 'buy'.' until a correct choice is entered, i.e. 'quit' or 'buy'.

Verified Expert

The solution file is implemented in shell script programming language which read the options from user to select buy tickets or quit application.Based on user option it will call the buy and quit function. Buy function will read basic information about the user and ticket details such as user name, mobile number, number of tickets and finally it will print the complete details of ticket summary.In case user selected quit function then display appropriate message and quit the application.The solution file has program and screen shot of program output.

Reference no: EM132268540

Questions Cloud

Do you agree with davis and moore : What examples can you think of that support the thesis? What examples can you think of that refute the thesis?
How will the different levels of government be involved : Should the government increase funding for mental health research and treatment? What are two competing solutions to this problem?
Define neighborhood effects : Define "neighborhood effects". What is collective efficacy theory?
How could someone dress up in someone : How could someone dress up in someone else culture without being disrespectful?
Complete a buy tickets system for customer : write a UNIX shell script to complete a buy tickets system for customer to use -
Why did the japanese reject firearms : Why did the Japanese reject firearms in favor of more traditional weapons during the 17th century?
Which was the consideration enjoyed by bankers : Which was the consideration enjoyed by bankers/financiers represented in the period/country described by the story? How the novel/movie was received.
Does america citizens have a moral : Does America citizens have a moral or ethical obligation to cover the costs?
Why has the business world become so much more global : Why has the business world become so much more global in the last 20 years? What should we do if we are ready to engage in business in a foreign country.

Reviews

inf2268540

8/28/2019 2:04:15 AM

I have completed my assignment with full grades. Thanks to the team and writes for providing me with great work. You guys are really awesome.

len2268540

3/28/2019 3:19:00 AM

At the end of each purchase, you should have the option to execute another purchase, or quit the program.?(5 marks) . If you enter a wrong choice, for example 'ok', the program should recognize it and display a message, such as: 'Sorry, 'ok' is not a valid choice. Please enter 'quit' or 'buy'.' until a correct choice is entered, i.e. 'quit' or 'buy'.??(4 marks)

len2268540

3/28/2019 3:18:53 AM

I have a unix/Linux shell script assignment. Shell scripts (42 marks) You are required to write a UNIX shell script (a shell program) to complete a buy tickets system for customer to use. It should have the following functions: . Buy could be once, or, multi-times without terminating the current session. . The program should produce a summarized report for eachbuy. . Exit the system when your order is completed. Your session should be similar to: buyTickets" on the first line of the screenshot above is the name of the shell program which you should create for this task. It should be able to recognize the commands "quit" and "buy", which are functions defined below: . "quit" - displays a message such as "-----Thanks for your purchase! -----" and then quit the program.?(3 marks) . "buy" - starts your buying with prompts that takes inputs and produces a summary for your buying (with time and date as well), as shown in the screenshot above. ?(24marks) . The program should accept your choices either in uppercase or lowercase, such as, "quit" or "QUIT", "buy" or "BUY". ?(6 marks)

Write a Review

Other Subject Questions & Answers

  Despite your own thoughts and opinions

Lastly, despite your own thoughts and opinions, why do you think this is such a wedge issue for the American public during last year's congressional elections and do you think it will be the defining issue that sways next year's election?

  Where was the setting of the study

Discuss whether you think the article is true-experimental, quasi-experimental, or no experimental. You must also state what type of quantitative design .

  Examine service categories commonly

Examine service categories commonly provided by nursing homes. Determine two specific service categories that you believe are common factors of competition among nursing homes

  Legislative and executive branches of government

Describe the interaction between the legislative and executive branches of government.

  What is preemption

1) What is preemption? What is its purpose? 2) What is swapping? What is its purpose?

  Advantages and disadvantages of plea bargains

Evaluate the advantages and disadvantages of plea bargaining.

  For the last question there are two groups

For the last question (iv), there are two groups. Do the HPO/Honours/MATH6103 students group

  Affect their rates of adoption

Using examples, discuss how the characteristics of Innovations could affect their rates of adoption.

  Exit strategy use by organization-wrong in foreign country

Create the 1,050- to 1,750-word paper in which you explain one exit strategy the organization may use when things go wrong in foreign country.

  What are implications of statement for healthcare leaders

What are the implications of this statement for healthcare leaders - Work is not inherently valuable. It is valuable to the extent that it serves a purpose. Therefore, the main focus should be not on the work itself but on whether it achieves its e..

  In what ways did americans seek to maintain older traditions

American workers resisted this change. In what ways did Americans seek to maintain these older traditions of work, and how successful were they?

  Analyze the current health care problem

For this assignment, you will analyze the current health care problem or issue of interest to you (medical errors that happen between providers and patients).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd