Describes the steps required to perform the task specified

Assignment Help Data Structure & Algorithms
Reference no: EM13841255

Assessment

Task

A local shop keeper wants a Python program to calculate and comparing the prices a product supplied by 3 supplies. Each supplier has different product prices and discounts. The program should allow him to enter the supplier's first name, last name, product price, discount rate (ex: 5%) for each supplier. Then the program should calculate the discounted price for each supplier and should display the following output:

Compare Return for Bank Term Deposits

Supplier Name Actual Product Price Discount Rate Discounted Price

Alan Parker $100 4% $96.00

John Sugar $110 5% $104.50

Nick Dickson $120 15% $102.00

Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified. Some examples of pseudocode can be found athttps://www.unf.edu/~broggio/cop2221/2221pseu.htm.

Select 3 sets of test data that will demonstrate the ‘normal' operation of your program: that is test data that will demonstrate what happens when VALID input is entered. Select another 2 sets of test data that will demonstrate the "abnormal" operation of your program. Set it out in a tabular form: the test data, the reason it was selected, the output expected as a result of using that test data, and finally leave space to record the output actually observed when the test data is used.

Implement your algorithm in Python. Comment your code as necessary to explain it clearly.

Run your program using the test data you have selected and save the output it produces in a text file.

Submit:

1. Your algorithm.

2. The table recording your chosen test data.

3. Source code for your Python implementation.

4. Output listings demonstrating the results of using the test data.

It is important that the output listings are not edited in any way.

Rationale

Reinforce topic material related to the programming work cycle, and the input, processing, output program structure.

Presentation

You MUST prepare and present all source code, output from test runs, and other documentation as separate files within a single directory (folder) identified by your name. This directory will later be compressed into a single ZIP file - see the -Requirements- section below.

• The Python source code you write should be saved with a name such as ITC106_Ass_1.py by choosing File Save As, from the IDLE -edit- window.

• The test run (or runs) produced when your Python program executes should be saved with a name such as ITC106_Ass_1.txt by choosing File Save As, from the IDLE -run- window. (N.B. When testing your final program, start with a new (empty) run window, perform ALL necessary test runs one after the other, then when finished save the contents of the -run- window into ONE file showing ALL test runs in the order that you carried them out. This order should match the order of the test in your -test data table-).

• The other documentation (such as your pseudocode, and your table of test data etc.) should be saved in a Word document with a name such as ITC106_Ass_1.doc.

Thus your directory for Assignment A1 will contain three files - and be identified with your name (and not the name of the subject or the assignment).

It is critically important that your test runs (saved as one file with a .txt extension) are unmodified outputs from your program, and that these results should be reproducible by the marker running your saved .py python program in IDLE. In this subject test runs, and python program listings are NOT to be cut and pasted in any form from the IDLE windows. (For example you might be tempted to cut the output from test runs and to paste it into a Word document to create a -pretty- assignment with headers and footers the way you might be used to doing for other subjects. DO NOT DO THIS! The un-edited contents of the -edit- and -run- windows from IDLE is all we want to see in the .py program listing file and the .txt test run file.)

Requirements

Once you have saved the three files (as described under -Presentation- above) into a single directory identified by your name, you MUST compress that directory into a single ZIP file (and only a ZIP file - not a RAR file or some other compressed file format), as outlined in the section on presentation. Failure to adhere to these requirements will attract a 10% penalty.

Reference no: EM13841255

Questions Cloud

A cell be able to survive without mitochondria : Would a cell be able to survive without mitochondria. Why or why not. Do you think that a plant cell, which already has a stiff, strong cell wall, still really needs a cell membrane. Explain why or why not.
Discuss one of the criticisms of your chosen theory : Discuss one of the criticisms of your chosen theory. Discuss how you, as future business professionals, can affect society in positive and negative ways.
Constructing valid arguments : Constructing Valid Arguments
Following jesus in social work : Summarize the attached article. No plagiarism, cite your work properly. Article- Following Jesus in Social Work: Learning from Anabaptist Theology and Practice
Describes the steps required to perform the task specified : Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified. Some examples of pseudocode can be found athttp://www.unf.edu/~broggio/cop2221/2221pseu.htm
Present a proposal for an internet solution for a college : To implement the skills and knowledge gained through the course and to achieve greater awareness of the ways in which networks are used by organisations.
Explain the interpersonal relational aspects associated : Explain the interpersonal relational aspects associated
Explore the following web site, then write critique of site : Explore the following web site, then write a critique of the site
Which groups are more likely to live in poverty and why : Review the content in the text(Aging Matters An Introduction to Social Gerontology by Hooyman Kawamoto Kiyak) regarding Poverty and Old Age. Among the older adult population, which groups are more likely to live in poverty? Why

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Algorithm for a bank account

Write algorithm to settle following question: A bank account starts out with $10,000. Interest is compounded monthly at 6 percent per year (0.5 percent per month).

  Write a pseudocode for divide-and-conquer algorithm

Write a pseudocode for divide-and-conquer algorithm for finding the position of the largest element in an array of n numbers

  Using quicksort with median-of-three

Show the steps in details of sorting {3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5} using quicksort with median-of-three partitioning and a cutoff 3 (if the elements are less than 3, using insertion sort).

  Choose a combination of meaningful data structures

Describe a mechanism to access the telephone customer records by telephone #. Assume that we have a huge data in hand, say a million records or so.

  Dbms and data mining to imporve customer service

Discuss how a database management system and data mining can help motor vehicle maintenance center improve its services, and what tables would be required in such a database.

  Define wan and provide an example of typical wan setup

Define a WAN and provide an example of a typical WAN setup and describe the components. Provide a picture, chart, or image if possible.

  Creating villian

Announce a new Villian called sharpay who has a wit of 24, a stealth of sixteen, and who has currently claimed three victims: Chad, Troy, and Gabriella.

  Describe and implement fft algorithm cooley-tukey

Describe and implement in C++ FFT algorithm "Cooley-Tukey". Also, implement naive DFT and compare naive DFT with FFT using: a sample of the signal x(t) = t

  Deliverable is to design an algorithm

Deliverable is to design an algorithm for a function that accepts an integer array as an argument and returns the total of values in the array. this is algorithm

  Consider that the size of the hash tab is m=16. apply linear

Consider that the size of the hastable is M=16. Apply linear probing with f(i)=i for the following keys. Convert each of the keys to a number associated with the sequence of English alphabet and then draw a table that indicates successful and unsucce..

  Explain binary tree by induction

Binary tree is full if all of its vertices have either zero or two children. Let Bn denote number of full binary trees with n vertices. Illustrate by induction (substitution) that Bn is 2 (n) .

  Draw one child diagram using the level 0 diagram

As a systems analyst or knowledgeable end-user, you must learn how to draw data flow diagrams to model business process requirements.

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