Python Program Help, Python Programming

Assignment Help:
Write a Python program to accomplish the following. Use modular design. Include at least 3 functions: one that returns zero values, one that returns one value, and one that returns more than one value. Do all your input from an external text file, created by you according to the file specs given below. Place your output in an external text file. Submit your source code via Blackboard. Also turn in a printout of your source code and a printout of the program’s results which you placed in an external text file named “prog4out.txt”. You don’t need to give Blackboard your output file. Please do not include any directory names in your external text file references. Name your external input file “prog4input.txt”.

The Village Variety Store is having its annual Christmas sale. Its owners would like you to write a program to produce a daily report for the store. Each item sold is identified by an item code consisting of one letter followed by one digit. Your report should include data for all items in the file. Your program must work for any number of items. You may assume the first record(line) in the file indicated the number of items present in the file. Each of the three lines of data will include an item code, number of unique items sold, original item price, and reduction percentage. Your report should include a chart with the input data, sales price per item, and total amount of sales generated by the item. Also print a daily summary. Assume the file contains store sales for one day.

An example input data file follows:
3
A7 13 5.95 15
R5 24 7.95 20
T2 80 3.95 50

Your output file must be formatted as follows:

Village Variety Store

Item Code Number Sold Original Price Reductions Sales Price Income
------------- ----------------- ----------------- -------------- ------------- ----------

A7 13 $5.95 15% $5.06 $65.78
R5 24 $7.95 20% $6.36 $152.64
T2 80 $3.95 50% $1.98 $158.40
<3 blank lines>


Daily Summary:
------------------

Total number of items sold: 117

Revenue lost due to reductions: $207.33

Total income: $376.82






Related Discussions:- Python Program Help

If statements, how do you make an if and else statment work in pytho?

how do you make an if and else statment work in pytho?

Top-down approach, what are the issues assciated with top-down analysis

what are the issues assciated with top-down analysis

Program in c to generate random input - python script, For this assignment,...

For this assignment, you are to: 1.    Modify the output format of your Python script from Assignment 1 to match the input format of your C program from Assignment 2. 2.    W

Primitives, Primitives, Composition, Abstraction, and Patterns   We ...

Primitives, Composition, Abstraction, and Patterns   We will  start  by thinking about  how  the  PCAP  framework applies to computer programs, in general. We may do that by

Data wrangling, Ask quesICT702 TASK 2 1 2018 Semester 2 Data Wrangling Due ...

Ask quesICT702 TASK 2 1 2018 Semester 2 Data Wrangling Due in two parts - Friday of Week 9 and Week 12 Below Zero - ice cream store The local ice-cream store needs a new ordering s

Re.sub, how to use re.sub to seperate distint words and phrases when transl...

how to use re.sub to seperate distint words and phrases when translating text from English to Spanish or vis versa in python programming

Algorithms, Write an algorithm for the sum of the given series 1,-1/2,1/4,-...

Write an algorithm for the sum of the given series 1,-1/2,1/4,-1/8.....

Van der waals equation of state, how to make a python programme for van der...

how to make a python programme for van der waals equation of state with surface discontinouty

Python implementation of a solver for the desert crossing, Assume you have ...

Assume you have a truck which has to travel across a desert from the base camp at position 0 (left) to the target camp at position 4 (right). The intermediate positions 1,2, and 3

Write Your Message!

Captcha
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