We have searched and found a webpage/article on problem solving methodology. If you read this at home, now is a good time to read it, slowly. It has a section on pseudo coding. It is particularly important. Check out the link in the references above.
Pseudo coding means formulating in words, and writing it down, how you want to solve a given problem. Having done that you read it again to verify that in your mind this is the way to solve the problem. Following the methodology this involves reading the problem 3 times. More if you are uncertain.
Once you are satisfied that it will solve the problem you rephrase your prescription into a style that reminisces a bulleted list, step by step. Then you verify that and reiterate until you are happy that it will work.
Only then, hours, may be days later, you open your editor to start formulating your pseudo code in your chosen programming language, in our case JavaScript
Now the programming is over. Now you start the coding. Remember programming is analog. Coding is digital.
Imagine that in a shadowy corner of our solar system there is a small planet called World. World has 3 countries:
+------+-------------+------------+ | code | name | population | +------+-------------+------------+ | AFG | Afghanistan | 22720000 | | TJK | Tajikistan | 6188000 | | UZB | Uzbekistan | 24318000 | +------+-------------+------------+
In those three countries the following 10 languages are spoken:
+-------------+------------+------------+------------+ | countrycode | language | isofficial | percentage | +-------------+------------+------------+------------+ | AFG | Balochi | F | 0.9 | | AFG | Dari | T | 32.1 | | AFG | Pashto | T | 52.4 | | AFG | Turkmenian | F | 1.9 | | AFG | Uzbek | F | 8.8 | | TJK | Russian | F | 9.7 | | TJK | Tadzhik | T | 62.2 | | TJK | Uzbek | F | 23.2 | | UZB | Karakalpak | F | 2.0 | | UZB | Kazakh | F | 3.8 | | UZB | Russian | F | 10.9 | | UZB | Tadzhik | F | 4.4 | | UZB | Tatar | F | 1.8 | | UZB | Uzbek | T | 72.6 | +-------------+------------+------------+------------+
Now write a program that tells us how many people speak each language in (the) World.
In groups write the pseudo code detailing how this is done. You may use terminology such as read country, or get language info, etc.
Write the pseudo code in PowerPoint or Keynote.
Write a program that asks the user to enter three numbers and then returns the text "nnn was the biggest".
In groups write the pseudo code detailing how this is done.
Write the pseudo code in PowerPoint or Keynote.