Planning the tropical airlines program

Assignment Help Python Programming
Reference no: EM132086687

Assignment - Planning the Tropical Airlines program

Task

You are to plan a plane ticket ordering program as described in the following description. Use what you have learned in class, including simple functions, selection and repetition. Assignment 2 will cover the implementation of this program in Python.

Program Features:

Short description:
The program will take the user through a series of choices to order a single ticket. Once the choices are made the program will display the user's choices and a final total for the ticket. The user will be asked if they would like to purchase another ticket or quit.

Detailed instructions:

1. Ask user's name and welcome them to the ordering system using name

2. Show program menu
(I)nformation (O)rder ticket
(E)xit

If user chose (O), continue on with the program, otherwise the program should exit with the message "Thank you for visiting Tropical Airlines".

If the user chose (I) display the following text.
"Thank you for choosing Tropical Airlines for your air travel needs. You will be asked questions regarding what type of ticket you would like to purchase as well as destination information. We also offer 50% discounted fares for children."

3. Ask if the ticket is for the user or for another person. If it is for another person, get the potential
traveller's name. For the following instructions you will need to keep track of the values and make all needed calculations at the end.

4. Ask if ticket will be one way or return (round trip)

5. Ask for the destination (choices are Cairns, Sydney or Perth).

6. Ask for the type of fare (Business, Economy or Frugal)

7. Ask what type of seat (Window, Aisle or Middle)

8. Ask age of person in order to check for child fare

9. Show user choices and total

10. Show user menu

Planning:
You are to divide your solution into functions, following the principles shown in class. These may involve one for each menu option (other than Quit) as well as functions for parts of the program (e.g. a calculating the total ticket price could be implemented as a function). For each function you are to provide an IPO chart listing all variables which are needed for your solution. In cases where selections are necessary you must include a suitable condition action table directly below the IPO chart. Follow the sample solution provided as a guide.

You also need to provide either an algorithm in pseudocode for each function, being sure to clearly indicate input and output variables for each.

In addition, you need to create a Flowgorithm flowchart that shows how the program would operate.

You may show your assignment to your tutor during practical time to get comments or suggestions. It is important to note that you can only get help from staff in practical time after your prac work is finished.

General Principles:
In this assignment, you will be focusing on basic planning using selections, repetition and functions.

Use the techniques and patterns that you have learned and seen demonstrated in class.
- Make use of named constants (named in all caps) where appropriate. You should be able to modify these constants to adjust the various costs of items such as one-way fare, return, discount for child tickets, etc. This is one of the most important aspects of this assignment, so consider carefully how to use constants. Remember to use your constants everywhere you can.

- Note that menu choice and other character selection should handle upper and lower case letters.

- You also must make sure that any functions that get input from the user do error checking to ensure that the input is within the expected range (greater than zero, etc).

Attachment:- Programming Assignment.rar

Verified Expert

The solution file is prepared in ms word and implemented air ticket reservation in python programming language. Which includes instruction, order ticket with various option such as fare ticket, place option and seat option. Finally program will calculate ticket fare and display to customer. The word file explained algorithm for program in step wise and attached screen shot of program output.

Reference no: EM132086687

Questions Cloud

Perform quality and safety analysis of facility : Visit local fast-food restaurant, such as McDonald's, Wendy's or Taco Bell and order a meal. During your visit, perform quality and safety analysis of facility.
What kind of improvements have you made : What have you noticed about the development of your counseling skills? What kind of improvements have you made based on what you have learned from your reading.
Learner analyses are important to success of project : You are the lead instructional designer recently hired for a large-scale project. describe why needs and learner analyses are important to success of project.
Discuss about gender differences in infancy and childhood : Choose one of the following topics and write a 1,400-1600 word paper summarizing the current professional literature on the topic.
Planning the tropical airlines program : CP1401 - Fundamentals of Problem Solving and Programming - Jamescook University - Use what you have learned in class, including simple functions, selection
Explain the social determinants of health : HSC210 Health Sociology Essay Assessment. Charles Darwin University, Australia. Draw on two sociological theories to explain the social determinants of health
Explain the advantages of ebmgt and how you would use it : Create a slide visual presentation that you would deliver to your manager on the advantages of EBMgt and how you would use it .
Advantages and disadvantages of presenting roster : What are the advantages and disadvantages of presenting roster in advance and how can these challenges be overcome?
Employees at different levels in an organization : How can change affect employees at different levels in an organization?

Reviews

inf2086687

10/29/2018 2:25:01 AM

I got a perfect graduate paper with sufficient references in the form of both in-text as well as an end-of-text citation. I am feeling highly obliged with the work quality that I was provided with and my class teacher also appreciated the paper in the class. The appreciation I got was just because of you so I would like to congratulate your whole team. Applauds!!

len2086687

8/15/2018 10:42:41 PM

Effective and correct use of conditionals and loops in the planned solution No conditionals or identified The conditionals or loops identified are mostly inappropriate or incorrectly used The conditionals or loops identified are mostly appropriate and correctly used, but there are more than 5 significant errors The conditionals or loops identified are mostly appropriate and correctly used, but there are more than 3, but no more than 5, significant errors The conditionals or loops identified are appropriate and correctly used. There are no more than 3 significant errors 15

len2086687

8/15/2018 10:42:35 PM

Effective and correct use of variables in the planned solution No variables identified The variables identified are mostly inappropriate or incorrectly used The variables identified are mostly appropriate and correctly used, but there are more than 5 significant errors The variables identified are mostly appropriate and correctly used, but there are more than 3, but no more than 5, significant errors The variables identified are appropriate and correctly used. There are no more than 3 significant errors 10 Effective and correct use of functions or subs in the planned solution No functions or subs identified The functions or subs identified are mostly inappropriate or incorrectly used The functions or subs identified are mostly appropriate and correctly used, but there are more than 5 significant errors The functions or subs identified are mostly appropriate and correctly used, but there are more than 3, but no more than 5, significant errors The functions or subs identified are appropriate and correctly used. There are no more than 3 significant errors 15

len2086687

8/15/2018 10:42:19 PM

Appropriate use of problem-solving tools (including algorithm/flowchart, IPO charts and condition/action tables) to communicate the planned solution No use of any problem solving tools The flowchart or algorithm provided does not solve the problem, or is not based on other parts of the planning documentation The flowchart or algorithm provided mostly solves the problem, and is based on other parts of the planning documentation, however there are more than 5 significant mistakes The flowchart or algorithm provided solves the problem, and is based on other parts of the planning documentation, however there are more than 3, but no more than 5, significant mistakes The flowchart or algorithm provided solves the problem, and is based on other parts of the planning documentation. There are no more than 3 significant mistakes 30

len2086687

8/15/2018 10:42:13 PM

Largely conveys meaning to the audience, despite occasional lapses in sentence structure, grammar, punctuation and spelling. Use of language in planning documents is incomprehensible or non existent. Language used in planning documents is very difficult to understand. There are numerous consistent mistakes in spelling and grammar Language used in planning documents is generally understandable. There are more than 5 significant mistakes in spelling and grammar Language used in planning documents is generally understandable. There are more than 3, but no more than 5, significant mistakes in spelling and grammar Language used in planning documents is generally excellent. There are no more than 3 significant mistakes in spelling and grammar 10

len2086687

8/15/2018 10:42:08 PM

Submit your assignment by the date and time specified on LearnJCU. Submissions received after this date will incur late penalties as described in the subject outline. If you require assistance with the assignment, please ask general questions on the LearnJCU discussion board, or get specific assistance with your own work by talking with your lecturer or tutor. Marking Scheme: Criteria Unacceptable 0 - 20% Limited 20 - 40% Basic 40 - 60% Sound 60% - 80% Excellent 80% - 100% Weighting Proposes strategies or partial solutions. No solution provided The solution provided is mostly incorrect or does not actually solve the problem The solution provided is mostly correct and solves the problem, but there are more than 5 flaws or missing elements The solution provided is almost completely correct and solves the problem, but there are more than 3 (but no more than 5) flaws or missing elements The solution provided is correct and solves the problem, and there are no more than 3 flaws or missing elements 20

len2086687

8/15/2018 10:41:47 PM

Please follow full instructions given in the documents. I need a proper IPO & condition action table described well and pseudocode. See the last section of this document for sample output showing how the program should run. Hand in: • A zip file containing: o a MS Word (.docx) or PDF (.pdf) file containing all of your planning. o a Flowgorithm file with your planned structure – should be able to be run • Please name the file like: FirstnameLastnameA1.docx or FirstnameLastnameA1.pdf o e.g. if your name were Miles Davis, the filename would be MilesDavisA1.docx Submit your single by uploading it on LearnJCU under Assessment.

Write a Review

Python Programming Questions & Answers

  Develop and test a python program

Develop and test a Python program that displays the day of the week that the following holidays fall on for a year entered by the user New Year's Eve

  Write a while loop that prints all squares less than n

Introduction to Programming Concepts Python. Write a while loop that prints All squares less than n. For example, if n is 100, print 0 1 4 9 16 25 36 49 64 81.

  Most popular name would be the one with the biggest number

the program will ask you to insert the year that the user is interested in, then ask the gender that the user is interested in, and print out the most popular names corresponding to the year and gender. FYI, the number on the right represents how man..

  Find the output of the given script in python

Find the output of the following script in Python. Note: All statements are valid. Rewrite the following for loop Python statements using while loop.

  Construction of the data dictionary

A first systematic step to a data science process, as we have learned from the lectures and practical sessions, is to construct a data dictionary for the dataset.

  Function should return a dictionary

Write a function numOccur(s), where s is a string; the function should return a dictionary whose keys are the 26 ascii letters abcdefghijklmnopqrstuvwxyz

  Whatever is done in excel you have to do it in python

Whatever is done in excel you have to do it in python. Like you have to categorize the tweets related to app and other. It should be done by using pandas

  Create a new pandas dataframe of data that will be used

Provide a count of the number of records. Create a new pandas DataFrame of data that will be used for target maketing and write it out to a headered csv file.

  You will define an operation on positive integers called

you will define an operation on positive integers called twiddle which consists of summing the squares of the digits of

  Write a program in python to draw a simplified face

Write a program in Python to draw a blue triangle in a drawing window. Write a program in Python that moves the triangle in an animated movement. Write a program in Python to draw a simplified face.

  How is your hub set up and what type of hubs do you use

How is your Hub set up and what type of Hubs do you use and What type of servers are you currently using and

  Code a console-based program in python

CP1404/CP5632 2016 SP2/22/52 Assignment 1 - Shopping List 1.0. You are to plan and then code a console-based program in Python 3, as described in the following information and sample output. This assignment will help you build skills using selectio..

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