{"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":"2026-09-30T19:58:41","modified_gmt":"2026-09-30T17:58:41","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_88 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_explaining_the_task\" >Video explaining 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\/#Adapted_report_template\" >Adapted 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\/#Report_content\" >Report content<\/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\/#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-8\" 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-9\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Solution_requirements\" >Solution requirements<\/a><\/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\/#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-11\" 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-12\" 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-13\" href=\"https:\/\/blue.pri.ee\/ttu\/programming-i\/homework-i\/#Results_and_feedback\" >Results and feedback<\/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\/#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 1, you need to create a software solution, that tabulates a mathematical function y = f(x) within the constraints specified by the task. The results must be displayed as an aligned table with columns for the argument x and function y = f(x) values. Some hints about aligning it can be found here: <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 specified by your personal variant.<\/p>\n<p>Function value should only be shown if the argument belongs to the function&#8217;s domain. If the value cannot be calculated, either &#8220;missing&#8221; or &#8220;complex&#8221; should be shown in the y column. Optionally you can also calculate the complex values and display them in the y column in the form of real part + imaginary part.<\/p>\n<p>All inputs come from the user by typing them in on the keyboard. All inputs except the number of steps N must allow entering real numbers. Number of steps N is an integer. The specific inputs that you must accept are specified by your personal task variant.<\/p>\n<p>As a result of the assignment, you must prepare and submit a program written in C, an algorithm for the program represented as a UML activity diagram and a written report.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Video_explaining_the_task\"><\/span>Video explaining 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 must submit a detailed report on the solution you made. The quality of the report is a part of the homework points.<\/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 have prepared a shortened guide (non-complete, reduced to only cover relevant sections) for you to follow <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>The report should be reasonable and manageable in terms of both language and length for both the writer and the reader.<\/strong> Avoid unnecessarily complicated wording (i.e. terms you would struggle to understand yourself) and describing activities in a more elaborate way than their actual complexity warrants.<\/p>\n<p>To make this easier for you, we are providing a template that contains the necessary predefined styles and is adjusted to the requirements of the first homework. It also contains explanations under each section about what is expected of you.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Adapted_report_template\"><\/span>Adapted 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_2026_en.dotx\">https:\/\/blue.pri.ee\/ttu\/files\/iax0583\/mallid\/mall_2026_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 guidance texts to guide you. Once the report is finished, delete the blue text before submitting. Make sure to update all the lists (TOC, list of figures and\u00a0 tables) after deleting the blue text. Then export to a PDF file.<\/p>\n<p>You may change the template\u2019s structure as needed, for example by adding headings and subheadings.<\/p>\n<p>Read the report writing guide before using the template to avoid formatting errors and use the template more effectively!<\/p>\n<div class=\"su-spoiler su-spoiler-style-fancy su-spoiler-icon-chevron su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Alternative templates<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<p>The original MS Word template used to create our adapted template is also available among the university&#8217;s templates. A LaTeX template is available as well. If you wish to start with the original template, you must adapt it according to the explanations in the adapted template provided above!<\/p>\n<p>The faculty&#8217;s official tempaltes are available 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>The university&#8217;s LaTeX templates are available here:\u00a0 <strong><a href=\"https:\/\/www.overleaf.com\/latex\/templates\/tagged\/taltech\">https:\/\/www.overleaf.com\/latex\/templates\/tagged\/taltech<\/a><\/strong><\/p>\n<\/div><\/div>\n<h4><span class=\"ez-toc-section\" id=\"Report_content\"><\/span>Report content<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>For the first homework assignment, structure the content according to the\u00a0<strong>adapted report template<\/strong>!<\/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 (if needed)<\/li>\n<li>Table of contents<\/li>\n<li>List of figures and tables (if needed)<\/li>\n<li>Task description and variant<\/li>\n<li>Analysis of the function y=f(x)\n<ul>\n<li>Describe the function and perform an analysis on it<\/li>\n<li>Plot(s) of the function<br \/>\n<em>Possible tools for creating plots [<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 Alpha<\/a>], Excel, etc.<\/em><\/li>\n<\/ul>\n<\/li>\n<li>Description of the solution\n<ul>\n<li>Written description. <strong>Follow the guidance from template!<\/strong> The length of the written part must be between 1 &#8211; 2 A4 pages, with figures added to this. The description must be well structured<\/li>\n<li>Program workflow<\/li>\n<li>Algorithm, modeled as UML activity diagram<\/li>\n<li>Analysis of special situations (simplified risk analysis)<\/li>\n<\/ul>\n<\/li>\n<li>Use of AI<\/li>\n<li>Summary\n<ul>\n<li>Write a few sentences about your approach to the assignment and your work process.<\/li>\n<li>Write a few sentences about the assignment and how difficult it was for you<\/li>\n<li>If possible, give an estimate on the workload<\/li>\n<li>Would you recommend using this assignment in the future? Would you change anything, and if so, what?<\/li>\n<li>Additional comments, emotions, thoughts<\/li>\n<\/ul>\n<\/li>\n<li>References (if needed)\n<ul>\n<li>Use IEEE citation style<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>Cite everything that was not covered in this course and that you did not create independently.<\/li>\n<li>You must also cite help received from a friend or fellow student: <strong><a href=\"https:\/\/libraryguides.vu.edu.au\/ieeereferencing\/personalcommunication\">https:\/\/libraryguides.vu.edu.au\/ieeereferencing\/personalcommunication<\/a><\/strong><\/li>\n<li>The use of artificial intelligence must be cited in accordance with the university\u2019s rules<\/li>\n<li>References to sources must be specific. Generic references such as wikipedia.org, stackoverflow.com or google.com are not acceptable<\/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 your program can handle, as well as the normal behavior.<\/li>\n<li>Screenshots can be added as an appendix or included in the description 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 use techniques or language constructs that have not yet been covered in class, you must explain how they work and the advantages of using them in your solution. You may extend the solution description to accommodate these explanations.<\/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 have encountered over the years:<\/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 (already filled in)<\/li>\n<li>Wrong calendar year in the footer of the 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 heading must be followed by at least one paragraph of text before a subheading, figure, or table can appear<\/li>\n<li>A chapter contains only a figure or figures, without describing or referring to them in the text.<\/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, subheadings, 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. Common issues include poor color contrast and text that is too small<\/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. The report is not the appropriate place to present large amounts of program code.<\/li>\n<li>A screenshot must contain only relevant content, meaning the program you created, rather than your desktop<\/li>\n<li>If appendices are used, they must be referenced in the main text<\/li>\n<li>Unused terms and other sample content must be removed from the report<\/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. By default, it is expected to comply with the C99 standard. Other standards (C90, C11, C17, C23) may be used if they provide added value. The justification must be included 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. The use of other libraries must be agreed upon in advance.<\/p>\n<p>Your solution 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 26.04, using GCC-15 compiler or later). Compatibility with other operating systems (Windows, MacOS) is not required.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Solution_requirements\"><\/span>Solution requirements<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Your code must adhere to the practices covered so far. Among other things, the following requirements must be met:<\/p>\n<ul>\n<li>Must not use <span class=\"lang:c highlight:0 decode:true  crayon-inline \">goto<\/span>\u00a0 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 contain unused elements (e.g. libraries, variables).<\/li>\n<li>No more than 20 results may be calculated and displayed<\/li>\n<li>All inputs except for the step count must support real numbers<\/li>\n<li>The code must be 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 including the main function, may contain\u00a0 spaghetti code<\/li>\n<li>The <span class=\"lang:c highlight:0 decode:true crayon-inline \">main()<\/span>\u00a0 function must be the first function in your code file. All user defined functions should be placed 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 author&#8217;s details, date, and a short description<\/li>\n<li>The code is commented<\/li>\n<li>Clear and self-explanatory variable, macro and function names<\/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>Algorithm requirements<\/h5>\n<p>General requirements:<\/p>\n<ul>\n<li>The algorithm is presented as a UML activity diagram that complies with the standard<\/li>\n<li>The diagram divides your algorithm into logical parts using swim lanes (partitions)<\/li>\n<\/ul>\n<p>Make sure to avoid the following common errors:<\/p>\n<ul>\n<li>Each decision node has a condition that selects the outgoing control flow<\/li>\n<li>All control flows exiting from a decision node are labelled with the appropriate condition (e.g. true\/false, switch case expressions)<\/li>\n<li>If multiple alternative control flows merge following a conditional branch, a merge node must be used<\/li>\n<li>All control flows exiting a decision node must be reachable (i.e. logically viable)<\/li>\n<li>No dead ends &#8211; it must be possible to reach at least one end node from any part of the diagram<\/li>\n<li>No infinite loops &#8211; It must always be possible to exit them<\/li>\n<li>Only show activities relevant do the solution, do not include cosmetic actions (e.g. print a horizontal line)<\/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>You can earn up to 15 bonus points from this task. In order to get any points, you must document the added features in the report. It is possible to obtain partial bonus points if not all requirements are met, however only if the added features are documented in the report.<\/p>\n<p>To earn bonus points, the following requirements must be met in addition to the basic requirements<\/p>\n<ul>\n<li>The code must use arrays to store the function\u2019s arguments and values\n<ul>\n<li>Populating the arrays and displaying their contents must take place in separate functions.<\/li>\n<\/ul>\n<\/li>\n<li>In addition to allowing the user input for the values used for calculations, the program must contain hard-coded sets of initial values that the user can choose.\n<ul>\n<li>The user must be able to choose whether to enter the initial values themselves or use a preset set of values<\/li>\n<li>The program must contain at least two preset sets of values demonstrating how it works in different situations<\/li>\n<\/ul>\n<\/li>\n<li>Program must be able to calculate multiple sets of results without exiting. The user must also have the option to close the program.<\/li>\n<li>Add a top-level numbered heading to the report 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 assignment must be submitted no later than 18.10.2026 23:59:59 (local time)<\/strong><\/span><\/p>\n<p>If we have additional questions about the homework or there are doubts about its authorship, the homework will receive 0 points until it has been successfully defended.<\/p>\n<p>If 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><strong><span style=\"font-style: inherit; color: #ff0000;\">The lockdown date for submitting and defending the homework is specified on the introductory slides. Submitting your homework after that date 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 report in PDF format and all the necessary code files to compile your program.<\/p>\n<p>Naming schema: HW1_&lt;Surname&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>Homework is submitted through Moodle.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Results_and_feedback\"><\/span>Results and feedback<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once your work has been checked, you will find your points and feedback in Moodle. If everything was done well, 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 until the homework lockdown date. Be aware that if you submit your homework less than two weeks before the lockdown date, there may not be enough time for it to be graded and for you to make corrections.<\/p>\n<p>Revised homework must be defended.<\/p>\n<p>To revise your homework, first review the feedback on your work. Then contact the lecturer to agree on the revision process.<\/p>\n<p>NB! If revision requires changing more than half of the work, it will be treated as a new submission, and a late-submission penalty may be deducted based on the date the revision is submitted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Homework 1: Tabulating a function y=f(x) For homework 1, you need to create a software solution, that tabulates a mathematical function y = f(x) within the constraints specified by the task. The results must be displayed as an aligned table with columns for the argument x and function y = f(x) values. Some hints about &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":31,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/pages\/1568\/revisions"}],"predecessor-version":[{"id":11734,"href":"https:\/\/blue.pri.ee\/ttu\/wp-json\/wp\/v2\/pages\/1568\/revisions\/11734"}],"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}]}}