{"id":1568,"date":"2015-09-01T14:45:10","date_gmt":"2015-09-01T12:45:10","guid":{"rendered":"http:\/\/www.blue.pri.ee\/ttu\/?page_id=1568"},"modified":"2025-10-13T22:49:50","modified_gmt":"2025-10-13T20:49:50","slug":"homework-i","status":"publish","type":"page","link":"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/","title":{"rendered":"Homework I"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Homework_1_Tabulating_a_function_yfx\" >Homework 1: Tabulating a function y=f(x)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Video_explainer_of_the_task\" >Video explainer of the task<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Homework_variant\" >Homework variant<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Report\" >Report<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Adjusted_report_template\" >Adjusted report template<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Generic_template_LaTeX\" >Generic template (LaTeX)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Generic_template_MS_Word_OpenOffice\" >Generic template (MS Word, OpenOffice)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Documentation_contents\" >Documentation contents<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Common_issues_in_reports\" >Common issues in reports<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Requirements_for_the_standards_and_environment\" >Requirements for the standards and environment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Requirements_for_the_solution\" >Requirements for the solution<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Extra_task_for_bonus_points\" >Extra task for bonus points<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Deadlines\" >Deadlines<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Submitting_Your_work\" >Submitting Your work<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Result_and_feedback\" >Result and feedback<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Fixing_your_homework\" >Fixing your homework<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Homework_1_Tabulating_a_function_yfx\"><\/span>Homework 1: Tabulating a function y=f(x)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>For homework I, you will have to create a software solution, that will solve a mathematical function y = f(x) within the limitations specified. The results must be displayed as a table with columns for X and Y values. Some hints about aligning it can be found from <strong><a href=\"https:\/\/blue.pri.ee\/ttu\/coding-guides\/some-printf-tips\/\">printf tips example<\/a><\/strong>.<\/p>\n<table style=\"width: 298px; height: 175px;\">\n<tbody>\n<tr style=\"height: 18px;\">\n<td style=\"height: 18px; width: 89px; text-align: center;\">Argument (x<sub>i<\/sub>)<\/td>\n<td style=\"height: 18px; width: 174px; text-align: center;\">Function value y<sub>i<\/sub>=f(x<sub>i<\/sub>)<\/td>\n<\/tr>\n<tr style=\"height: 18px;\">\n<td style=\"height: 18px; width: 89px; text-align: center;\">x<sub>1<\/sub><\/td>\n<td style=\"height: 18px; width: 174px; text-align: center;\">y<sub>1<\/sub><\/td>\n<\/tr>\n<tr style=\"height: 18px;\">\n<td style=\"height: 18px; width: 89px; text-align: center;\">x<sub>2<\/sub><\/td>\n<td style=\"height: 18px; width: 174px; text-align: center;\">y<sub>2<\/sub><\/td>\n<\/tr>\n<tr style=\"height: 18px;\">\n<td style=\"height: 18px; width: 89px; text-align: center;\">&#8230;<\/td>\n<td style=\"height: 18px; width: 174px; text-align: center;\">&#8230;<\/td>\n<\/tr>\n<tr style=\"height: 18px;\">\n<td style=\"height: 18px; width: 89px; text-align: center;\">x<sub>n<\/sub><\/td>\n<td style=\"height: 18px; width: 174px; text-align: center;\">y<sub>n<\/sub><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The formulas for both x<sub>i\u00a0<\/sub>and y<sub>i<\/sub> are provided by\u00a0your personal variant.<\/p>\n<p>Function value should only be shown if the value exists. If the value cannot be calculated for the given x or is a complex number, You can choose to display &#8220;missing&#8221; or &#8220;complex&#8221;. If you wish, you are free to calculate the imaginary numbers and display them as well. Regardless of the variant, you will need to find up to 20 results.<\/p>\n<p>The inputs for the program come from the keyboard and are entered by the user. All inputs besides the number of steps N must support real numbers. Number of steps N is an integer.<\/p>\n<p>You will need to create and submit a program written in C, an algorithm for the program represented as an UML activity diagram and a report.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Video_explainer_of_the_task\"><\/span>Video explainer of the task<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><iframe loading=\"lazy\" width=\"853\" height=\"540\" allowfullscreen=\"allowfullscreen\" frameborder=\"0\" src=\"https:\/\/echo360.org.uk\/media\/68861249-8415-407e-87c3-f95e2656ad74\/public?autoplay=false&amp;automute=false\"><\/iframe><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Homework_variant\"><\/span>Homework variant<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n<!-- iframe plugin v.6.0 wordpress.org\/plugins\/iframe\/ -->\n<iframe loading=\"lazy\" src=\"https:\/\/blue.pri.ee\/ttu\/files\/iax0583\/kodutoo\/homework1.html\" width=\"100%\" height=\"475\" scrolling=\"yes\" class=\"iframe-class\" frameborder=\"0\"><\/iframe>\n\n<h3><span class=\"ez-toc-section\" id=\"Report\"><\/span>Report<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You will have to write a detailed report on the solution you made. The report must be well structured and detailed. The quality of the report is a part of the grade.<\/p>\n<p>The report must adhere to IT faculty&#8217;s thesis guidelines. Most faculties use the same or similar principles with minor alterations. We are providing you a shortened (non-complete) version of this guide provided, that you should follow:\u00a0<a href=\"https:\/\/blue.pri.ee\/ttu\/resources\/report-guidelines\/\"><strong>https:\/\/blue.pri.ee\/ttu\/resources\/report-guidelines\/<\/strong><\/a><\/p>\n<p><strong>To make this easier for you, we are also providing a template that contains the necessary predefined styles and is adjusted to the requirements of the first homework.<\/strong><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Adjusted_report_template\"><\/span>Adjusted report template<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"color: #ff0000;\"><strong>Download the template:<\/strong><\/span> <strong><a href=\"https:\/\/blue.pri.ee\/ttu\/files\/iax0583\/mallid\/mall_2025_en.dotx\">https:\/\/blue.pri.ee\/ttu\/files\/iax0583\/mallid\/mall_2025_en.dotx<\/a><\/strong><\/p>\n<p>Each section of the template contains comments written in blue text about the expected content. Use these blue texts to guide you. Once the report is finished, delete the blue text before submitting.<\/p>\n<p>You are allowed to change the structure of the template as needed. E.g. you may need to add a subheadings or headings, depending on your work structure.<\/p>\n<p>Make sure to read the documentation writing guide provided under the resources!<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Generic_template_LaTeX\"><\/span>Generic template (LaTeX)<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>The official university LaTeX templates are available on\u00a0 <strong><a href=\"https:\/\/www.overleaf.com\/latex\/templates\/tagged\/taltech\">https:\/\/www.overleaf.com\/latex\/templates\/tagged\/taltech<\/a><\/strong>. Since this is a generic template, please look through the adjusted homework template to make sure that all required parts are covered.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Generic_template_MS_Word_OpenOffice\"><\/span>Generic template (MS Word, OpenOffice)<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>If you wish to use a generic template and adjust it from scratch, you can find them here: <strong><a href=\"https:\/\/taltech.ee\/en\/thesis-and-graduation-it#p43359\">https:\/\/taltech.ee\/en\/thesis-and-graduation-it#p43359<\/a><\/strong><\/p>\n<p>NB! When using a generic template, please look through the adjusted template to make sure that all required parts are covered.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Documentation_contents\"><\/span>Documentation contents<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>In your first homework, use the the template as a guide to structure your written work!<\/p>\n<p>Your report should contain the following sections<\/p>\n<ul>\n<li>Title page<\/li>\n<li>Declaration of originality<\/li>\n<li>List of abbreviations and terms (can be omitted, if none exist)<\/li>\n<li>Table of contents<\/li>\n<li>List of figures and tables (can be omitted, if none exist)<\/li>\n<li>Task description and variant<\/li>\n<li>Mathematical function y=f(x) analysis\n<ul>\n<li>Describe the function, perform a function analysis<\/li>\n<li>Function plot<br \/>\n<em>Possible tools to create it [<a href=\"https:\/\/support.google.com\/websearch\/answer\/3284611?hl=en-EE#plotting\">google<\/a>], [<a href=\"https:\/\/www.wolframalpha.com\/examples\/PlottingAndGraphics.html\">wolfram alphat<\/a>], Microsoft Excel, etc.<\/em><\/li>\n<\/ul>\n<\/li>\n<li>Description of the solution\n<ul>\n<li>A write up on the solution. <strong>Use the key points brought out in the template for guidance!<\/strong> The length of the written part must be between 1 &#8211; 2 A4 pages, not including figures. The description must be well structured<\/li>\n<li>Program workflow<\/li>\n<li>Algorithm, modeled as UML activity diagram<\/li>\n<\/ul>\n<\/li>\n<li>Summary\n<ul>\n<li>A few sentences about your approach to the task and work processes.<\/li>\n<li>A few sentences about the task itself and the complexity of it<\/li>\n<li>If possible, give an estimate on the workload<\/li>\n<li>Would you recommend reusing the task? Would you change anything about it, and if so, what?<\/li>\n<li>Additional comments, emotions, thoughts<\/li>\n<\/ul>\n<\/li>\n<li>References (can be omitted, if none exist)\n<ul>\n<li>Use IEEE style for references<br \/>\nEnglish official reference:\u00a0<strong><a href=\"https:\/\/journals.ieeeauthorcenter.ieee.org\/wp-content\/uploads\/sites\/7\/IEEE_Reference_Guide.pdf\">https:\/\/journals.ieeeauthorcenter.ieee.org\/wp-content\/uploads\/sites\/7\/IEEE_Reference_Guide.pdf<\/a><br \/>\n<\/strong>Reference help by TalTech (in Estonian):\u00a0<strong><a href=\"https:\/\/haldus.taltech.ee\/sites\/default\/files\/2024-05\/IEEE_stiilis_viitamine_2024%20%281%29.pdf\">https:\/\/haldus.taltech.ee\/sites\/default\/files\/2024-05\/IEEE_stiilis_viitamine_2024%20%281%29.pdf<\/a><\/strong><\/li>\n<li>Everything that wasn&#8217;t covered by the subject and that you didn&#8217;t create yourself<\/li>\n<li>This includes help from a friend or a colleague:\u00a0<strong><a href=\"https:\/\/libraryguides.vu.edu.au\/ieeereferencing\/personalcommunication\">https:\/\/libraryguides.vu.edu.au\/ieeereferencing\/personalcommunication<\/a><\/strong><\/li>\n<li>Use of AI tools must be in accordance with the rules specified by the university according to official documentation provided on the TalTech webpage<\/li>\n<li>All references must be directly to the material used. <em>Generic references such as wikipedia.org, stackoverflow.com or google.com are meaningless<\/em><\/li>\n<\/ul>\n<\/li>\n<li>Screen capture(s) of the working program\n<ul>\n<li>Screen captures should illustrate various situations that you program can handle, as well as the normal behavior.<\/li>\n<li>Screenshots can be added as an appendix or embedded within the write up of the solution &#8211; in this case you can extend the length by the amount of figures.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Note: If you used concepts and techniques that were not covered in the programming course by the time of writing this homework, you must explain the principles and benefits the code. You are allowed to go beyond the limits when describing this.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Common_issues_in_reports\"><\/span>Common issues in reports<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>This is a list of commonly made mistakes that we see<\/p>\n<ul>\n<li>The title page is inaccurate.\u00a0 The top two or three lines of the title page indicate to whom you are submitting your report to<\/li>\n<li>Wrong calendar year in the bottom of title page<\/li>\n<li>The predefined styles in the template are not used for formatting body text, headings etc<\/li>\n<li>Blank pages are left in the report<\/li>\n<li>A title cannot be directly followed by either a subtitle, figure or a table. It must contain at least one full paragraph of text directly following the title<\/li>\n<li>A title cannot only contain a figure or a table. It must contain text that explains it<\/li>\n<li>Tables and figures must have a caption<\/li>\n<li>Tables and figures need to be cross-referenced in the text<\/li>\n<li>The written text must not be a large monolithic blob &#8211; you must structure your written text (paragraphs, titles and subtitles, tables, figures, lists Etc.)<\/li>\n<li>Algorithm must be print-ready &#8211; if your report is printed on A4 paper, it must be readable<\/li>\n<li>Your report can only include short snippets of the code and only when it is necessary to illustrate a part of the description Report must not contain your entire program code<\/li>\n<li>Screenshots should only be of your application running, not contain your entire desktop or code editor<\/li>\n<li>Appendixes must be referenced in text<\/li>\n<li>Report cannot contain examples from the template that are not used in the work itself or the blue guidance text<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Requirements_for_the_standards_and_environment\"><\/span>Requirements for the standards and environment<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The program must be written in the C programming language. You are permitted to use the C90 and C99 standards. Using newer standards (C11, C17, C23) is permitted, if it provides additional value. This must be explained in the report.<\/p>\n<p>In addition to the standard C libraries, you are allowed to use C POSIX and GNU C libraries and extensions. Any other libraries must be agreed upon separately.<\/p>\n<p>Your program will be compiled and tested in a Linux environment, equivalent to the one in the lab computers (OpenSUSE SLED-15 SP5, using GCC-12) or the recommendation for home setup\u00a0 (Ubuntu Linux 24.04, using GCC-13 compiler or later). Compatibility with Windows or MacOS is not required.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Requirements_for_the_solution\"><\/span>Requirements for the solution<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Your code must adhere to the practices covered so far.<\/p>\n<ul>\n<li>Must not use GOTO statements<\/li>\n<li>Must not use global variables<\/li>\n<li>Must not use variable length arrays (VLA &#8211; variable length array)<\/li>\n<li>Must not have any unused components in the code (e.g. libraries, variables).<\/li>\n<li>At maximum, the program should 20 results<\/li>\n<li>All inputs (except for the step count) must support floating point values.<\/li>\n<li>Code is divided into functions\n<ul>\n<li>Compose your functions based on the practices learned and follow the coding style requirements<\/li>\n<li>No function should include spaghetti code &#8211; this also includes main() function<\/li>\n<li>main() function must be the first function in your code file. All user defined functions should be after the main function<\/li>\n<\/ul>\n<\/li>\n<li>Code must adhere to the coding style, including (<strong>but not limited to<\/strong>):\n<ul>\n<li>Coding style is uniform throughout the file(s)<\/li>\n<li>All code files have an appropriate header with the name of the author, date, short description<\/li>\n<li>The code is commented<\/li>\n<li>Variable names are self-explanatory<\/li>\n<li>The code is indented, lines are within the maximum allowed length and spaces are put where required.<\/li>\n<li>No magical numbers<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>Requirements for the algorithm<\/h5>\n<p>Generic requirements<\/p>\n<ul>\n<li>Algorithm conforms to the UML activity diagram requirements<\/li>\n<li>Algorithm is divided into swim lanes based on logical blocks<br \/>\n<em>NB! Algorithm should not specify or reference the user-defined functions!<\/em><\/li>\n<\/ul>\n<p>Make sure not to have the following common mistakes<\/p>\n<ul>\n<li>Each decision node specifies a condition<\/li>\n<li>All of the possible exits (flows) from a decision node are marked (e.g. in what condition will the program follow each path &#8211; true\/false, const values for switch cases Etc.)<\/li>\n<li>All flows from a decision node must be viable &#8211; each flow must be logically reachable<\/li>\n<li>If multiple paths merge (following a decision node), a merge node must be used<\/li>\n<li>No dead ends &#8211; You have to have a way to the exit from all of the nodes, actions Etc.<\/li>\n<li>No infinite loops &#8211; It must always be possible to exit them<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Extra_task_for_bonus_points\"><\/span>Extra task for bonus points<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>It is possible to earn up to 15 bonus points from the task. In order to get any points, you must include the added features to the report. It is possible to obtain partial bonus points if not all requirements are met.<\/p>\n<p>To get bonus points, the following requirements must also be met in addition to the base requirements<\/p>\n<ul>\n<li>All X and Y values must be stored in arrays\n<ul>\n<li>Storing the results to the array(s) must be written in a separate function from where the results from the arrays are printed<\/li>\n<\/ul>\n<\/li>\n<li>In addition to allowing the user input for the values used for calculations, your program must have preconfigured (hardcoded into the source code) sets of values\u00a0 which the user must be able to execute\n<ul>\n<li>User must be able to choose if they want to enter the values or use a preconfigured set of values<\/li>\n<li>You must have at least 2 sets of preconfigured values that demonstrate your program in different situations<\/li>\n<\/ul>\n<\/li>\n<li>Program must be able to calculate multiple sets of results without exiting. User must have an option to close the program when desired.<\/li>\n<li>You must add a level 1 heading to the documentation called &#8220;Extra task&#8221;.\n<ul>\n<li>Describe the added features<\/li>\n<li>Describe the chosen input sets and why they were chosen<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Deadlines\"><\/span>Deadlines<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"color: #ff0000;\"><strong>A complete homework must be submitted no later than 19.10.2025 23:59:59 (local time)<\/strong><\/span><\/p>\n<p>Each day passed the homework deadline will deduct 1 point from the final homework score. The late penalty is capped at 50 points, meaning if you submit 60 days late, you will still lose 50 points..<\/p>\n<p>If we have questions about the submitted homework or are not sure about the original author of this work, we will grade this with 0p. In this case, the work must be defended.<\/p>\n<p>If it becomes necessary, we will enforce the rules and guidelines of [<a href=\"https:\/\/haldus.taltech.ee\/sites\/default\/files\/2020-10\/Terviktekst_IT-teaduskonna%20\u00f5ppuri%20akad%20tavade%20rikkumise%20ja%20v\u00e4\u00e4ritu%20k\u00e4itumise%20menetlemise%20kord_ENG.pdf\">Procedure for processing a student\u2019s violation of academic practices and contemptible behavior in the School of Information Technologies<\/a>]\n<p data-select-like-a-boss=\"1\"><strong><span style=\"font-style: inherit; color: #ff0000;\">We will only accept Your homework until the lockdown date (check introduction slides). Past that, submitting your homework will not be possible.<\/span><\/strong><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Submitting_Your_work\"><\/span>Submitting Your work<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You need to submit the documentation in Adobe PDF format and all the necessary code files to compile your program.<\/p>\n<p data-select-like-a-boss=\"1\">Naming schema: HW1_&lt;lastname&gt;_&lt;studentcode&gt;<\/p>\n<p>Example:<\/p>\n<p style=\"padding-left: 30px;\">HW1_Smith_123456MVEB_code.c<br \/>\nHW1_Smith_123456MVEB_report.pdf<\/p>\n<p>Submitting is done using Moodle.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Result_and_feedback\"><\/span>Result and feedback<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>After your work has been checked and graded, you will see the result and feedback on Moodle (visible from the course gradebook!). If everything was well done, feedback may be absent.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Fixing_your_homework\"><\/span>Fixing your homework<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You are allowed to fix and improve your homework score until the date of homework lockdown. All fixed submissions are subject to defense.<\/p>\n<p>To fix your homework, first go through your feedback. Then contact your teacher and agree upon the process of how this homework can be fixed.<\/p>\n<p>NB! If fixing the homework changes more than half of the original homework, it is considered as submitting a completely new homework, from which minus points can be deducted from depending on the time of submission.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Homework 1: Tabulating a function y=f(x) For homework I, you will have to create a software solution, that will solve a mathematical function y = f(x) within the limitations specified. The results must be displayed as a table with columns for X and Y values. Some hints about aligning it can be found from printf &hellip; <a href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/\" class=\"more-link\">Loe edasi <span class=\"screen-reader-text\">Homework I<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1425,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"page-templates\/code-width.php","meta":{"footnotes":""},"class_list":["post-1568","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/pages\/1568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/comments?post=1568"}],"version-history":[{"count":20,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/pages\/1568\/revisions"}],"predecessor-version":[{"id":10799,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/pages\/1568\/revisions\/10799"}],"up":[{"embeddable":true,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/pages\/1425"}],"wp:attachment":[{"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/media?parent=1568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}