[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-642349-105":59,"doc-detail-642349-en":134},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":127,"head_meta":129,"extra_data":131,"updated_unix":133},105,"en","computer-science-221022-paper-2-problem-solving-and-programming-modified-language","COMPUTER SCIENCE 2210/22 - Paper 2 Problem-solving and Programming - Modified Language","","Cambridge International Examinations provides the 2018 Ordinary Level Computer Science 2210/22 Paper 2 exam on problem-solving and programming, with a Modified Language format. It sets examination instructions: answer all questions, write centre and candidate details, use appropriate pens, no calculators, no correction fluid or fasteners, and do not write barcodes. Section A uses pre-release data about recording cow milk yield to build and test programs covering data entry, calculation of total and average weekly yields, and identification of the top cow and cows under 12 litres on four or more days.",{"@graph":69,"@context":126},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":20,"@type":76,"position":81},"https://docshare.wps.com/document/exam/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/computer-science-221022-paper-2-problem-solving-and-programming-modified-language/642349/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/computer-science-221022-paper-2-problem-solving-and-programming-modified-language/642349.png","ImageObject",300,407,{"name":92,"@type":93},"Hazel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-30","2026-10-23",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118,122],{"name":109,"@type":110,"acceptedAnswer":111},"What is the overall programming scenario in the pre-release material?","Question",{"text":112,"@type":113},"A farmer records weekly milk production for a fixed herd of cows, using a unique 3-digit identity code and litres yield recorded each time the cows are milked.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What must Task 1 do?",{"text":117,"@type":113},"Task 1 records and stores each cow’s identity code and yield for every milking during the week, including prompts for data entry.",{"name":119,"@type":110,"acceptedAnswer":120},"How should Task 2 results be calculated and displayed?",{"text":121,"@type":113},"Task 2 calculates and displays the total weekly volume of milk for the herd (nearest whole litre) and the average yield per cow in a week (nearest whole litre).",{"name":123,"@type":110,"acceptedAnswer":124},"How does Task 3 identify cows to be reported?",{"text":125,"@type":113},"Task 3 identifies the cow with the most milk that week and lists any cows whose yield is under 12 litres on four or more days during the week.","https://schema.org",{"og:url":83,"og:type":128,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":130,"canonical":83},"index,follow",{"doc_id":132,"site_id":62},642349,1792878526,{"code":4,"msg":5,"data":135},{"doc_id":132,"user_id":136,"nickname":92,"user_avatar":137,"doc_module":4,"category_id":19,"category_name":20,"doc_title":65,"doc_description":67,"doc_content":138,"file_id":139,"file_url":140,"file_type":141,"file_size":142,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":143,"language":144,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":145,"faqs":146,"seo_title":147,"seo_description":67,"update_tm":148,"read_time":41},137441390410,"https://ap-avatar.wpscdn.com/avatar/2000252f4ab5702993?_k=1776741390130283984","Cambridge International Examinations  \nCambridge Ordinary Level  \nCOMPUTER SCIENCE 2210/22  \nPaper 2 Problem-solving and Programming May/June 2018  \n1 hour 45 minutes  \nCandidates answer on the Question Paper.  \nNo Additional Materials are required.  \nNo calculators allowed.  \nMODIFIED LANGUAGE  \nREAD THESE INSTRUCTIONS FIRST  \nWrite your Centre number, candidate number and name in the spaces at the top of this page. Write in dark blue or black pen.  \nYou may use an HB pencil for any diagrams, graphs or rough working.  \nDo not use staples, paper clips, glue or correction fluid.  \nDO NOT WRITE IN ANY BARCODES.  \nAnswer all questions.  \nDO NOT ATTEMPT TASKS 1, 2 AND 3 in the pre-release material; these are for information only. You are advised to spend no more than 40 minutes on Section A (Question 1) .  \nNo marks will be awarded for using brand names of software packages or hardware. At the end of the examination, fasten all your work securely together.  \nThe number of marks is given in brackets [ ] at the end of each question or part question.  \nThe maximum number of marks is 50.  \nThis document consists of 11 printed pages and 1 blank page.  \nDC (RW) 170250/1 © UCLES 2018  \n[Turn over  \n2  \nSection A  \nYou are advised to spend no longer than 40 minutes answering this section.  \nHere is a copy of the pre-release material.  \nDO NOT attempt Tasks 1, 2 and 3 now.  \nUse the pre-release material and your experience from attempting the tasks before the examination to answer Question 1.  \nPre-release material  \nA farmer records the milk production of a herd of cows. Every cow has a unique 3-digit identity code. Each cow can be milked twice a day, seven days a week. The volume of milk from each cow is recorded in litres correct to one decimal place (yield) every time the cow is milked. The size of the herd is fixed. At the end of the week the total and the average yield for each cow for that week is calculated.  \nThe farmer identifies the cow that has produced the most milk that week. The farmer also identifies any cows that have produced less than 12 litres of milk on four or more days that week.  \nA program is required to record the yield for each cow every time it is milked, calculate the total weekly volume of milk for the herd and the average yield per cow in a week. The program must also identify the cow with the best yield that week and identify any cows with a yield of less than 12 litres of milk for four or more days that week.  \nWrite and test a program or programs for the farmer.  \n• Your program or programs must include appropriate prompts for the entry of data.  \n• Error messages and other output need to be set out clearly and understandably.  \n• All variables, constants and other identifiers must have meaningful names.  \nYou will need to complete these three tasks. Each task must be fully tested.  \nTASK 1 – Record the yield.  \nWrite a program for TASK 1 to record the milk yields for a week. The program records and stores the identity code number and the yield every time a cow is milked.  \nTASK 2 – Calculate the statistics.  \nUsing your recorded data from TASK 1, calculate and display the total weekly volume of milk for the herd to the nearest whole litre. Calculate and display the average yield per cow in a week to the nearest whole litre.  \nTASK 3 – Identify the most productive cow and cows that are producing a low volume of milk.  \nExtend TASK 2 to identify and display the identity code number and weekly yield of the cow that has produced the most milk. Also identify and display the identity code numbers of any cows with a yield of less than 12 litres of milk for four days or more in the week.  \n© UCLES 2018 2210/22/M/J/18  \n3  \n1 (a) All variables, constants and other identifiers should have meaningful names.  \n(i) State the name, the data type and the use of two variables that you have used in Task 2.  \nVariable 1 name ...................................................................................................","cbCaieDbUqH3gLSl","https://ap.wps.com/l/cbCaieDbUqH3gLSl","pdf",2096819,12,"English","# Section A\n## Pre-release material and tasks\n## Task 1 – Record the yield\n## Task 2 – Calculate the statistics\n## Task 3 – Identify top and low-yield cows\n## 1(a) Variables and data types\n## 1(b) Data structures used in Task 1","[{\"question\":\"What is the overall programming scenario in the pre-release material?\",\"answer\":\"A farmer records weekly milk production for a fixed herd of cows, using a unique 3-digit identity code and litres yield recorded each time the cows are milked.\"},{\"question\":\"What must Task 1 do?\",\"answer\":\"Task 1 records and stores each cow’s identity code and yield for every milking during the week, including prompts for data entry.\"},{\"question\":\"How should Task 2 results be calculated and displayed?\",\"answer\":\"Task 2 calculates and displays the total weekly volume of milk for the herd (nearest whole litre) and the average yield per cow in a week (nearest whole litre).\"},{\"question\":\"How does Task 3 identify cows to be reported?\",\"answer\":\"Task 3 identifies the cow with the most milk that week and lists any cows whose yield is under 12 litres on four or more days during the week.\"}]","COMPUTER SCIENCE 2210/22 - Paper 2 Problem-solving and Programming - Modified Language | PDF",1792721912]