You are Here: Home >< GCSEs

# IGCSE Computer Science May/June Pre Release 2018 watch

1. Can anyone help with TASK 3 of IGCSE Computer Science May/June Pre Release 2018?
2. Can you send me an image of the pre release material?
3. TASK 3Int hi_yield,hi_id, daily_sumHi_yield=0 Int Less12[cow_herd ] For (day =1 to 7) Output ” Enter milk quantity for the day” For(a=1 to cow_herd) Output ” Enter milk quantity for the morning” Input morning Output ” Enter milk quantity for the evening” Input evening Daily_sum= morning evening Cow_yield[a]= morning evening Cow_yield[a] If daily_sum<12.0 Then Less12[a]= Less12[a] 1Next aNext day For(c=1 to cow_herd) If cow_yield[c] > hi_yield Then Hi_yield = cow_yield [c] Hi_id = cow_number[c] EndifNext cFor (c=1 to cow_herd) If less[c]> = 4 ThenPrint “ the cow id “, cow_num[c],”has produced less than 12 litres in a week.” EndifNext c
4. (Original post by shrutinaik)
Can anyone help with TASK 3 of IGCSE Computer Science May/June Pre Release 2018?
Int hi_yield,hi_id, daily_sum
Hi_yield=0
Int Less12[cow_herd ]
For (day =1 to 7)
Output ” Enter milk quantity for the day”
For(a=1 to cow_herd)
Output ” Enter milk quantity for the morning”
Input morning
Output ” Enter milk quantity for the evening”
Input evening
Daily_sum= morning+ evening
Cow_yield[a]= morning+ evening+ Cow_yield[a]

If daily_sum<12.0
Then Less12[a]= Less12[a]+1
Next a
Next day
For(c=1 to cow_herd)
If cow_yield[c] > hi_yield
Then
Hi_yield = cow_yield [c]
Hi_id = cow_number[c]
Endif
Next c
For (c=1 to cow_herd)
If less[c]> = 4
Then
Print “ the cow id “, cow_num[c],”has produced less than 12 litres in a week.”
Endif
Next c
5. <font face=arial><h2>TASK 1 - Record the yield.</h2>Write 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. <hr><h2>TASK 2 - Calculate the statistics. </h2>Using 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.<hr><h2>TASK 3 - Identify the most productive cow and cows that are producing a low volume of milk.</h2>Extend 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.<hr><script language = javascript>cows = parseInt(prompt(

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: April 27, 2018
The home of Results and Clearing

### 1,904

people online now

### 1,567,000

students helped last year
Today on TSR

### University open days

1. SAE Institute
Animation, Audio, Film, Games, Music, Business, Web Further education
Thu, 16 Aug '18
2. Bournemouth University
Fri, 17 Aug '18
3. University of Bolton
Fri, 17 Aug '18
Poll
Useful resources

## Study tools

### Essay expert

Learn to write like a pro with our ultimate essay guide.

See where you can apply with our uni match tool

### Make study resources

Create all the resources you need to get the grades.

### Create your own Study Plan

Organise all your homework and exams so you never miss another deadline.

### Resources by subject

From flashcards to mind maps; there's everything you need for all of your GCSE subjects.

### Find past papers

100s of GCSE past papers for all your subjects at your fingertips.