(5/5)

Hire Me
(5/5)

Hire Me
(/5)

Hire Me
(5/5)

Hire Me
(5/5)

# Tommy’s Totally Terrific Teas needs an application that calculates the final price for their fabulous teas. All tea drinks are the same cost so all prices are based on the size of tea ordered.

INSTRUCTIONS TO CANDIDATES
###### ANSWER ALL QUESTIONS

OVERVIEW

A function is a group of statements that exist within a program to perform a specific task. The goal of both functions is to break up code into smaller pieces. By doing so, programs are easier to read and debug. This also can be beneficial for when code needs to be written multiple times within a program.

Tommy’s Totally Terrific Teas needs an application that calculates the final price for their fabulous teas. All tea drinks are the same cost so all prices are based on the size of tea ordered.

Your task is to create a program that displays the price of the tea ordered and calculates total final price including sales tax.

REQUIREMENTS

1. Pseudocode containing:

a. A main function that displays a menu of choices. Menu choices are:

C: Calculate price for tea

D: Display tea price information X: Exit application

The menu will display until the user enters X to exit the application.

b. A function named DisplayInfo that displays tea prices (see output example below). This function accepts zero arguments and does not return any values.

c. A function named CalculateTotal that asks for the size of tea ((S)mall, (M)edium, (L)arge, (J)umbo). This function accepts zero arguments and returns a single value. The value returned is the cost for the selected tea size.

d. A function named TaxAmount. This function accepts an argument named subtotal and returns sales tax amount (subtotal * .06).

2. Program written in Python containing:

a. A main function that displays a menu of choices. Menu choices are:

C: Calculate price for tea

D: Display tea price information X: Exit application

The menu will display until the user enters X to exit the application.

b. A function named DisplayInfo that displays tea prices (see output example below). This function accepts zero arguments and does not return any values.

c. A function named CalculateTotal that asks for the size of tea ((S)mall, (M)edium, (L)arge, (J)umbo). This function accepts zero arguments and returns a single value. The value returned is the cost for the selected tea size.

Tea prices for each size: Small Tea: \$2.99 Medium Tea: \$3.59 Large Tea: \$4.09 Jumbo Tea: \$4.99

d. A function named TaxAmount. This function accepts an argument named subtotal and returns sales tax (subtotal * .06).

e. Program includes inline documentation about each section. For example, # declare and initialize variables.

f. Program is saved as Program5.py

(5/5)

## Related Questions

##### . The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

##### . Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

##### . The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

##### . Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

##### . The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

395 Experts Online