The first few lines of our program should be comments that state: the program name,
Question:
The first few lines of our program should be comments that state: • the program name, • the author's (your) name, • date the program is released, • a brief description of the main task performed by the program.
A program should have meaningful variable names (names should not be single letter or abbreviations for example ip is not a good name but InitialPrice is a good name). There should be a comment on each major function point: input, calculation, output, setup.
To DO. write a program in Python. (Only in Python)
In shopping for a new house, you must consider several factors. In this problem the initial cost of the house, estimated annual fuel costs, and annual tax rate are available. Write a program that will determine the total cost after a five-year period for each of three houses. On each line, the text up to the colon is displayed by your program while the number is input by the user and read by your program. Do not hard code the numbers.
To calculate the house cost, add the fuel cost for 5 years to the initial cost, then calculate taxes for five years and add them to the value obtained in adding the initial cost and fuel costs. Taxes for one year are computed by multiplying the tax rate and the initial cost.
External documents (answer the below questions).
- ANALYSIS
Give the variables that you have identified to hold data and explain the type of data for each variable. Give variables to store results of formulas. Also give variables to hold constants. Give formulas to convert input data to output data using variable names that you identified.
- Design
Explain the reasoning of the structure and logic of your program. Give the algorithm in pseudocode form of the step-by-step statements to carry out the required programming task in English phrases. Pseudocode should be in nicely listed phrases, not English prose. Pseudocode should not be in Python.
- IMPLEMENTATION
What was the platform and programming environment used? Name the Operating System and compiler. How did you test your program? Give the data used to test the program. Did you encounter any unusual situations when running the program (For example, what happens when an alphabetic character is input instead of an account number)?
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill