Calculate the final charge of a product at a retail store

Assignment Help Python Programming
Reference no: EM132356367

Question

1. Design a python program to calculate the final charge of a product at a retail store. You must also create flowcharts for each function and for the program.

a. productCharge(): should prompt the user for a valid retail charge of a product (between $10 and $5000). The value should be returned from the function

b. productDiscount(): If product total is over $350, the customer receives a 17% discount. Return the value of the discounted product.

The Python program should prompt the user for the number of products in the order (must check that this number is between 1 and 7). Then, by calling the function, enter the productCharge for each of the products - maintaining a total for all products. Once products are all entered, call the productDiscount function. Lastly, output the number of products, the product total, the amount of sales tax: 3% and the final total to include that tax. Note all prices should be printed to two decimal places.

2. Wri function in python that will calculate if a value is inside a defined range. The function valid, should accept 3 parameters: the value, lowest and highest member of usable range. The function should return True if value is in range and False if not.

Reference no: EM132356367

Questions Cloud

Write a program that fills two lists with input from the use : Write a program that fills two lists with input from the user. One list should be students' first names and the second list should be students' last names.
What trade barriers were in place during that decade : Under a system of perfectly free commerce, each country naturally devotes its capital and labour to such employments as are most beneficial to each.
What do you think the value of software contract : This week we will discuss the role of contracts. From a purely IT perspective, what do you think the value of a software contract is ?
Organization protects client information : You are the owner of an IT Consulting Business. What best practices would you implement to make sure that an organization protects client information.
Calculate the final charge of a product at a retail store : Design a python program to calculate the final charge of a product at a retail store. You must also create flowcharts for each function and for the program.
Technology leading us in terms of the future : Where do you see technology leading us in terms of the future? we use every day that is not protected and subject to being hacked?
Case involving united states of america versus ross ulbrecht : Using a Microsoft Word document, please discuss the case involving the United States of America versus Ross Ulbrecht.
Provide a screenshot of your program that contains cyclist : Provide a screenshot of your program that contains at least two cyclist entries that you added to the list. P.rovide the code from your .pyw file that you used
United states supreme court carpenter v. united states : Google search of the term, "United States Supreme Court Carpenter v. United States 2018."

Reviews

Write a Review

Python Programming Questions & Answers

  Write a program that reads the name of a data file

Write a program that reads the name of a data file which contains student ids (such as c1234500) and their scores. The program will find and print the average score, the number of students processed.

  Create a python script that opens a file and perform task

Create a python script that opens a .mbox file and perform the following: the script will open a file containing a blacklist of words and it will report whether

  Read and analyse the ice cream weekly sales data

ICT702 - Data Wrangling - university of sunshine coast - Below Zero - ice cream store - read and analyse the ice cream weekly sales data and generate various

  Write a python program that performs simple encryption

You are required to write a Python program that performs simple encryption and decryption on strings entered by the user. To do so, you are to use one of the simplest and most widely known encryption techniques known as the Caesar Cipher

  Implement a program in python that given names of students

Implement a program in Python that, given 500 names of students and 500 integers in the range (0,100) representing the scores of these 500 students, calculates

  How is a high-level programming language interpreted

What purpose are high-level programming languages used? What is one similarity between low- and high-level programming languages?

  Write a program that finds the longest word in dictionary

The letters A through F are used for writing hexadecimal numbers and can also spell a few English words.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  The difference between serialisation and deserialisation

Explain the difference between a class variable and an instance variable by referring to how changes made to each will affect other instances.

  Display the solution according to the aforementioned formula

Write a program that takes the three coefficients a, b, and c as input, computes and displays the solutions according to the aforementioned formula.

  Give your artwork a name and print the name to the output

Using comments, type heading that includes your name, today's date, and a short description of the program. Follow the Python style conventions .

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

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