computer science

Get perfect grades by consistently using www.assignmentgeeks.org. Place your order and get a quality paper today. Take advantage of our current 20% discount by using the coupon code GET20


Order a Similar Paper Order a Different Paper

computer science

computer science
Assignment 1 | Control Structures COMP 150 (ON1) : Introduction to Programming (100 points) Due : Feb. 25 th , 202 2 ( 23:59: 00 (PDT) ) [Submission via Blackboard] Brief Description This assignment amounts to 5 % of the entire course grade. In particular , whatever your obtains as a score will be scaled to this value f inal grade computation. You are required to work ALONE . No l ate submission will be permitted (see deadline above). The goal of this assignment is to assess your knowledge and skills on Contr ol structures, while developing skills to map requirements to program code. You will fi nd a grading scheme at the end of this d ocument { to guide you on instructor ’s expectations while preparing your submission. Program Requirements Ontario ’s Income Tax Calculator: Employees within the province of Ontario are taxed at di ff erent levels – Federal and Provincial. Other deductions li ke Canadian Pension Plan (CPP), Employment Insurance, and Tax amounts are computed according to salary brackets. ( click here to See Payroll Deduction for Ontario Province { E ff ective January 1, 2020 ) Ontario ’s (i.e., provincial) tax due is given as follows: 5.05%, 9.15%, 11.16%, 12.16 % and 13.16% for taxable incomes in [$0 .. $44,740.01), [$44,740.01 .. $89,482.01), [$89,482.01 .. $150,000.01), [$150,000.01 .. $220,000.01) a nd [$220,000.01+) brackets respectively. In 2020, federal (this includes employees in Ontario) tax due is given as follows: 15.0%, 20.5%, 26.0%, 29.0% and 33.0% for taxable incomes in [$0 .. $48,535.01), [$48,535.01 .. $97,069.01), [$97,069.01 .. $150,473 .01), [$150,473.01 .. $214,368.01), and [$214,368.01+) brackets respectively. Other deductions include CPP (Cana da Pension Plan) and EI (Employment Insurance). While CPP is 5.25% of the gross income (but to a maximum amount of $2,898.00) , EI is 1.58% of t he gross income (but to a maximum amount of $856.36) . Besides, the deductions above is the health premium. Ontar io employees are charged health pre miums using the following rules: (a) If the taxable income is less than or equal to $20,000.00, the premium is $0.00. (b) If the taxable income is greater than $20 ; 000 : 00 and less than or equal to $36 ; 000 : 00, the premium is equal to the lesser of: (i) $300 : 00 and (ii) 6% of (taxable i ncome – $20,000.00); (c) If the taxable income is greater than $36 ; 000 : 00 and less than or equal to $48 ; 000 : 00, the pre mium is equal to the lesser of: (i) $450 : 00 and (ii) 300 + 6% of (taxable in come – $36,000.00); (d) If the taxable income is greater than $48 ; 000 : 00 and less than or equal to $72 ; 000 : 00, the pre mium is equal to the lesser of: (i) $600 : 00 and (ii) 450 + 25% of (taxable income – $48,000.00); (e) If the taxable income is greater than $72 ; 000 : 00 and less than or equal to $200 ; 000 : 00, the pre mium is equal to the lesser of: (i) $750 : 00 and (ii) 600 + 25% of (taxable income – $72,000.00); (f) If the taxable income is greater than $200 ; 000 : 00, the premium is equal to the lesser of: (i) $900 : 0 0 and (ii) 750 + 25% of (taxable income – $200,000.00 ). 1 COMP 150 (ON1) : Assignment 1 | Control Structures Write a program that: (a) takes employee ’s annual taxable income from the user; (b) writes to the screen (see fi gure 1): employee ’s annual taxab le income; annual provincial and federal tax amounts and their respective brackets; annual CPP and EI amounts; a nnual health premium; and employee ’s annual net income (i.e., after deducting appropriate provincial and federal level taxes, and allowed CPP , EI and health premium). Figure 1: Expected Output – if your program works correctly. Hint: Develop your program using Python ’s program mode. In particular, write a le for your program and document your program accordingly. Your progr am would be wrong if it allows negative salary. Notation – [x .. y) means set of values ranging between x and y, x is inclusive but y is not inclusive . COMP 150 (ON1) : Assignment 1 | Control Structures Grading S cheme The following scheme will be used to grade your submission. Therefore, you may also use it as a guide in preparing your deliverable. Please note that i n addition to submission of the files , you need to demo your code in class or record a video and explain your answer. If you decided to re cord a video instead of in – class demo, p lease s ubmit the link to your video clip (roughly about 3 min, not more than 5 min) that explain s clearly your program design, run your code with examples , and de monstrate your solution . You could provide the link to your vid eo (on Youtube/Vimeo/…) in the body of your submission. Grade Item Weight A syntactically and semantically correct program. 4 0 In – class demo or v ideo describing the code and demo that it works 30 A program with deta iled program d esign 10 A fl owchart of your program must be included. This must rep resent your program. You can use pen and paper for dra wings. You may also decompose the problem into separate comp onents, draw them each and show how the compon ents will be coupled to realize your code . 10 Program e ffi cienc y. That is, using e ffi cient but correct control structures . 5 A program w ith detailed program documentation and uses sen sible variable names. Your program ’s fi le name and other f iles should be zipped and named in the following format : [ fi rst Name _ lastName _ studentID ] 5 Total 100

Writerbay.net

Do you need help with this or a different assignment? We offer CONFIDENTIAL, ORIGINAL (Turnitin/LopesWrite/SafeAssign checks), and PRIVATE services using latest (within 5 years) peer-reviewed articles. Kindly click on ORDER NOW to receive an A++ paper from our masters- and PhD writers.

Get a 15% discount on your order using the following coupon code SAVE15


Order a Similar Paper Order a Different Paper