Can you write this program?

User Generated

Znexb

Programming

Description

Unformatted Attachment Preview

CSC 122 – INTRODUCTION TO PROGRAMMING PROG #4 100 POINTS Programming Exercise #4 Property Tax Due: March 19, 2015 Instructions: A county collects property taxes on the assessment value of property, which is 60 percent (0.6) of the property’s actual value. For example, if an acre of land is valued at $10,000, its assessment value is $6,000. The property tax is then 72¢ for each $100 (0.0072) of the assessment value. The tax for the acre assessed at $6,000 will be $43.20. Write a program that asks for the actual value of a piece of property and calls a function named showPropertyTax to display the assessment value and property tax. Both the assessment value and property tax information will need to be passed as arguments to the function. See Program 5-9 (page 187) in textbook and the sample program included with this programming exercise on passing arguments to a function. Programming Style Requirements 1. To write a new Python program in IDLE, you open a new editing window to store your code (also referred to as source code). Click File on the menu bar, then click New File or alternatively you can press Ctrl+N. 2. Standard Output Program Header Information CSC 122-W1 - Program #4 By The standard output program header information is to be included at the top of the program and should be the first lines displayed on the output screen. 3. Comments The program must include a main comment block (3-4 lines is sufficient) after the standard output program header information that describes the purpose of the program. In Python, comments begin with the # character in column 1. Also, there must be comments throughout the program to describe your processes (i.e. formula, loop, etc.). Note, comments can also be put at the end of a line of code. 4. Descriptive names must be used for all variables in the program. 5. The assessment value and property tax must be passed as arguments to the showPropertyTax function. Winter 2015 1 Due: 3/19/2015 CSC 122 – INTRODUCTION TO PROGRAMMING PROG #4 6. Property Tax Information Display the assessment value and property tax rounded to two (2) decimal places as shown in the screen capture below. 7. Required Output: The above screen capture shows correct program execution: Note: The blue text in the required output above is the text generated by the program. 8. Saving the Program Save the program created in the text editor window as Prog4.py 9. Running the Program While in the text editor window, run the program by pressing the F5 key or by clicking Run on the editor window’s menu bar, then Run Module. If the program has not been saved since the last modification was made, a dialog box will appear. Click OK to save the program. When the program runs you will see its output displayed in IDLE’s Python Shell window. When the program is working correctly and free of syntax errors, submit the Prog4.py file to Blackboard. (DO NOT send the program via email. Only homework submitted via Bb will be graded.) Winter 2015 2 Due: 3/19/2015 CSC 122 – INTRODUCTION TO PROGRAMMING PROG #4 Grade Rubric: *Points Description 5 The program is saved with the proper filename. 5 The program displays the standard output header information. 10 The program includes a main comment block along with comments to describe processes used in the program (i.e. formula, loop, etc.). 10 The program uses descriptive names for all variables used in the program. 40 The program has a function called showPropertyTax to the assessment value and property tax information. The function is passed the assessment value and property tax as arguments. 20 The program correctly calculates the assessment value and property tax. See screen capture above. 10 The program displays the assessment value and property tax rounded to two (2) decimal places. 100 Total Points *NOTE: NO CREDIT WILL BE GIVEN FOR A PROGRAM WITH SYNTAX ERRORS. Steps for Uploading the Program to Blackboard 1. Click on the Course Content tab. This will take you to the course assignment that has been posted. 2. Click on the Programming Assignments folder. Program #4 is located in this folder. 3. Click the >> Program #4 link to start the uploading process. 4. Go to the Assignment Materials area to attach the Prog4.py file. Click the Browse for Local File button to locate and attach your file. 5. Once you have attached the Prog4.py file, click the Submit button to submit your program. 6. Program #4 submission has been completed. Winter 2015 3 Due: 3/19/2015
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer


Anonymous
I was stuck on this subject and a friend recommended Studypool. I'm so glad I checked it out!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags