How to resolve the algorithm String case step by step in the QB64 programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm String case step by step in the QB64 programming language

Table of Contents

Problem Statement

Take the string     alphaBETA     and demonstrate how to convert it to:

Use the default encoding of a string literal or plain ASCII if there is no string literal in your language. Note: In some languages alphabets toLower and toUpper is not reversable. Show any additional case conversion functions   (e.g. swapping case, capitalizing the first letter, etc.)   that may be included in the library of your language.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm String case step by step in the QB64 programming language

Source code in the qb64 programming language

DIM s AS STRING * 9
s = "alphaBETA"
PRINT "The original string: " + s
PRINT ""
PRINT "Translated to lowercase: " + LCASE$(s)
PRINT "Translated to uppercase: " + UCASE$(s)

s$ = "alphaBETA"
PRINT "The original string: "; s$: PRINT
PRINT "Converted to lowercase: "; LCASE$(s$)
PRINT "Converted to uppercase: "; UCASE$(s$)

  

You may also check:How to resolve the algorithm Hofstadter-Conway $10,000 sequence step by step in the EchoLisp programming language
You may also check:How to resolve the algorithm Date format step by step in the Nim programming language
You may also check:How to resolve the algorithm Optional parameters step by step in the Perl programming language
You may also check:How to resolve the algorithm Semordnilap step by step in the FreeBASIC programming language
You may also check:How to resolve the algorithm Averages/Root mean square step by step in the min programming language