Turn on thread page Beta
    • Thread Starter
    Offline

    3
    ReputationRep:
    Does any one has solution for cambridge Computer science pre release in pseudocode may 2018 ?
    Exam code : 0478
    Offline

    3
    ReputationRep:
    Hi mohamed205200 have you find it yet? I am also looking for it and cant find it. Thank you
    Offline

    3
    ReputationRep:
    Pre-Release pseudocode Task 1TASK 1components(1:6) As String  {“Processor”, “RAM”, “Storage”, “Screen”, “Case”, “USB ports”}choices(1:13) As String  {“P3”, “P5”, “P7”…}prices(1:13) As Real  {“100”, “120”, 200”…}estimateNumber  1totalCost  0compNo  1LocOfcompChosen(1:6) As Integer PRINT (“Please choose a processor: P3, P5, P7”)curChoice  USERINPUTLocOfcompChosen(compNo)  indexOf curChoice in choicescompNo  compNo 1For x  4 to 13 Step 2PRINT (components(compNo))PRINT (choices(x), choices(x 1))curChoice  USERINPUTLocOfcompChosen(compNo)  indexOf curChoice in choicescompNo  compNo 1NEXTPRINT (“Estimate Number (1)” estimateNumber)For y  1 to 6 step 1PRINT(components(y))PRINT(choic es(LocOfcompChosen(y))PRINT(pric es(LocOfcompChosen(y))totalCost  totalCost prices(LocOfcompChosen(y)NEXTtot alCost  totalCost * 1.2PRINT(“Total cost of computer = {1}”, totalCost)estimateNumber  estimateNumber 1
    Offline

    0
    ReputationRep:
    (Original post by josh.lawrxnce)
    Pre-Release pseudocode Task 1TASK 1components(1:6) As String  {“Processor”, “RAM”, “Storage”, “Screen”, “Case”, “USB ports”}choices(1:13) As String  {“P3”, “P5”, “P7”…}prices(1:13) As Real  {“100”, “120”, 200”…}estimateNumber  1totalCost  0compNo  1LocOfcompChosen(1:6) As Integer PRINT (“Please choose a processor: P3, P5, P7”)curChoice  USERINPUTLocOfcompChosen(compNo)  indexOf curChoice in choicescompNo  compNo 1For x  4 to 13 Step 2PRINT (components(compNo))PRINT (choices(x), choices(x 1))curChoice  USERINPUTLocOfcompChosen(compNo)  indexOf curChoice in choicescompNo  compNo 1NEXTPRINT (“Estimate Number (1)” estimateNumber)For y  1 to 6 step 1PRINT(components(y))PRINT(choic es(LocOfcompChosen(y))PRINT(pric es(LocOfcompChosen(y))totalCost  totalCost prices(LocOfcompChosen(y)NEXTtot alCost  totalCost * 1.2PRINT(“Total cost of computer = {1}”, totalCost)estimateNumber  estimateNumber 1
    Do you have the solutions for task 2 or 3? Thanks
 
 
 
Reply
Submit reply
Turn on thread page Beta
Updated: April 29, 2018

3,361

students online now

800,000+

Exam discussions

Find your exam discussion here

Poll
Should predicted grades be removed from the uni application process

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.