How to resolve the algorithm Camel case and snake case step by step in the Phix programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Camel case and snake case step by step in the Phix programming language

Table of Contents

Problem Statement

Two common conventions for naming of computer program variables are Snake Case and Camel Case. Snake case variables are generally all lower case, with an underscore between words in the variable, as in snake_case_variable'. Camel case variables are generally lower case first (except in some Pascal conventions or with class names in many other languages), with captalization of the initial letter of the words within the variable, as in 'camelCaseVariable'. Leading underscores are not used in such variables except as part of a different naming convention, usually for special internal or system variables. White space is not permitted as part of camel case or snake case variable names.

Let's start with the solution: