Flowgorithm - Integer Arrays and Functions

Поділитися
Вставка
  • Опубліковано 7 лют 2025

КОМЕНТАРІ • 52

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

    perfect - very well explained and easy to follow thanks! :)

  • @hank9112
    @hank9112 6 років тому +1

    This helped a lot. Thank you

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

    Been using your videos a bit to help out with my understanding of pseudo code and flowgorithm. I can't seem to wrap my head around an issue I'm having. I need to pass a string array from a function to the main module. How do I go about doing this? I keep getting the error "The variable 'Return Value' is an 'String' and cannot be assigned '[...]'".
    Up to this point, thank you for posting these videos since they have helped me a lot in my understanding.

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

      You can pass an array as a parameter within a function but you can't return an array as a variable in Flowgorithm

  • @cee670
    @cee670 8 років тому +2

    Thank you!

  • @shafiqrahman7000
    @shafiqrahman7000 6 років тому +1

    how to you arrange them in ascending order?

  • @flowgorithm
    @flowgorithm  8 років тому

    ive had parents evening tonight but wilk sort a video by Thurs for you

  • @flippershadow4504
    @flippershadow4504 6 років тому

    could someone please help me with this assignment
    : Implement an algorithm that allow the user to perform CRUD operations over an array (Create, Read, Update, Delete). For C, U and D operations the program must ask the user the index where (s)he wants to perform the operation. For C and U additionally the program must ask the user for a number to add/change. The R operation merely displays the array.

  • @flowgorithm
    @flowgorithm  8 років тому +1

    Finding largest and smallest without an array.
    ua-cam.com/video/7AhFdkbTK0Q/v-deo.html

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

    Very intresting, Thank you

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

    Is Flowgorithm Turing-complete? Can you create Flowgorithm in Flowgorithm?

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

      No its just made really to teach algorithms and coding techniques

  • @DanielRodriguez-nt8hk
    @DanielRodriguez-nt8hk 4 роки тому

    Can you teach me how to reverse the letters in a string?

  • @xrellikgr
    @xrellikgr 6 років тому +1

    How can I make a list go largest to smallest?

    • @flowgorithm
      @flowgorithm  6 років тому +1

      Sort the data. There is a video search my playlist for bubble sort

  • @mohsenjoonam
    @mohsenjoonam 7 років тому +1

    Hi, are you able to solve the word problem I have through Flowgorithm? It is a college problem that I need to work on with a short learning time. Please advise. Thank you. I could post the problem here or email that to you.

    • @flowgorithm
      @flowgorithm  7 років тому

      mosenjoon post here i'll see what i can do

    • @mohsenjoonam
      @mohsenjoonam 7 років тому

      Here is. Thank you. " An economist is researching the hourly wage of veterinary technicians in the Los Angeles, Santa Monica, and Valley metropolitan areas. The economist would like to find the average wage for workers in each area.
      The following are required:
      1. Inputs distinguishing different metro areas (codes like “la” is good code for Los Angeles).
      2. Reporting the average and number of data points for each metro area at the end of the program.
      * Create a method to perform the averages. "

    • @flowgorithm
      @flowgorithm  7 років тому

      If i was doing this in python i'd prob do a 2d array but flowgorithm doesn't support that.
      Simplest way would be:-
      input area code and store in array
      input wage and store in wage array
      When working out the average
      Take in the area
      do a linear search of area array when you find an item add 1 to a counter and add wage value at the same position from the area search.
      Once you have the total and the count you can divide to get the average.

    • @mohsenjoonam
      @mohsenjoonam 7 років тому

      Thank you, I did the decoration and used while loop for 3 different areas, but for some reason my Function to return the average and all my user input does not return any value. I must be doing something wrong somewhere. I will redo it following your suggestions Thanks again.

    • @flowgorithm
      @flowgorithm  7 років тому

      If you email me your flowchart I can have a look at it tomorrow for you

  • @cee670
    @cee670 8 років тому

    If I want to do a while statement asking for input numbers until the "-99" is entered then can the program can determine the largest and smallest from that input? thank you.

    • @flowgorithm
      @flowgorithm  8 років тому

      Christine Souders
      I need to ask a couple of questions. I assume you are a student (what level secondary/high school or higher?) Has your teacher specifically asked you to do this in flowgorithm or are you using it to generate code for say python?
      If you are wanting this in flowgorithm i don't think it can be done using an array as it doesn't allow an unkown array size to be created. Arrays are fixed in length and can't grow or shrink. This could be acheived in Python using a list in a few lines which i could demonstrate. However bigest/smallest number entered until you enter -99 in flowgorithm can be done using a while and a few if statements fairly simply if thats what you mean which i can demonstrate for you.

    • @cee670
      @cee670 8 років тому

      I am a student. It's an online class with very little direction. I have my while statement done and I have an if statement and the output statements with the largest and smallest number; however, it always prints out zero regardless of what numbers I input. My variables are initialized to 0. I have "if number is greater than largest" true...set number to largest..false..set number to smallest.

  • @elliottaylor8845
    @elliottaylor8845 6 років тому

    Very good vid

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

    How do i increase Array using while loop?

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

      An array is a fixed size data store. You can't make it bigger. Python allows list to be increased but list are not true arrays.

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

      @@flowgorithm like as an example
      integer: i
      string : increase
      Array[i]
      input increase
      increase = i + 1
      or osmething?

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

    Thankss

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

    How to compare 2 arrays?

  • @JenniferPetitt
    @JenniferPetitt 7 років тому

    i have to use raptor for my assignments and I'm not sure what to do. have you used raptor? my assignments are
    1. Input a list of positive numbers, terminated by 0, into an array Numbers[]. Then display the array and the largest and smallest number in it.
    2. Create a program that allows the user to input a list of first names into one array and last names into a parallel array. Input should be terminated when the user enters a sentinel character. The output should be a list of email addresses where the address is of the following form: first.last@mycollege.edu

    • @flowgorithm
      @flowgorithm  7 років тому +1

      I've not really used raptor - i prefer flowgorithm but they are fairly similar. I'll take a look and see what i can come up with

    • @JenniferPetitt
      @JenniferPetitt 7 років тому

      UKRocketry thank you so much!!

    • @stormimark7210
      @stormimark7210 7 років тому

      im in this class too and am still lost?

    • @flowgorithm
      @flowgorithm  7 років тому

      Sorry girls I've spent some time looking at Raptor. It's not nearly as nice to use as Flowgorithm and certainly not something i'd use with my students. I'm not going to be able to produce Raptor specific tutorials.

    • @flowgorithm
      @flowgorithm  7 років тому

      ua-cam.com/video/D_B2yBDbamE/v-deo.html

  • @flowgorithm
    @flowgorithm  7 років тому

    Got it

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

    audio level is so low!

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

      It's an old video and a crappy mic. But it seems ok on my PC