# Ngā wero a Product code check digits

Nama Ingoa Taumata Wero Ngā Reo
1.1 Kāore e taea ki te reo Te Reo Māori
12 digit product codes: Weighted sum of digits (entered one at a time)
Te whakatipu wheako
Hua akoranga

Ka taea e ngā ākonga te:

• Whakamārama i ngā āhuatanga hei whakaaro ina ka pātai koe i te tāuru mai i te kaiwhakamahi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea e tāpiritia ai (ka honoa) ngā aho pūāhua.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea ngā uara e tiakina e ngā taurangi, ka pēhea hoki e whakamahi ai i te papatono.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution
1.2 Kāore e taea ki te reo Te Reo Māori
13 digit product codes: Weighted sum of digits (entered one at a time)
Te whakatipu wheako
Hua akoranga

Ka taea e ngā ākonga te:

• Whakamārama i ngā āhuatanga hei whakaaro ina ka pātai koe i te tāuru mai i te kaiwhakamahi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea e tāpiritia ai (ka honoa) ngā aho pūāhua.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea ngā uara e tiakina e ngā taurangi, ka pēhea hoki e whakamahi ai i te papatono.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution
2.1 Kāore e taea ki te reo Te Reo Māori
12 digit product codes: Check if total is a multiple of 10 (entered one at a time)
Te whakatipu wheako
Hua akoranga

Ka taea e ngā ākonga te:

• Tautuhi i te wāhi tika mō te tauākī 'mēnā' ('if' rānei), ki te whakamahi i te kōwhiringa.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i ngā āhuatanga hei whakaaro ina ka pātai koe i te tāuru mai i te kaiwhakamahi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i te mahi o te paheko tātai ā-porowhita i tō papatono.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea e tāpiritia ai (ka honoa) ngā aho pūāhua.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea ngā uara e tiakina e ngā taurangi, ka pēhea hoki e whakamahi ai i te papatono.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution
2.2 Kāore e taea ki te reo Te Reo Māori
13 digit product codes: Check if total is a multiple of 10 (entered one at a time)
Te whakatipu wheako
Hua akoranga

Ka taea e ngā ākonga te:

• Tautuhi i te wāhi tika mō te tauākī 'mēnā' ('if' rānei), ki te whakamahi i te kōwhiringa.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i ngā āhuatanga hei whakaaro ina ka pātai koe i te tāuru mai i te kaiwhakamahi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i te mahi o te paheko tātai ā-porowhita i tō papatono.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea e tāpiritia ai (ka honoa) ngā aho pūāhua.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea ngā uara e tiakina e ngā taurangi, ka pēhea hoki e whakamahi ai i te papatono.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution
3.1 Kāore e taea ki te reo Te Reo Māori
12 digit product codes: Check if total is a multiple of 10 (one line of input)
Te whakatipu wheako
Hua akoranga

Ka taea e ngā ākonga te:

• Whakamārama i te rerekētanga o te tauākī 'tautuhia' me te tauākī 'panonitia', ki te panoni i te uara o tētahi taurangi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i te tikanga o te tauākī noho-kōhanga i te horopaki o tō papatono.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama mai i ngā take me kōwhiri tētahi ingoa pai mō ngā taurangi.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution
3.2 Kāore e taea ki te reo Te Reo Māori
13 digit product codes: Check if total is a multiple of 10 (one line of input)
Te whakatipu wheako
Hua akoranga

Ka taea e ngā ākonga te:

• Whakamārama i te rerekētanga o te tauākī 'tautuhia' me te tauākī 'panonitia', ki te panoni i te uara o tētahi taurangi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i te tikanga o te tauākī noho-kōhanga i te horopaki o tō papatono.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama mai i ngā take me kōwhiri tētahi ingoa pai mō ngā taurangi.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution
4.1 Kāore e taea ki te reo Te Reo Māori
12 and 13 digit product codes: Check for a valid product code (any length)
Kua rite kia whakawhānuitia
Hua akoranga

Ka taea e ngā ākonga te:

• Whakamārama i te rerekētanga o te tauākī 'tautuhia' me te tauākī 'panonitia', ki te panoni i te uara o tētahi taurangi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i te tikanga o te tauākī noho-kōhanga i te horopaki o tō papatono.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama mai i ngā take me kōwhiri tētahi ingoa pai mō ngā taurangi.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution
5.1 Kāore e taea ki te reo Te Reo Māori
12 digit product codes: Calculate the last digit (entered one digit at a time)
Kua rite kia whakawhānuitia
Hua akoranga

Ka taea e ngā ākonga te:

• Tautuhi ka pēhea, āhea hoki e mahia ai te koromeke ki te tukurua i tētahi rārangi o ngā tohutohu.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakaatu ka pēhea te whakamahi i te kuputohu o te aho ki te tiki i te pū kei taua wāhi o te aho.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i te rerekētanga o te tauākī 'tautuhia' me te tauākī 'panonitia', ki te panoni i te uara o tētahi taurangi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea e tāpiritia ai (ka honoa) ngā aho pūāhua.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution
5.2 Kāore e taea ki te reo Te Reo Māori
13 digit product codes: Calculate the last digit (entered one digit at a time)
Kua rite kia whakawhānuitia
Hua akoranga

Ka taea e ngā ākonga te:

• Tautuhi ka pēhea, āhea hoki e mahia ai te koromeke ki te tukurua i tētahi rārangi o ngā tohutohu.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakaatu ka pēhea te whakamahi i te kuputohu o te aho ki te tiki i te pū kei taua wāhi o te aho.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i te rerekētanga o te tauākī 'tautuhia' me te tauākī 'panonitia', ki te panoni i te uara o tētahi taurangi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea e tāpiritia ai (ka honoa) ngā aho pūāhua.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution
6.1 Kāore e taea ki te reo Te Reo Māori
12 digit product codes: Calculate the last digit (one line of input)
Kua rite kia whakawhānuitia
Hua akoranga

Ka taea e ngā ākonga te:

• Whakaatu ka pēhea te whakamahi i te kuputohu o te aho ki te tiki i te pū kei taua wāhi o te aho.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i te rerekētanga o te tauākī 'tautuhia' me te tauākī 'panonitia', ki te panoni i te uara o tētahi taurangi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea e tāpiritia ai (ka honoa) ngā aho pūāhua.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution
6.2 Kāore e taea ki te reo Te Reo Māori
13 digit product codes: Calculate the last digit (one line of input)
Kua rite kia whakawhānuitia
Hua akoranga

Ka taea e ngā ākonga te:

• Whakaatu ka pēhea te whakamahi i te kuputohu o te aho ki te tiki i te pū kei taua wāhi o te aho.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama i te rerekētanga o te tauākī 'tautuhia' me te tauākī 'panonitia', ki te panoni i te uara o tētahi taurangi.
Pūtaiao Rorohiko: Te Tuhiwaehere
• Whakamārama ka pēhea e tāpiritia ai (ka honoa) ngā aho pūāhua.
Pūtaiao Rorohiko: Te Tuhiwaehere
Challenge Solutions
Show Scratch solution