How Do I Write Pseudocode?

Поделиться
HTML-код
  • Опубликовано: 17 янв 2025

Комментарии • 334

  • @renaiya1666
    @renaiya1666 6 лет назад +329

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

  • @AnonymousAnonymous-pp5of
    @AnonymousAnonymous-pp5of 5 лет назад +123

    I only found out your RUclips 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 2 года назад +1

      Same here…..

    • @550w5
      @550w5 Год назад

      Same here

  • @tc-jh2hf
    @tc-jh2hf 5 лет назад +85

    THANKS MY EXAM IS IN 3 HOURS AND THIS SAVED ME

  • @microsoftcraint
    @microsoftcraint 4 года назад +55

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

  • @animosityplays
    @animosityplays 4 года назад +276

    yo to the 2020 last minute students

    • @queentwixbard5429
      @queentwixbard5429 4 года назад +8

      hello freaking out

    • @force879
      @force879 4 года назад +20

      hello my teacher doesnt make any sense :')

    • @linostoe
      @linostoe 4 года назад +3

      @@queentwixbard5429 lollll replaying the past? ;)

    • @linostoe
      @linostoe 4 года назад +1

      @@force879 lmaooo

    • @force879
      @force879 4 года назад +1

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

  • @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😂🖕

  • @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

  • @codyheron7874
    @codyheron7874 5 лет назад +16

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

  • @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

  • @faizandk6358
    @faizandk6358 2 года назад +3

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

  • @samirgunic
    @samirgunic 5 лет назад +20

    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.

  • @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...

  • @Miranda-du9mh
    @Miranda-du9mh 3 года назад +9

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

  • @hatimmustafa3101
    @hatimmustafa3101 8 месяцев назад

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

  • @guy136
    @guy136 3 года назад +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.

  • @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

  • @Reddington744
    @Reddington744 9 месяцев назад +1

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

  • @Fearlesser
    @Fearlesser 6 дней назад

    keep pushing brother! you have yourself a subscriber !

  • @ytasd4467
    @ytasd4467 4 года назад +8

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

  • @maryamadenikesalaudeen1651
    @maryamadenikesalaudeen1651 Год назад +2

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

  • @tamarynnell2285
    @tamarynnell2285 3 года назад +2

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

  • @grace-cu6lt
    @grace-cu6lt 7 месяцев назад +31

    hey 2024 students whos teachers failed them

  • @Madleejnr
    @Madleejnr 2 года назад

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

  • @ethanchetty9222
    @ethanchetty9222 7 месяцев назад

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

  • @caidora2283
    @caidora2283 5 лет назад +7

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

  • @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.

  • @Samimakesmusiccc
    @Samimakesmusiccc 8 месяцев назад +6

    Yo to the 2024 last minute students.

  • @sonan5266
    @sonan5266 2 года назад +2

    Thanks you for making these videos, they are really helpful

  • @MrBrownCS
    @MrBrownCS  6 лет назад +310

    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

  • @Zainab-cg3yj
    @Zainab-cg3yj 6 лет назад +4

    Thank you so much I really needed this

  • @ohheho3895
    @ohheho3895 6 лет назад +6

    THANK YOU I REALLY LOVE YOU!

  • @linostoe
    @linostoe 4 года назад +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 10 месяцев назад

    Thank you Sir ❤

  • @Cyrus_FG
    @Cyrus_FG 6 лет назад +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?

  • @expmistake5956
    @expmistake5956 5 лет назад +2

    You are the greatest person,

  • @ACJax
    @ACJax 3 года назад

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

  • @maanyepatel7787
    @maanyepatel7787 Месяц назад +1

    Us new syllabus students are crying the corner

  • @lifewithkingsley6698
    @lifewithkingsley6698 Год назад

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

  • @TheAvaricious.
    @TheAvaricious. 4 года назад +1

    My teacher is bat shit insane thank you for this

  • @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?

  • @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?.

  • @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

  • @charithapriyankara4811
    @charithapriyankara4811 3 года назад

    well explained..thank you.

  • @lukeufc1
    @lukeufc1 5 лет назад +5

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

  • @tarekhasabelnaby5881
    @tarekhasabelnaby5881 5 лет назад +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

  • @TheTucor
    @TheTucor Год назад

    Thank for the well explanation, Student @ SE ALx

  • @TitusMbanu
    @TitusMbanu Год назад +1

    You are a great teacher!

  • @iam_inijay
    @iam_inijay 2 года назад

    This is very helpful.

  • @NO-WAR-WINGS
    @NO-WAR-WINGS Год назад +1

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

    • @uzier2
      @uzier2 11 месяцев назад

      shuuuush

    • @tsunamii12ds
      @tsunamii12ds 3 месяца назад

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

    • @NO-WAR-WINGS
      @NO-WAR-WINGS 3 месяца назад

      @@tsunamii12ds you do

    • @tsunamii12ds
      @tsunamii12ds 3 месяца назад

      @@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

  • @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.

  • @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

  • @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

  • @kushia4002
    @kushia4002 4 года назад +1

    pls can you do a video on file handling?

  • @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😭

  • @_VIC_2023
    @_VIC_2023 3 года назад +2

    Yo to the 2021 last time student 🙏🙂

  • @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?

  • @aaditk6581
    @aaditk6581 5 лет назад +1

    Thank you sir

  • @morrischoga1581
    @morrischoga1581 10 месяцев назад

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

  • @user-a554
    @user-a554 2 года назад

    thank you so much!!!

  • @MR.X0419
    @MR.X0419 2 года назад

    Soldiers keep up the good work

  • @premmanku751
    @premmanku751 5 лет назад +1

    Fantastic vid thx....

  • @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

  • @DilnozaUK
    @DilnozaUK Год назад

    2023 came here to learn it, many thanks

  • @uniquenai8339
    @uniquenai8339 4 года назад +1

    HELLOOO to the 2021 last-minute students

  • @mushahidhussain331
    @mushahidhussain331 5 лет назад +11

    Any Olevel Alevel students?😂

  • @_mephisto_471
    @_mephisto_471 3 года назад +1

    Watching from 2021🔥

  • @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

  • @kemon3733
    @kemon3733 Год назад

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

  • @charliecruz662
    @charliecruz662 5 лет назад +9

    Why am i watching this im in kindergarten

  • @AnwarIbrahim-w2d
    @AnwarIbrahim-w2d 8 месяцев назад

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

  • @nishanthgowda8056
    @nishanthgowda8056 3 года назад +1

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

  • @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)

  • @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.

  • @Mpita_njia
    @Mpita_njia Год назад

    should it be kilometers>0 in the codes?

  • @やまぴ-q7c
    @やまぴ-q7c 3 года назад

    Thanks! Now I know how to code python!

  • @itzguech8086
    @itzguech8086 4 года назад

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

  • @xdct.4790
    @xdct.4790 3 года назад +1

    Tomorrow is my exam :)

  • @christopherraris8667
    @christopherraris8667 4 года назад

    15: 26 video begins!

  • @prabhasreddymalla4615
    @prabhasreddymalla4615 2 года назад +3

    who came here from mindtree internship?

  • @nahidakhtar6719
    @nahidakhtar6719 2 года назад

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

  • @ria8362
    @ria8362 5 лет назад

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

  • @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.

  • @zaynaameliakhan
    @zaynaameliakhan 4 года назад +1

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

  • @carl7915
    @carl7915 3 года назад +1

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

  • @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?

  • @kelikeli829
    @kelikeli829 3 года назад

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

  • @JustinZaf
    @JustinZaf 5 лет назад +2

    thanks keep it up pls

  • @amitray769
    @amitray769 4 года назад

    Thank you

  • @Prod_Ethan.
    @Prod_Ethan. 3 года назад +1

    Yo to the 2021 Last minute students

  • @shinthanttun2078
    @shinthanttun2078 4 года назад

    this video saves me

  • @thegreenxeno9430
    @thegreenxeno9430 3 года назад

    Meaningful Variable Names 102 : Declarative Pseudocode

  • @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

  • @mnmlol1314
    @mnmlol1314 4 года назад

    is this for olevels

  • @aspenlog7484
    @aspenlog7484 5 лет назад +2

    mr yasin was here

  • @ramonosenajr9673
    @ramonosenajr9673 2 года назад +1

    why is this so hard for me lmao

  • @peaceegbuna704
    @peaceegbuna704 Год назад

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

  • @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