#include <stdio.h>
#include <string.h>
#include <ctype.h>
/*
God Yahweh, Thank you for everthing.
Jesus Christ, Thank you for dying for our sins.


AUTHOR_CODE_NAME = DY357-LX


Language: C23
SilverShot_MEDIA: https://silvershotmedia.com

Thank you Q

Microsoft Copilot: Thank you
When a person is directly addressed, a comma should set off the name.

DEC OCT HEX	BIN	        Symbol      HTML Number     HTML Name	Description
0   000 00	00000000	NUL         &#00;                       Null character

Uppercase Alphabet is off by one, Lowercase is on point.
No use of ROMAN numerals, in their place is 3 Vertical Bars (3 Sacred Pillars)
Vulnerability: Off By One Integer Overflow

CPP - C++
Two peas in a pod

Microsoft C/C++ compiler was backdoored?
Such a condition could not have been by accident.

SOVEREIGN CITIZENS:
Your name written in ALL CAPS represents a separate legal entity - a corporation, trust, or "strawman."

Primitive types: int, char, short, long (signed/unsigned)
What is an integer? But what is it?

The Simpsons: Season 11, Episode 3 (1999)
"Guess Who's Coming to Criticize Dinner?"

Lisa and the family are taking a tour of the Springfield Shopper newspaper.
A Newspaper Tour Guide proudly explains:
"And each paper contains a certain percentage of recycled paper."

Lisa immediately challenges this.
Lisa: "What percentage is that?"

The guide answers:
Tour Guide: "Zero. Zero is a percent, isn't it?"

CLion 2026.1
Build #CL-261.22158.273, built on March 25, 2026
"" Unpaired symbol: "" seems to be missing

Microsoft Copilot:
C23 does not require double quotes in comments
Double quotes are only required for string literals, not comments


CIA - Central Intelligence Agency
CIA - Child Investigation Abuse
CAIO - Child Abuse Investigation Organization

I before E except after C.
CEA - Child Exploitation Agency

*/

int ascii_code(char c) {
    return (int)c;
}

void calculate_number(const char *text_string) {

    int total_ascii_value = 0;

    for (int x = 0; x < strlen(text_string); x++) {

        char ch = text_string[x];
        int ascii_value = 0;

        if (ch == ' ') {
            ascii_value = 32;
        }
        else if (ch == '|') {
            ascii_value = 124;
        }
        else if (isupper(ch)) {
        /*
        DEC OCT HEX	BIN	        Symbol      HTML Number     HTML Name	Description
        64  100 40	01000000	@           &#64;            &commat;    At sign
        65  101 41  01000001    A           &#65;                        Uppercase A
        */
            ascii_value = ascii_code(ch) - 65;
        }
        else if (islower(ch)) {
        /*
        DEC OCT HEX	BIN	        Symbol      HTML Number     HTML Name	Description
        96 140	60	01100000	`           &#96;           &grave;     Grave accent
        97 141  61  01100001    a           &#97;                       Lowercase a
        */
            ascii_value = ascii_code(ch) - 96;
        }

        printf("%c = %d\n", ch, ascii_value);
        total_ascii_value += ascii_value;

    }

    printf("Total Calculated Value: %d\n", total_ascii_value);

}

/*
	Holy Bible [King James Translation]
	
	Revelation - Chapter 13 - Verses 16 to 18
	
16	And he causeth all, both small and great, rich and poor, free and bond, to receive a mark in their right hand, or in their foreheads:
17	And that no man might buy or sell, save he that had the mark, or the name of the beast, or the number of his name.
18	Here is wisdom. Let him that hath understanding count the number of the beast: for it is the number of a man; and his number is Six hundred threescore and six.

*/

int main(void) {
    calculate_number("William Henry Gates |||");
    return 0;
}




/*
1   C:\Users\Admin\CLionProjects\Calculate_Number\cmake-build-debug\Calculate_Number.exe
2   W = 22
3   i = 9
4   l = 12
5   l = 12
6   i = 9
7   a = 1
8   m = 13
9     = 32
10   H = 7
11   e = 5
12   n = 14
13   r = 18
14   y = 25
15     = 32
16   G = 6
17   a = 1
18   t = 20
19   e = 5
20   s = 19
21     = 32
22   | = 124
23   | = 124
24   | = 124
25   Total Calculated Value: 666
26   
27   Process finished with exit code 0
*/