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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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