Turn on thread page Beta

IGCSE Computer Science May/June Pre Release 2018 watch

    • Thread Starter
    Offline

    3
    ReputationRep:
    Can anyone help with TASK 3 of IGCSE Computer Science May/June Pre Release 2018?
    Offline

    3
    ReputationRep:
    Can you send me an image of the pre release material?
    Offline

    1
    ReputationRep:
    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
    Offline

    1
    ReputationRep:
    (Original post by shrutinaik)
    Can anyone help with TASK 3 of IGCSE Computer Science May/June Pre Release 2018?
    TASK 3
    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
    Offline

    1
    ReputationRep:
    <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(
 
 
 
The home of Results and Clearing

1,904

people online now

1,567,000

students helped last year

University open days

  1. SAE Institute
    Animation, Audio, Film, Games, Music, Business, Web Further education
    Thu, 16 Aug '18
  2. Bournemouth University
    Clearing Open Day Undergraduate
    Fri, 17 Aug '18
  3. University of Bolton
    Undergraduate Open Day Undergraduate
    Fri, 17 Aug '18
Poll
Do you want your parents to be with you when you collect your A-level results?
Useful resources

Study tools

Rosette

Essay expert

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

Thinking about uni already?

Thinking about uni already?

See where you can apply with our uni match tool

Student chat

Ask a question

Chat to other GCSE students and get your study questions answered.

Creating

Make study resources

Create all the resources you need to get the grades.

Planner

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.

Papers

Find past papers

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

Help out other students

Can you help? Study help unanswered threads

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

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.