Programming

611 Articles 12 Followers


Sorting Algorithms 1

11 May 2022 1 minute read 0 comments Cooldudue

Hello everyone Before I dive deep into the theory of sorting algorithms, I thought it would be a fun exercise to create my own algorithms and see how they compare to those I will learn about. The algorithm I have prepared today simply compares the on...

Counting how many times a word appears in a sentence

10 May 2022 1 minute read 0 comments Cooldudue

Hello everyone This is a question I got in a coding interview and while I know how to solve it in python, Java is a different beast.  My approach was to split the sentence into an array of words and then check how many times a word appears in the arr...

Learning Python update #4 - the break to have a baby!

10 May 2022 1 minute read 0 comments dotMatrix

Sometimes Life Happens!   Welcoming my second child into the world meant that I couldn't get as much coding time as I would have hoped for.  She arrived into the world in a straightforward way, but we then had a difficult couple of weeks whilst she u...

The most wanted primes + bonus prime

9 May 2022 1 minute read 0 comments Cooldudue

Hello everyone I recently watched a Numberphile video where Neil shows an interesting sequence of numbers. In the end, I felt a bit empty since a prime number of this kind should exist but unfortunately, we have not been able to find one for the last...

Reverse a String

6 May 2022 1 minute read 1 comment Cooldudue

This was a pretty easy one. From the previous problem, I knew how to convert a string to an array of char. Then I had to make a copy of the array but in Java, it's not as easy as saying a=b. Then I looped through the first array replacing each letter...

Checking whether or not a number is an Armstrong Number

5 May 2022 1 minute read 0 comments Cooldudue

This was an interesting challenge as I had no idea how I was going to get each digit into an array. In python, you can just convert the int to a string and then index the string directly. I found this interesting solution on Stack Exchange to convert...

How to code a calculator web app

24 Apr 2022 7 minute read 1 comment powersjo

Creating your own calculator web app is a useful project to help beginners learn code and website hosting. When I started this project, I figured the hardest part to code would be the Javascript. This is because I thought since the logic lived there,...

How to make processes in Batch Script?

16 Apr 2022 3 minute read 2 comments lingy

I've done some scripts in Batch in the past, so I decided to create this simple tutorial in an uncompromising way. Feel free to experiment, test and comment on the technology and its uses, and ask questions in the comments. Why use old technology lik...

Send Automatic Emails With Google Sheets + Google Forms📧

9 Apr 2022 1 minute read 1 comment The Part Time Economist

  Imagine that you have a business that accepts orders online via the free to use Google forms program. More than likely, you would want to send automatic emails to your customers to confirm their orders, but you would also want to personalize the e...

Comments in C 18

6 Apr 2022 1 minute read 1 comment Cheetah Faith

Single Line Comments   Single line comments span over one line only and are ignored by the compiler.In C they can be done with a double Slash.In this case we do NOT need a semicolon at the end of the line. They can either be above a part of the code....