{"id":7195,"date":"2021-10-12T14:54:39","date_gmt":"2021-10-12T14:54:39","guid":{"rendered":"https:\/\/assignmenttutors.net\/blog\/programming-computer-science-homework-help\/"},"modified":"2021-10-12T14:54:39","modified_gmt":"2021-10-12T14:54:39","slug":"programming-computer-science-homework-help","status":"publish","type":"post","link":"https:\/\/assignmenttutors.net\/blog\/programming-computer-science-homework-help\/","title":{"rendered":"Programming | Computer Science homework help"},"content":{"rendered":"<div>\n<p>Again every programming assignment must include the python program and a file with snap-shots of the program running like the case study. You should at least have two files uploaded.\u00a0<\/p>\n<p>1. \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching experience. For example, a beginning teacher in the Lexington School District might be paid $30,000 the first year. For each year of experience after this first year, up to 10 years, the teacher receives a 2% increase over the preceding value. Write a program that displays a salary schedule, in tabular format, for teachers in a school district. The inputs are the starting salary, the percentage increase, and the number of years in the schedule. Each row in the schedule should contain the year number and the salary for that year.<\/p>\n<p>\u00a0<\/p>\n<p>2. \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment. Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, of a payment schedule for the lifetime of the loan. Each row of the table should contain the following items:<\/p>\n<p>\u2022 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the month number (beginning with 1)<\/p>\n<p>\u00a0\u2022 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the current total balance owed<\/p>\n<p>\u2022 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the interest owed for that month<\/p>\n<p>\u2022 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the amount of principal owed for that month<\/p>\n<p>\u00a0\u2022 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the payment for that month<\/p>\n<p>\u2022 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0the balance remaining after payment<\/p>\n<p>The amount of interest for a month is equal to balance * rate \/ 12. The amount of principal for a month is equal to the monthly payment minus the interest owed.<\/p>\n<p>\u00a0<\/p>\n<p>Hints: on formatting tabular data.<\/p>\n<p># type this in the console of python<\/p>\n<p>for exponent in range(7,11):<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0print(exponent, 10 ** exponent) #then hit enter two times to see results<\/p>\n<p># also try print(\u201c%-3d12d\u201d % (exponent, 10 \u00a0** exponent))<\/p>\n<p>#Right Justified<\/p>\n<p>\u201c%6s\u201d % \u201cfour\u201d<\/p>\n<p>#Left Justified<\/p>\n<p>\u201c%-6s\u201d % \u201cfour\u201d<\/p>\n<p>\u00a0<\/p>\n<p>#for float %&lt;field wisth&gt;,&lt;presision&gt;f<\/p>\n<p>\u201c%6,3f\u201d % 3.14<\/p>\n<p>#observe the results<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Again every programming assignment must include the python program and a file with snap-shots of the program running like the case study. You should at least have two files uploaded.\u00a0 1. \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching experience. For [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-7195","post","type-post","status-publish","format-standard","hentry","category-homework-help"],"_links":{"self":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/7195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/comments?post=7195"}],"version-history":[{"count":0,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/7195\/revisions"}],"wp:attachment":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/media?parent=7195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/categories?post=7195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/tags?post=7195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}