Get quote & make Payment
Python Program Help, Python Programming
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:
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>
Total number of items sold: 117
Revenue lost due to reductions: $207.33
Total income: $376.82
Posted Date: 12/6/2012 12:54:39 PM | Location : United States
Ask an Expert
Python Program Help, Assignment Help, Ask Question on Python Program Help, Get Answer, Expert's Help, Python Program Help Discussions
Write discussion on Python Program Help
Your posts are moderated
Write your message here..
Programming embedded systems-programming models, Programming models Ju...
Programming models Just as there are several methods for organizing entire software systems, there are different strategies for formally expressing computational processe
Python programme comparing for and while loops, 1) Write a python progra...
1) Write a python programmecomparing for and while loops like the following. Math Times table For Loop: 2x1=2 2x2=4 ..... 2x12=24 While Loop: 3x1=3 3x
Range, Range Very frequently, we will want to iterate through a list o...
Range Very frequently, we will want to iterate through a list of integer values, often as indices. Python gives a useful function, range, which gives lists of integers. It ma
Tower of Hanoi, Tower of Hanoi game that you can let a player to move discs...
Tower of Hanoi game that you can let a player to move discs between the towers using a mouse. Moreover, you are required to do the followings: •Graphically represent any state in t
Program to solve word search puzzles, This assignment involves writing a pr...
This assignment involves writing a program to solve word search puzzles. For example in the following word grid it is possible to find the words active, stock, ethernet and java. N
Random Geometric Graphs, Displaying random geometric graphs in an uniform s...
Displaying random geometric graphs in an uniform square, unit disk, dense rim unit disk, and uniform sphere
Analytical models, Analytical models Analytical tools are very importa...
Analytical models Analytical tools are very important. It may be hard to check the correctness of a machine by trying it in several possible initial conditions with al
File handling , A program to count how many files are on the file system wh...
A program to count how many files are on the file system which displays summary information regarding the total number of bytes used by all files and a breakdown of the number of b
While loop, You should use for whenever you can, because it creates the s...
You should use for whenever you can, because it creates the structure of your loops clear. Sometimes, however, you require to do an operation various times, but you don't want t
Cps translator for python, Your task is to construct a translator from the ...
Your task is to construct a translator from the subset of Python in Project 3 intocontinuation-passing style (CPS). Of course, the expected way of accomplishing this is to trans
Accounting Assignment Help
Economics Assignment Help
Finance Assignment Help
Statistics Assignment Help
Physics Assignment Help
Chemistry Assignment Help
Math Assignment Help
Biology Assignment Help
English Assignment Help
Management Assignment Help
Engineering Assignment Help
Programming Assignment Help
Computer Science Assignment Help
IT Courses and Help
Why Us ?
~24x7 hrs Support
~Quality of Work
~Time on Delivery
~Privacy of Work
Human Resource Management
Literature Review Writing Help
Follow Us |
T & C
Copyright by ExpertsMind IT Educational Pvt. Ltd.