{"id":267,"date":"2015-02-22T16:29:41","date_gmt":"2015-02-22T05:29:41","guid":{"rendered":"http:\/\/casestudyhelp.com\/sample-questions\/?p=267"},"modified":"2018-01-30T17:46:42","modified_gmt":"2018-01-30T06:46:42","slug":"comp281-c-programming-assignment-help","status":"publish","type":"post","link":"https:\/\/casestudyhelp.com\/sample-questions\/comp281-c-programming-assignment-help\/","title":{"rendered":"COMP281  C Programming Assignment Help"},"content":{"rendered":"<p><strong>COMP281 Assignment 1 \u2013 C Programming<\/strong><\/p>\n<p style=\"text-align: justify;\" align=\"center\"><a title=\"hire best assignment experts online\" href=\"https:\/\/casestudyhelp.com\/MyOrder.php\"><img decoding=\"async\" src=\"https:\/\/casestudyhelp.com\/images\/hire-best-assignment-experts-online.gif\" alt=\"Hire Your Assignment Writing Expert for Collage\/University\" \/><\/a><\/p>\n<p>The following 5 problems will be available as Assignment 1 on the online judging<br \/>\nsystem available at https:\/\/intranet.csc.liv.ac.uk\/JudgeOnline\/<\/p>\n<ul>\n<li>You need to write a valid C program that solves each of these problems \u2013 it must<br \/>\nread the input, as specified in the problem description then print the solution to the given<br \/>\nproblem for that input.<\/li>\n<li>Input is read from the standard input, in the same way that you read input from the keyboard<br \/>\nas shown in lectures (e.g., using scanf). Output is also printed to the standard output, as<br \/>\nyou have seen (e.g., using printf).<\/li>\n<li>When you are satisfied that your programs work correctly, you must submit them through the<br \/>\ndepartmental submission system, as described below.<\/li>\n<li>You must also include a brief report describing your solutions to the problems. This should<br \/>\nbe maximum one side of A4 paper (although there is no penalty for a longer report) and<br \/>\nshould give a description of how each of your solutions works. This should include<br \/>\ndescribing the algorithm used to reach the solution, describing your use of any C language<br \/>\nfeatures (that were not discussed in lectures) and identifying any resources that you have used<br \/>\nto help you solve the problems.<\/li>\n<li>This assignment is worth 30% of the total mark for COMP281<\/li>\n<li>50% of the marks will be awarded for programs that correctly solve the problem for all test<br \/>\ncases. All problems are weighted equally and each counts for 20% of this total.<\/li>\n<li>40% of the marks will be awarded depending on the style, comments and efficiency of the<br \/>\nsolution. All problems are weighted equally and each counts for 20% of this total.<\/li>\n<li>10% of the marks will be awarded for the quality and depth of the accompanying report<\/li>\n<li>See separate marking guidelines for more details.<br \/>\nSubmission Instructions<\/li>\n<li>Name each of your c files according to the problem number; i.e.,<br \/>\n1014.c,1017.c,1025.c,1060.c and 1030.c. Place all five of your C files and your<br \/>\nreport (in .pdf format) into a single zip file.<\/li>\n<li>All question have also been\/will also be posted on www.csc.liv.ac.uk\/JudgeOnline<\/li>\n<li>Before you submit your solutions, please first test them using the online judge. You<br \/>\nare required to include the \u201cResult\u201d and the \u201cRunID\u201d in your C code as comments.<br \/>\nThe OJ provides a RunID. RunIDs are not problem IDs.<br \/>\n! Example: the problem is 10xx. The solution has been accepted by the OJ,<br \/>\nand the runID is 2033. You add to your code: \/* 2033 Accepted *\/<br \/>\n! Result is one of the following: Accepted, Wrong Answer, Presentation Error,<br \/>\nTime Limit Exceeded, Memory Limit Exceeded, Output Limit Exceeded,<br \/>\nRun time Error, Compile Error<\/li>\n<li>Submit this zip file using the departmental submission system at<br \/>\nhttps:\/\/www.csc.liv.ac.uk\/cgi-bin\/submit.pl<\/li>\n<\/ul>\n<p><strong>Only the file submitted through this link will be marked<\/strong><\/p>\n<p>\u2022 The deadline for this assignment 20\/02\/2015, 5:00pm<br \/>\n\u2022 Penalties for late submission apply in accordance with departmental policy as<br \/>\nset out in the student handbook, which can be found at:<br \/>\nhttps:\/\/www.csc.liv.ac.uk\/student\/ugpdfhandbook.pdf<br \/>\nProblem 1014<br \/>\n<strong>Title<\/strong>: Area and circumference of circles<\/p>\n<p><strong>Description:<\/strong><br \/>\nIn this exercise you have to compute the area and circumference of a series of circles and output their sum.<br \/>\nSpecifically, the program will take two radii of two circles as input (r1 &lt;= r2, both integers) and will output the sum of<br \/>\nthe areas and the circumferences of all circles starting with r1 and increasing at each step the radius by &#8216;1&#8217; until radius<br \/>\nr2 has been reached. As an example, suppose &#8216;r2-r1 = 2&#8217; then the program has to compute the sum of the areas and<br \/>\ncircumferences of three circles with radii r1,r1+1,r2<br \/>\nRemember that the area of a circle equals Pi*r^2 and the circumference equals 2Pi*r.<br \/>\nSet Pi to 3.14<br \/>\n<strong>Input:<\/strong><br \/>\nTwo<br \/>\nintegers<br \/>\nr1<br \/>\nand<br \/>\nr2<br \/>\nwith<br \/>\nr1&lt;=r2<br \/>\n<strong>Output<\/strong>:<br \/>\ntwo floats, sum_of_areas and sum_of_circumferences.<br \/>\n<strong>Sample Input:<\/strong><br \/>\n3 4<br \/>\n<strong>Sample Output<\/strong>:<br \/>\n78.500000<br \/>\n43.959999<br \/>\nProblem 1017<br \/>\n<strong>Title:<\/strong> Product of integers in columns<br \/>\n<strong>Description:<\/strong><br \/>\nIn this exercise you have to write a program that can compute the product of the numbers (integers in this case) in a<br \/>\nseries of columns.<br \/>\n<strong>Input:<\/strong><br \/>\nThe first number of the input, N, describes the number of columns that will follow, then N columns follow. The first<br \/>\nrow will contain the first integer of each column. This number M will indicate how many numbers will follow in the<br \/>\nrespective column. Note that this means that not each column needs to be of the same length.<br \/>\n<strong>Output:<\/strong><br \/>\nN numbers that represent the product of each column.<br \/>\n<strong>Sample Input:<\/strong><br \/>\n4<br \/>\n3 2 3 4<br \/>\n1 1 1 2<br \/>\n2 3 2 2<br \/>\n3 4 3<br \/>\n2<br \/>\n<strong>Sample Output:<\/strong><br \/>\n6 3 8 24<br \/>\nProblem 1025<br \/>\n<strong>Title:<\/strong> Largest common factor and smallest common multiple<br \/>\n<strong>Description<\/strong>:<br \/>\nInput two positive integers. Compute their largest common factor and smallest common multiple.<br \/>\n<strong>Input:<\/strong><br \/>\nInput two positive integers.<br \/>\n<strong>Output:<\/strong><br \/>\nlargest common factor and smallest common multiple.<br \/>\n<strong>Sample Input:<\/strong><br \/>\n2 3<br \/>\n<strong>Sample Output:<\/strong><br \/>\n1 6<br \/>\nProblem 1060<br \/>\n<strong>Title:<\/strong> Sort even integers<br \/>\n<strong>Description:<\/strong><br \/>\nFrom the input of 10 numbers, sort only the even integers into ascending order.<br \/>\nPrint the list with all odd numbers (including 0) in their corresponding place in the input and the even numbers sorted<br \/>\ninto ascending order.<br \/>\n<strong>Input:<\/strong><br \/>\n10 integers separated by spaces. (All integers are at most 32 bits)<br \/>\n<strong>Output:<\/strong><br \/>\nAn evenly sorted list (even numbers in ascending order, odd numbers unchanged)<br \/>\n<strong>Sample Input:<\/strong><br \/>\n5 3 4 2 1 6 8 7 10 9<br \/>\n<strong>Sample Output:<\/strong><br \/>\n1 3 2 4 5 6 8 7 10 9<br \/>\n<strong>Sample Input 2:<\/strong><br \/>\n11 16 14 12 10 8 6 4 2 1<br \/>\n<strong>Sample Output 2:<\/strong><br \/>\n11 2 4 6 8 10 12 14 16 1<br \/>\nProblem 1030<br \/>\n<strong>Title:<\/strong> Precise Division<br \/>\n<strong>Description:<\/strong><br \/>\n8\/13=0.615384615384615384615384&#8230;<br \/>\nFor 8\/13, the 5-th digit after the decimal point is 8.<br \/>\nGiven three positive integers a, b, and n (all at most 60000), you are asked to compute a\/b and print out the n-th digit<br \/>\nafter the decimal point.<br \/>\n<strong>Input:<\/strong><br \/>\na b n (three positive integers)<br \/>\n<strong>Output:<\/strong><br \/>\nThe n-th digit after the decimal point of a\/b<br \/>\n<strong>Sample Input:<\/strong><br \/>\n8 13 5<br \/>\n<strong>Sample Output:<\/strong><br \/>\n8<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><strong>To get answer chat with online assignment adviser<\/strong><\/p>\n<p style=\"text-align: center;\"><a title=\"Order Now\" href=\"https:\/\/casestudyhelp.com\/MyOrder.php\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2455\" src=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2016\/04\/Oerder-Now.png\" alt=\"Order Now\" width=\"840\" height=\"120\" srcset=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2016\/04\/Oerder-Now.png 840w, https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2016\/04\/Oerder-Now-300x43.png 300w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><\/a><\/p>\n<script type=\"text\/javascript\" charset=\"utf-8\" src=\"http:\/\/w.sharethis.com\/widget\/?wp=6.2.9\"><\/script>","protected":false},"excerpt":{"rendered":"<p>COMP281 Assignment 1 \u2013 C Programming The following 5 problems will be available as Assignment 1 on the online judging system available at https:\/\/intranet.csc.liv.ac.uk\/JudgeOnline\/ You need to write a valid C program that solves each of these problems \u2013 it must read the input, as specified in the problem description then print the solution to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[116],"tags":[6,135,137,136,5,13,8],"_links":{"self":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/267"}],"collection":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/comments?post=267"}],"version-history":[{"count":3,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/267\/revisions"}],"predecessor-version":[{"id":2882,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/267\/revisions\/2882"}],"wp:attachment":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/media?parent=267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/categories?post=267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/tags?post=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}