Implement your algorithm in python

Assignment Help Python Programming
Reference no: EM13186521

The Managing Director of Aussie Best Car (ABC) has invited you to build a new computer system for them in Python. The ABC car shop sells three types of cars, Toyota Kluger, Nissan Patrol and Ford Territory. The manager wants the computer software (your Python program) to ask him the selling price of cars, one by one. That is, the program first needs to ask him to enter the price of Toyota Kluger, then the price of Nissan Patrol and finally the price of Ford Territory.

The program then needs to ask the manager to enter the number of cars sold in 2014, one by one. That is, the program needs to first ask and take input on the number of Toyota Kluger, then the number of Nissan Patrol, and finally the number of Ford Territory sold.

Your program should calculate and display the total income of the ABC car shop for each type of car separately. The program then should calculate and display the overall total income of the ABC car shop.

Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified.

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.

Reference no: EM13186521

Questions Cloud

State what is the amount of heat involved in calories : Calories given off when 83g of water cools from 48 degrees Celsius to 27 degrees Celsius.
Reinforce topic material on simple functions : Select 3 sets of test data that will demonstrate the correct 'normal' operation of your program. Select another 2 sets of test data that will demonstrate the "abnormal" operation of your program.
Explain what is the molar mass of the compound : You dissolve the sample in .550 mL of water and determine that the osmotic pressure of the resulting solution is .107 torr at 35 deg C (760 torr = 1.00 atm). What is the molar mass of the compound?
Define an electron is confined to a linear region : An electron is confined to a linear region with a length of the same orderas the diameter of an atom (about 100 pm).
Implement your algorithm in python : Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified and reinforce topic material related to the programming work cycle, and the input, processing, output program structure.
Explain a sample obtained from that mixture : A sample obtained from that mixture containing 443900 particles weighs 10.0g. Determine the number and percent relative standard deviation of NaCN particels from a sample of the mixture weighing 7.16g.
Explain calories of heat in the process : A piece of metal weighing 10.0g is raised in tempreture from 25 C to 76.5C. it is found that it absorbed 47.6 calories of heat in the process.
Write a program that simulates an airplane race : Program will use a function that has the following parameters: time and acceleration and function will pass back two data items: speed and distance.
State sodium hydroxyde in the purification of a solid : adding sodium hydroxyde in the purification of a solid by recrystallization experiment?

Reviews

Write a Review

Python Programming Questions & Answers

  Project will be a simple, working program

This programming project will be a simple, working program, using Python language, which utilizes a good design process and includes:Sequential, selection, and repetitive programming statements as well as,At least one function call.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Data file is a comma separated

The data file is a comma separated text values stored in a file with '.CSV' extension. The file has five columns corresponding to employee data fields listed above.

  The integers should be printed in order with addresses

The integers should be printed in order with addresses from main. When the steps of the function order have been completed the smallest value will be stored in a, the middle in b, and the largest in c.

  Write a function comp(d1,u1,d2,u2)

Write a function comp(d1,u1,d2,u2)

  The number of lowercase letters in the file

The number of uppercase letters in the file The number of lowercase letters in the file

  Output the starting position and length

X Strings: Input a string. Output the starting position and length of the first occurrence of the longest substring of capital Xs in that string. The first letter is in position 1.

  Code for the haunted house game

Improve the game by adding more features, for example you can examine more items, more props etc. You may implement this using more lists regarding items and props, remember, you should check if the object is being carried or in the location of th..

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

  Recursion to write a python function

Use recursion to write a Python function depth(LL), where LL is a nested list of lists of lists etc. of numbers (i.e., oat and int) and strings. We want to return the depth of nesting, i.e., how often, maximally, there is a list in a list etc

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Interaction between the customer and the machine

In Python:Simulate a cash register or ATM including the interaction between the customer and the machine (i.e. assume that you are automating the responses)

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