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

  Implement functions for insertion sort

Implement functions for Insertion sort and bubble sort in python programming language and a function that calculates the function execution time.

  The function should return the day name (''su'',''mo''..etc)

Write the function day(d,m) where m is an integer from 1 through 12 expressing a month, and d is an integer from 1 through 31 expressing the day part of a date in 2014.

  Write a function rmduplic(l), where l is any list

Write a function rmDuplic(L), where L is any list. The function should return a list M that contains the same items as L, except that repetitions (duplicates) have been removed: only the first occurrence of each entry is kept (i.e., order is prese..

  Design a prgram using python

Design a prgram USING PYTHON that students can use to calculate what score they need on final exam to get a certan final grade for a course.

  Improve the structural design - haunted house game

List the things you changed and the purpose of changing it. Good reasons include making code easier to read and easier to navigate when modifying it.

  Console program where you will implement

Create a console program where you will implement coding constructs and variables that are needed for this program and will implement the code within Main and any required static methods.

  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.

  The program should allow the student

The program should allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed.

  Specializes in solving the equations ax=b by doolittle''s dec

Write a  program that specializes in solving the equations Ax=b by Doolittle's decomposition method, where a is the HIbber matrix of arbitrary size nxn

  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.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  We would like to implement the lexical order

We would like to implement the lexical order for lists. For simplicity, we only consider lists of numbers, where , >= have their usual meaning.

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