The Weekly Challenge - 033

Sunday, Nov 3, 2019| Tags: Perl, Raku


HEADLINES



With great pleasure, we announce Prajith P. as the winner of “The Weekly Challenge - 032”. Congratulations Prajith, you should soon hear from Perl Careers about your reward. For rest of the participants, I would say Good Luck for next time. Keep sending in your solutions and share your knowledge with each other.



RECAP



Here is the recap of last week “The Weekly Challenge - 032”.



PERL REVIEW



Please checkout Perl solutions review of the “The Weekly Challenge - 031” by Kian-Meng Ang.

If you missed any past reviews then please checkout the collection.



RAKU REVIEW



Please checkout Raku solutions review of the “The Weekly Challenge - 031” by Laurent Rosenfeld.

If you missed any past reviews then please checkout the collection.



CHART



Please take a look at the charts showing interesting data.

I would like to thank every member of the team for their valuable suggestions. Please do share your experience with us.



NEW MEMBERS



  1. Fabrizzio Poggi, Peon Fortran programmer, learning Perl just to have fun and to gain versatile powers.

  2. Ryan Thompson, an experienced Perl hacker since 1996 (5.003), and other languages (especially C) since the mid-80s. Raku just for fun since Pugs.

  3. Giuseppe Di Terlizzi, Just Another Perl Hacker (since 2007) and IT Security Consultant from Rome (Italy).

Check out current team members.

Please find out How to contribute?, if you have any doubts.



GUESTS



  1. Adam Russell shared C++ solutions for “The Weekly Challenge - 032”.

  2. Ulrich Rieke shared C++ solutions for “The Weekly Challenge - 032”.

Please do share your creative solutions in other languages.



Task #1



Count Letters (A..Z)

Create a script that accepts one or more files specified on the command-line and count the number of times letters appeared in the files.

So with the following input file sample.txt

The quick brown fox jumps over the lazy dog.

the script would display something like:

a: 1
b: 1
c: 1
d: 1
e: 3
f: 1
g: 1
h: 2
i: 1
j: 1
k: 1
l: 1
m: 1
n: 1
o: 4
p: 1
q: 1
r: 2
s: 1
t: 2
u: 2
v: 1
w: 1
x: 1
y: 1
z: 1


Task #2



Formatted Multiplication Table

Write a script to print 11x11 multiplication table, only the top half triangle.

  x|   1   2   3   4   5   6   7   8   9  10  11
---+--------------------------------------------
  1|   1   2   3   4   5   6   7   8   9  10  11
  2|       4   6   8  10  12  14  16  18  20  22
  3|           9  12  15  18  21  24  27  30  33
  4|              16  20  24  28  32  36  40  44
  5|                  25  30  35  40  45  50  55
  6|                      36  42  48  54  60  66
  7|                          49  56  63  70  77
  8|                              64  72  80  88
  9|                                  81  90  99
 10|                                     100 110
 11|                                         121


Last date to submit the solution 23:59 (UK Time) Sunday 10th November 2019.



SO WHAT DO YOU THINK ?

If you have any suggestions or ideas then please do share with us.

Contact with me