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

  Write a program that accepts as input a sentence

Write a program that accepts as input a sentence in which all of the words are run together but the first character of each word is uppercase. Convert the sentence to a string in which the words are separated by space and only the first word start..

  Design reusable parameterised functions

create multiple icon styles that can be drawn at different sizes, it would be very repetitive if you tried to code the whole solution using ‘brute force.' Instead you are strongly encouraged to design reusable parameterised functions to draw the i..

  Exploring the potential of natural language processing

For Reading Purposes. EXPLORING THE POTENTIAL OF NATURAL LANGUAGE PROCESSING AND MACHINE LEARNING IN CHILD LANGUAGE DISORDERS DIAGNOSIS, Preprocessing data from conti-4 : cleaning the raw dataset into structured form for subsequent processing and ana..

  Implement your algorithm in python

Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified and reinforce topic material related to the programming work cycle, and the input, processing, output program structure.

  Define the playround method with only the self parameter

Define the playRound method with only the self parameter. Make a call to another instance method called doRolls that takes no arguements.

  Determine how many students scored above the average

He wants to average the grades for his last exam in his medieval literature course and then determine how many students scored above the average and how many scored below.

  Write a program based on the given program skeleton

The calculate function would calculate the net wages, and display all information such as wage before tax, taxes, and wage after taxes.

  Write another python program to decode the encoded message

Write another Python program to decode the encoded message according to the "circular Caesar cipher" problem presented in Programming Exercises 7 and 8 of Book Chapter 5.

  Write a python program that generates a small web site

Choose a sport or club, and get some suitable input data.. If you play a sport yourself, see if you can get some data files for your sport.

  What other factors might be at work

Some well-educated young adults day they are dissatisfied with their denomination's conservative stance on homosexuality. What other factors might be at work?

  Develop a system for the Complex Word Identification

Class project: Complex Word Identification. The goal of the lab is to develop a system for the Complex Word Identification shared task

  Student record due smartsite thursday 1211 1155 pm file

due smartsite thursday 1211 1155 p.m. file names grading.py ltbrgtall prompts for input and all output must match my

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