31 Jan Please make sure you are completing your own
CIS201 Program Assignment 3
Description
Capital assets (cars, equipment, buildings etc.) are not expensed when you buy them but are depreciated over their estimated useful life (n). With a straight-line method of depreciation each year the capital asset depreciates (1/n)th of its cost (minus salvage value which is the value it can be sold for at the end of its useful life). Thus if an asset costs $21,000 has a salvage value of $1,000 and a useful life of 4 years its annual depreciation is figured:
($21,000 – $1,000)/4 = $5,000 a year
Its depreciation schedule would look like this (based on the asset being purchased in 2015):
The ending value at the end of year 4 would be the salvage value.
Write a program that:
· Include section comments (one for the program and sections of the program) and any line comments needed (for lines of code that are not obvious to another programmer)
· Start by declaring all variables needed (and any constants if applicable)
· Make sure you initialize all variables to their null value
· Have an explanatory print statement to explain to the user what the program is about and how to enter data
· You will need to prompt for input of:
· Start with a print statement explaining to the user not to leave input blank and enter numeric data where applicable
· The asset name
· Use a while loop to make sure the user enters the correct information. Remember this is a string and so the value error code will not work on this.
· The year the asset was purchased
· Use the While Value Error Loop to make sure the user enters correct data
· The cost of the asset
· Use the While Value Error Loop to make sure the user enters correct data
· The salvage value of the asset
· Use the While Value Error Loop to make sure the user enters correct data
· The useful life of the asset
· Use the While Value Error Loop to make sure the user enters correct data
· Use new line code to put spacing in for readability of prompts, have prompts free of grammar and spelling errors and if currency use the $ in the prompt
· Once the user enters the input you will need to complete:
· Calculations for straight-line depreciation
· Set up any variables for looping (this could be dependent on how you go about the loop
· Initial output (see figure below)
· Use a for loop statement to create the depreciation table (it will include columns as per the picture below)
· The for-loop will be based on the useful life of the asset
· Output:
· Will be similar to the screen below (it does not need to be exact but, should have a table format for the depreciation schedule and show the information from input used for depreciation.
· All currency will have the dollar sign, comma and taken to 2 decimal places
Please make sure you are completing your own work. There is no possible way 2 people can create the exact same program code. Remember if you share your files both the student who submitted another student’s file and the person who gave the file to that student will get a zero (0) on the assignme
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
Do you need help with this question?
Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.
WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.
With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Chat with us today! We are always waiting to answer all your questions.