How Do I Write Pseudocode?

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 334

  • @MrBrownCS
    @MrBrownCS  5 років тому +311

    These videos always get long (sorry), so here are the key timestamps:
    -Intro 0:00
    -What is pseudocode? 1:32
    -Exam board pseudocode 4:00
    -Real life examples 6:40
    -Going through a practise question 10:57
    -Final tips 23:19

  • @renaiya1666
    @renaiya1666 5 років тому +328

    The hero we need, but don't deserve. Great and informative video.

  • @tc-jh2hf
    @tc-jh2hf 5 років тому +86

    THANKS MY EXAM IS IN 3 HOURS AND THIS SAVED ME

  • @AnonymousAnonymous-pp5of
    @AnonymousAnonymous-pp5of 5 років тому +122

    I only found out your UA-cam channel two days ago and I have watched the wjec playlist and you're a hero. I have learnt so much from you than from my teacher over the year. I think computer science is a subject many teachers struggle to teach. Only two days till my exam and I wish I knew about this channel before. I will most definitely try harder next year and watch all these videos.

    • @EvoDreams8
      @EvoDreams8 4 роки тому +4

      I struggle from the same situation my teacher is a mother fucking idiot that i just realized now hasnt taught me and my class half the book:(

    • @overdosingontomatoes8619
      @overdosingontomatoes8619 4 роки тому

      @@EvoDreams8 relatable

    • @29DPT
      @29DPT 2 роки тому +1

      Same here

    • @mistwolf360
      @mistwolf360 Рік тому +1

      Same here…..

    • @550w5
      @550w5 Рік тому

      Same here

  • @microsoftcraint
    @microsoftcraint 4 роки тому +55

    casually sat in a lesson rn having no idea what’s happening

  • @animosityplays
    @animosityplays 4 роки тому +275

    yo to the 2020 last minute students

    • @queentwixbard5429
      @queentwixbard5429 4 роки тому +8

      hello freaking out

    • @force879
      @force879 3 роки тому +19

      hello my teacher doesnt make any sense :')

    • @linostoe
      @linostoe 3 роки тому +3

      @@queentwixbard5429 lollll replaying the past? ;)

    • @linostoe
      @linostoe 3 роки тому +1

      @@force879 lmaooo

    • @force879
      @force879 3 роки тому +1

      @@linostoe bruh why u ruinin it mate keep the thing going

  • @madpilota737max7
    @madpilota737max7 Рік тому +3

    Thanks a lot sir. i left programming 3 years ago. but was reappearing for my A levels. really helpful i refreshed all my memories by this video and am confident for tommorow

  • @underscore2708
    @underscore2708 Рік тому +7

    thank you for making this easy to understand! Was having a hard time understanding how to use pseudocode and i feel a lot more prepared for my gcse now - just got to do a lot of practice :)

  • @shraze_yt8664
    @shraze_yt8664 5 років тому +331

    yo to the 2019 last minute students

    • @kayfactor6663
      @kayfactor6663 5 років тому +12

      hello freaking out

    • @IamINERT
      @IamINERT 5 років тому +6

      Param Playz 2 hours until my finals 🙋

    • @Name-fk8zk
      @Name-fk8zk 5 років тому +2

      🙋🏼‍♀️🙋🏼‍♀️🙋🏼‍♀️ good luck guys

    • @issavill111
      @issavill111 5 років тому +11

      hello my teacher doesnt make any sense :')

    • @warenar2039
      @warenar2039 5 років тому +1

      Yo😂🖕

  • @hatimmustafa3101
    @hatimmustafa3101 7 місяців тому

    The thing I couldn’t understand in 3 years, you made me understand it in 27 mins wow, legend

  • @wanekaxa1483
    @wanekaxa1483 2 роки тому +11

    I'm here from ALX-SE cohort 11.
    Totally enjoyed your video!

  • @davidbachy5627
    @davidbachy5627 Рік тому +1

    I'm glad to hear that I'm not the only one who forgets and has to look everything up when I get rusty...

  • @codyheron7874
    @codyheron7874 5 років тому +16

    Good video, got recommend from Mr Samules from kc. The hero we needed in the end.

    • @mtom9123
      @mtom9123 5 років тому

      What a legend

  • @HalalWB
    @HalalWB 5 років тому +25

    Got my first computing exam in 2 days and I know next-to-nothing of the spec so this helped a lot as I need (minimum) all 7s in the 11 GCSEs im doing and my dad will buy me a Tag, so before I found your channel it looked as if I would get a level 3 like I did in the mock... thank you so much

    • @ketchurself7979
      @ketchurself7979 5 років тому +2

      Hope you get that rolex.

    • @ketchurself7979
      @ketchurself7979 5 років тому +1

      @@HalalWB im doing paper 1 revision right now, you still have the time to get a high grade

    • @HalalWB
      @HalalWB 5 років тому +1

      Ketch Urself I’ve pretty much finished revising paper 1 now because I’ve got re to do tomorrow too so I need to revise that... but it’s pretty much just truth tables, psuedocode and algorithms and stuff it’s kinda easy now I know what it is

    • @ketchurself7979
      @ketchurself7979 5 років тому +2

      @@HalalWB im just gonna do RE tonight, i just make up quotes, but i make it seem legit. You just have to learn what to write to get the marks in each question.

    • @HalalWB
      @HalalWB 5 років тому +1

      Ketch Urself I’m just really bad at both, computing and RE are my worst subjects so it would’ve probably been smart to revise them the most but oh well too late now, GL for tomorrow anyway

  • @samirgunic
    @samirgunic 5 років тому +19

    Well explained! I use pretty much the same style, i.e. I capitalize keywords, I use the equals sign for assignment and I mark off the end of a block. I find pseudocode more useful than flowcharts. One reason for that is that it's closer to real code and easier to make than making flowcharts. You would obviously not "draw" a flowchart with the keyboard, you would need a drawing or diagramming tool and rely on using the mouse or another pointing device for that, or use a pen and paper if you're doing an exam and using a computer is off limits. It's also natural to go from a text description of a problem, and break it down to pseudocode. I find that it's often the only way to understand the problem, because the problem description is not always well written. That's usually because the author himself doesn't always know exactly what he wants a programmer to do, as he does not understand the problem well enough. I'm not referring to any particular standardized test here. I'm talking about using pseudocode as a tool for understanding a problem and translating that into real code, in a wider context, in real life. Flowcharts are great to use as a template if someone else has made them for you and they are well structured and make sense. But having to draw your own to solve a problem using code is a big waste of time, I would rather make pseudocode than flowcharts.

  • @faizandk6358
    @faizandk6358 2 роки тому +3

    one of the best explanations of Pseudocode out there!!
    keep it up!

  • @anenfairy4996
    @anenfairy4996 4 роки тому +2

    thanks for posting this. I dont understand why we need to learn it at all. I've absolutely never had the need to use it.

    • @jaytaub5313
      @jaytaub5313 3 роки тому

      Same

    • @jaytaub5313
      @jaytaub5313 3 роки тому +1

      Teacher wants this bs lol

    • @jonanddy
      @jonanddy Рік тому

      It’s supposed to be used as a way to make reading your code easier for other people working on the same project or just reading it in general

  • @Miranda-du9mh
    @Miranda-du9mh 3 роки тому +9

    yo to the 2021 last minute students (you got this)

  • @guy136
    @guy136 2 роки тому +2

    thanks so much! My first class was for pseudocode and it confused me a lot and just needed clarification. My class needed pseudocode and a flowchart so i got confused on what i was even doing but i got it now.

  • @Reddington744
    @Reddington744 8 місяців тому +1

    Just understood everything made it really easier. Thank you so much!

  • @maryamadenikesalaudeen1651
    @maryamadenikesalaudeen1651 Рік тому +2

    Thanks for simplifying this hard stuff for me. It's a great foundation for me!

  • @ytasd4467
    @ytasd4467 4 роки тому +8

    Thanks a lot for this video. I realised pseudocode isn't as daunting as it seemed.

  • @tarekhasabelnaby5881
    @tarekhasabelnaby5881 4 роки тому +1

    Can you help to solve this question:
    - Scope
    Using pseudocode to solve a prblem, let’s identify and fix any bugs (issue with functionality, typo, something broken) to return the intended functionality of the program. See the example below to get an understanding of how one might complete this.
    - Problem
    The intended functionality of the program below is to take a list of more than 1000 numbers (not in sequence) and determine the biggest number in the list. Identify any error(s) within this pseudocode solution and provide an explanation on why you identified this as a potential problem.
    Let maxNumber represent the biggest number, set it to zero to start
    While there are still numbers left in the list
    Look at the next number in the list
    Compare it to the maxNumber
    If next number is smaller than maxNumber
    Set maxNumber to that number
    Report maxNumber as the biggest in the list

  • @tamarynnell2285
    @tamarynnell2285 3 роки тому +2

    Thank you so much! My lecturer is confusing and this helped me a bunch!

  • @sviitor
    @sviitor 5 років тому +21

    Would you understand if the pseudocode was written like this:
    BEGIN
    NUMBER kilometers, fuel
    {
    OUTPUT {"How many kilometers will the journey be?"}
    INPUT {kilometers}
    IF (kilometers

  • @grace-cu6lt
    @grace-cu6lt 6 місяців тому +28

    hey 2024 students whos teachers failed them

  • @qui3tstorm793
    @qui3tstorm793 5 років тому +12

    What I hate about pseudocode is there is not standard so it's very hard to practice yourself better.

    • @MrBrownCS
      @MrBrownCS  5 років тому +8

      Personally I think it's better for students that there is no standard, as you can make mistakes without consequence!

    • @jacobplayswell2086
      @jacobplayswell2086 4 роки тому +1

      Psuedocode is just changing a code specific word to a more general term. Seems pointless

    • @qui3tstorm793
      @qui3tstorm793 4 роки тому

      @@MrBrownCS Perhaps you're right.

    • @bayhonjr.joemarie5632
      @bayhonjr.joemarie5632 4 роки тому

      @@qui3tstorm793 wow u did replied 1 year ago

    • @michaeljeffery7466
      @michaeljeffery7466 2 роки тому

      @@MrBrownCS I don't like using this & it seems like an extra & unnecessary step between learning whatever language.

  • @lifewithkingsley6698
    @lifewithkingsley6698 Рік тому

    Hello, Kingsley Mensah here, from ALX. Thank you.

  • @Madleejnr
    @Madleejnr Рік тому

    great content, I was cracking about this pseudo code but now have a better understanding

  • @caidora2283
    @caidora2283 5 років тому +7

    Good vid., watching from kc reccomended by the man himself Mr Samuel.

  • @thejokercrypto8903
    @thejokercrypto8903 3 роки тому +4

    I'm confused for at 22:09, for the left side which I am guessing it is C++. Why is the the if statement kilometres < 0? Should it not be kilometres > 0 since it ask to continue only if kilometres is greater than 0?

  • @Cyrus_FG
    @Cyrus_FG 5 років тому +18

    Hey, I’ve been going through my Computer science revision guide and found that my teacher hasn’t taught the class over half of what is in the revision guide, how can I learn all of it?

  • @ethanchetty9222
    @ethanchetty9222 6 місяців тому

    thanks for this, you explained everything in a way that was simple to understand.

  • @ACJax
    @ACJax 3 роки тому

    thanks m8 u just saved me a year of my life cos now i dont have to re-take the year

  • @sonan5266
    @sonan5266 2 роки тому +2

    Thanks you for making these videos, they are really helpful

  • @Trepril
    @Trepril 5 років тому +5

    Anyone that done OCR Paper 1 reply because question 1 was so easy it was what does cpu stand for Central Processing Unit

    • @kabbaj672
      @kabbaj672 5 років тому +1

      My ig is in 5 days and I don’t know how to code

    • @AnyShine66
      @AnyShine66 5 років тому

      @Morgan Smith 😭😭😂

    • @AnyShine66
      @AnyShine66 5 років тому

      The coding question thrw me well off, safe to safe that's 5 marks I know I didn't get 😬

    • @Trepril
      @Trepril 5 років тому

      Any Shine I got half of it line 12 was print(message) and it was 25-26

    • @Trepril
      @Trepril 5 років тому

      Morgan Smith 😂 also I talked about dns with ulr and ip as the domain name translates url into its up adress

  • @Samimakesmusiccc
    @Samimakesmusiccc 7 місяців тому +6

    Yo to the 2024 last minute students.

  • @Zainab-cg3yj
    @Zainab-cg3yj 5 років тому +4

    Thank you so much I really needed this

  • @maanyepatel7787
    @maanyepatel7787 21 день тому +1

    Us new syllabus students are crying the corner

  • @ohheho3895
    @ohheho3895 5 років тому +6

    THANK YOU I REALLY LOVE YOU!

  • @amshu9761
    @amshu9761 5 років тому +4

    Thanks bro, helped with my gcse mock revision

    • @jamesturnbull3801
      @jamesturnbull3801 5 років тому

      Indian same here

    • @amshu9761
      @amshu9761 5 років тому +2

      @@jamesturnbull3801 you regret taking computing as well?😂

    • @vane3330
      @vane3330 4 роки тому

      Indian I regret it so much😭

  • @expmistake5956
    @expmistake5956 5 років тому +2

    You are the greatest person,

  • @benardmanuh1407
    @benardmanuh1407 5 років тому

    Questions I have:
    1. Why does the 'amountFuel' variable have to be written at the start of the algorithm? In my opinion the FIRST TIME the 'amountFuel' variable should be written is inside the first IF statement because that's the first time the amount of fuel is going to be calculated, but I could be wrong.
    2. What's the reason for the 'END IF' to be written at the end of the algorithm shouldn't it be written at the end of the first IF statement?

    • @MrBrownCS
      @MrBrownCS  5 років тому +2

      Two good questions:
      1) In this case it doesn't need to be there, but it's good practice to initialise it with a value and putting it at the beginning in the main programming body ensures it has global scope, and so is accessible from everywhere (it would only be accessible from within that IF statement if it was initialised there i.e. has local scope). 2) END IF isn't needed if you are indenting properly, so it's not a big deal. It's just there to make it clear when the construct begins and ends. We have 2 IF constructs, hence we have 2 END IFs but at different places. It's just coincidence that the last END IF is at the end of the algorithm.

  • @nishanthgowda8056
    @nishanthgowda8056 3 роки тому +1

    in java and c++ code the first if condition should be kilometer > 0 right ?

  • @DilnozaUK
    @DilnozaUK Рік тому

    What is the name of this e-book? Could you share with me please? I am new student and do not have many information about IT. And it seems to be difficult

  • @lupamo_Arnold
    @lupamo_Arnold Рік тому +1

    Thank you for providing us with this info. I just have a question about the java and C++ code, I think the if kilometers should be greater than 0. so that the amount of fuel should be multiplied.

  • @lukeufc1
    @lukeufc1 5 років тому +5

    Please do karnaugh maps and laws such as de Morgan’s and d type flip flops

  • @linostoe
    @linostoe 3 роки тому +12

    HEY YOU! YES YOU! WHY THE HELL ARE YOU READING THESE COMMENTS WHILE THE VIDEO IS PLAYING? WATCH THE FREAKING VIDEO, DONT GET DISTRACTED... lmao

    • @Prod_Ethan.
      @Prod_Ethan. 3 роки тому +1

      Lol sorry, ill get back to it

    • @linostoe
      @linostoe 3 роки тому

      @@Prod_Ethan. 😂😂😂

    • @Prod_Ethan.
      @Prod_Ethan. 3 роки тому

      @@linostoe i think i passed bro

    • @linostoe
      @linostoe 3 роки тому

      @@Prod_Ethan. I don't think I did. My gcse's got cancelled and I'm having a hard time tryna balance family weddings and virtual school assessed grades. I dunno why I'm telling u this, but Im stressed man

    • @Prod_Ethan.
      @Prod_Ethan. 3 роки тому

      @@linostoe damn that sucks man, i believe in you dude. It will all be fine 💪

  • @bissessurtushal
    @bissessurtushal 9 місяців тому

    Thank you Sir ❤

  • @AguEvelyn
    @AguEvelyn 2 роки тому +1

    In my system. what software am i to use for pseudocode?

    • @_frothy_8158
      @_frothy_8158 2 роки тому

      You could use notepad++ and use the text only feature i find it as the most easy way to write pseudocode

  • @novalnaqqi3
    @novalnaqqi3 Рік тому

    god deym i tought we can run it but demn, so actually pseudocode for solving a algorithm with computer language but it doesn't even run at computer language, so what pseudocode for? how do we going to understand if it didnt even run,how do we know if it was right or false?

  • @nahidakhtar6719
    @nahidakhtar6719 2 роки тому

    When commanded in paper 2 to write an algorithm "Using high-level programming language" can I use Pseudocode??

  • @TheAvaricious.
    @TheAvaricious. 3 роки тому +1

    My teacher is bat shit insane thank you for this

  • @DilnozaUK
    @DilnozaUK Рік тому

    2023 came here to learn it, many thanks

  • @log2690
    @log2690 5 років тому +3

    Would you be able to show us how to do pseudocode in questions that use internet protocols because personally, I prefer pseudocode so much more than flowcharts but I don't know how to implement it in questions that use internet protocols like sending and receiving packets?.

  • @zaynaameliakhan
    @zaynaameliakhan 4 роки тому +1

    hey can this be used for gcse computing science for ocr?

  • @NO-WAR-WINGS
    @NO-WAR-WINGS 11 місяців тому +1

    How can Pseudo not obey syntax when it's Pseudo ? Then why was it named as such?

    • @uzier2
      @uzier2 10 місяців тому

      shuuuush

    • @tsunamii12ds
      @tsunamii12ds 2 місяці тому

      Cus it’s not real code
      It only represents real code like a plan

    • @NO-WAR-WINGS
      @NO-WAR-WINGS 2 місяці тому

      @@tsunamii12ds you do

    • @tsunamii12ds
      @tsunamii12ds 2 місяці тому

      @@NO-WAR-WINGS there is different versions of pseudo code by different exam boards and schools so I guess ther eis a syntax depending on the source

  • @morrischoga1581
    @morrischoga1581 9 місяців тому

    The real boston is a lifetime hero to many of us!!!!1

  • @kelikeli829
    @kelikeli829 3 роки тому

    Would you answer me please
    Write a pseudocode that shows integer numbers divisible by 3 bereween 1 and 30

  • @itzguech8086
    @itzguech8086 4 роки тому

    could you provide flow chart for the 20:41 question?

  • @TheTucor
    @TheTucor Рік тому

    Thank for the well explanation, Student @ SE ALx

  • @kushia4002
    @kushia4002 4 роки тому +1

    pls can you do a video on file handling?

  • @boynotgenius
    @boynotgenius 5 років тому +1

    Would it be wrong to have a repeat loop after the first If statement? So it repeats until the value is equal or greater than 1500z

    • @kehindefasunle4933
      @kehindefasunle4933 2 роки тому

      I think it is wasteful. Looping generally requires a tight control especially while loops. Just assignment is OK since it is a constant time operation.
      I personally would prefer the first if block to be put before everything. This prevents wasting of computer resources. I mean, there is no point assigning amount-of-fuel variable if the number-of-kilometre is zero(0); just return 0
      That way, the algorithm will be fast and do only important work.

  • @donovanblackwelder4301
    @donovanblackwelder4301 Рік тому

    I've learned more about pseudocode from a 28 minute video that I have in over a year of college. Speaking of which, how would this work for RPG programming?

  • @_VIC_2023
    @_VIC_2023 3 роки тому +2

    Yo to the 2021 last time student 🙏🙂

  • @Mpita_njia
    @Mpita_njia Рік тому

    should it be kilometers>0 in the codes?

  • @MR.X0419
    @MR.X0419 Рік тому

    Soldiers keep up the good work

  • @charithapriyankara4811
    @charithapriyankara4811 3 роки тому

    well explained..thank you.

  • @footballfranatic4521
    @footballfranatic4521 5 років тому +5

    I spent the entirety of my first year of computer science watching football videos instead of listening and going through the work my teacher was giving us. I blame him for putting me in a seat where I could take such a large advantage of the lesson

  • @TitusMbanu
    @TitusMbanu Рік тому +1

    You are a great teacher!

  • @AnwarIbrahim-w2d
    @AnwarIbrahim-w2d 7 місяців тому

    please can you send to us the book that you are teaching from?

  • @peaceegbuna704
    @peaceegbuna704 Рік тому

    I HAVE A QUESTION
    PLS WHAT BEST TEXT EDITOR WOULD U ADVISE ME TO USE IN
    PROGRAMMING

  • @kemon3733
    @kemon3733 Рік тому

    Python is so simple that the first few lines oof the pseudocode would work directly

  • @christopherraris8667
    @christopherraris8667 4 роки тому

    15: 26 video begins!

  • @uniquenai8339
    @uniquenai8339 3 роки тому +2

    HELLOOO to the 2021 last-minute students

  • @thegreenxeno9430
    @thegreenxeno9430 2 роки тому

    Meaningful Variable Names 102 : Declarative Pseudocode

  • @xdct.4790
    @xdct.4790 3 роки тому +1

    Tomorrow is my exam :)

  • @leetax
    @leetax 5 років тому

    What software do you use to write these walkthroughs?

    • @MrBrownCS
      @MrBrownCS  5 років тому

      Usually I use OneNote but in this video I used Microsoft Whiteboard

    • @thevinsilva8190
      @thevinsilva8190 5 років тому

      I believe he used eclipise for java and IntelliJ or maybe Visual studio for C++(not sure about that one)

  • @_mephisto_471
    @_mephisto_471 3 роки тому +1

    Watching from 2021🔥

  • @iam_inijay
    @iam_inijay 2 роки тому

    This is very helpful.

  • @やまぴ-q7c
    @やまぴ-q7c 3 роки тому

    Thanks! Now I know how to code python!

  • @ria8362
    @ria8362 5 років тому

    So say if I write some python, but not proper python, would I still get marks?

  • @najiyachoudhury2197
    @najiyachoudhury2197 5 років тому +1

    Thank for this and I do have my aqa computer science exam which I do need to get a grade 6☺

    • @blyanterpencils3156
      @blyanterpencils3156 5 років тому

      NajRFajMbestfamousfootballersRm is yours tomorrow morning too? Good luck!!

    • @mistiical3033
      @mistiical3033 5 років тому

      NajRFajMbestfamousfootballersRm how was it, the last question about the battleships were so hard!!

    • @Trepril
      @Trepril 5 років тому

      This is for OCR

  • @tomfleming8210
    @tomfleming8210 2 роки тому +2

    Exam boards standardise pseudo code syntax, other than CIE who change the rules every time they write psuedocode 😂

  • @jawadulkarim8877
    @jawadulkarim8877 3 роки тому

    Show more examples of those, from OCR papers

  • @AimenMohsin
    @AimenMohsin 3 роки тому

    i really need help with an assignment which i have to submit today! plz can anyone help x?

  • @carl7915
    @carl7915 3 роки тому +1

    This video is 30 minutes long but my test is in 15 minutes😞

  • @premmanku751
    @premmanku751 5 років тому +1

    Fantastic vid thx....

  • @aaditk6581
    @aaditk6581 5 років тому +1

    Thank you sir

  • @sebastianmccarthy4909
    @sebastianmccarthy4909 2 роки тому

    I didn't know Daniele Radcliffe made coding tutorials.

  • @yellowfire6942
    @yellowfire6942 4 роки тому

    where i can write pseudocode

  • @aspenlog7484
    @aspenlog7484 5 років тому +2

    mr yasin was here

  • @Prod_Ethan.
    @Prod_Ethan. 3 роки тому +1

    Yo to the 2021 Last minute students

  • @abdulakeemismailbabatunde2713

    Can I write a pseudocode using Android phone?

    • @MrBrownCS
      @MrBrownCS  Рік тому

      Yes, you can write pseudocode anywhere and even on paper - remember it's just fake code

  • @mnmlol1314
    @mnmlol1314 4 роки тому

    is this for olevels

  • @charliecruz662
    @charliecruz662 5 років тому +9

    Why am i watching this im in kindergarten

  • @shinthanttun2078
    @shinthanttun2078 4 роки тому

    this video saves me

  • @r_____________________
    @r_____________________ 5 років тому

    Can we just write python? Or will they not accept that?

    • @MrBrownCS
      @MrBrownCS  5 років тому

      Yeah, actual code is fine

    • @r_____________________
      @r_____________________ 5 років тому

      @@MrBrownCS Thanks that saves a lot of hassle

    • @Trepril
      @Trepril 5 років тому

      Computer Science Tutor is 3D or 2D arrays on every paper on paper 2

  • @user-a554
    @user-a554 2 роки тому

    thank you so much!!!

  • @mushahidhussain331
    @mushahidhussain331 5 років тому +11

    Any Olevel Alevel students?😂