Home » Team Skywalker Workshops » Thinking Like A Programmer: Workshop 4

Thinking Like A Programmer: Workshop 4

The fourth workshop for Thinking Like A Programmer is now available. Do be sure to do the earlier workshops first, however – at least make sure you have bronze medals on these before attempting this one.

Follow this link to log in and do the workshop.


1 Comment

  1. Habib Ali says:

    under the shopping list challenge for the silver medal I keep getting the error message “Your program still seems to be stopping at 0…!” when attempting for the silver medal

    However when I run my code it works as required producing the correct outcome.
    here is my code:

    display “enter price of item”
    get price
    repeat
    display “price of item”
    display price
    get newprice
    set price = newprice + price
    until newprice == -1
    if (newprice == -1)
    set price = price + 1
    display price
    endif

    I am not entirely sure how to avoid adding the -1 at the end which I believe is the reason for the error. I’ve been stuck on this for a while and really need some help. Thanks.

Leave a comment

Your email address will not be published. Required fields are marked *