You are Here: Home

# MJ 2018 prerelease material?? watch

1. Has any one got the IGCSE computer science Prerelease for the next may exam?
2. I've moved this to the Computer Science forum for you - hopefully someone here will be able to help
3. (Original post by Fox Corner)
I've moved this to the Computer Science forum for you - hopefully someone here will be able to help
Thanks! that Im sure that would help, this is my first question here.
4. (Original post by Xx_hamza2121)
Has any one got the IGCSE computer science Prerelease for the next may exam?
Is it this one?
A farmer records the milk production of a herb 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. The 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. A 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. Write and test a program or programs for the farmer • Your program or programs must include appropriate prompts for the entry of data • Error messages and other output need to be set out clearly and understandably • All variables, constants and other identifiers must have meaningful names You will need to complete these three tasks. Each task must be fully tested. TASK 1 - Record the yield 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. TASK 2 - Calculate the statistics 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. TASK 3 - Identify the most productive cow and cows that are producing a low volume of milk 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.

### Related university courses

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: February 22, 2018
Today on TSR

### He lied about his age

Thought he was 19... really he's 14

### University open days

Wed, 25 Jul '18
2. University of Buckingham
Wed, 25 Jul '18
3. Bournemouth University
Wed, 1 Aug '18
Poll
Useful resources

Can you help? Study Help unanswered threadsStudy Help rules and posting guidelines

## Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE