I’m sorry because I use bahasa for the tittle of this post because I confuse how to describe about this post. As usually, I get questions about C++ here and I will try to answer as I can. The question is how to calculate the frequency of each letter appears in a sentence using the C++ program. OK, I’ll try to answer it.
The algorithm is, first, we must enter a sentence, in C++ we should use the function cin.getline. Then we must find the length of that sentence. Then we compare each letter from the letter “a” to the letter “z” and calculate the amount. For more details, please download the C++ program here. Sample results are displayed as below.

This program is the answer for the question that I get from Faisol. He ask me to make program using C++ to show a parallelogram. I think we have to use “nested for” to make this program. “for” is a statement in C++ that use for looping. When we placed a “for” statement inside other “for” statement, that is called “nested for”. For more please download the C++ script here.
This semester i teach again at Stikom Bali, they ask me to teach two subject in 4 class. The firt subject is “Algorithm and Data Structure I” and the second subject is “Database System”. I like teach both of this subject. I teach Algorithm and Data Structure I for three class and just one class for Database System. Every subject is 3 SKS, so for this semester i got 12 SKS.
I’m happy enough for this schedule because i think this is ideal for me, not too many SKS and also not too few. I teach every afternoon from monday to thursday, about 2 hour each day. The another thing that make me happy is because the subject, i like this subject and i always happy when teach this subject.
Fisrt, i have made a post about introduction to algorithm, but in indonesian language. Algorithm is logical stages that compiled systematically and logic to solve a problem. The word “logic” is the keyword in algorithm. The stage in algorithm have to earn to be determined is valuable true or false.
Now i try to make an example of algorithm, a simple example. For example, we want to know a number is even or odd. Before we can make the program, we must know the algoritm. How we can know the number is even or not.
The even number is the number which can be divided by two (the mod 2 result is zero). Example for even number : 2, 4, 6, 8, etc. So after that, now we can make the pseudocode :
Or, for advance programmer, they can be direct make its program using a programming like C/C++, Pascal or a visual programming like Visual Basic, Borland Deplhi, etc.
Sumpah, sebenarnya nggak pede banget posting dengan bahasa inggris yang ancur kayak gini. Mudah-mudahan ada yang ngerti. Mohon maaf kalau banyak kesalahan apalagi sampai membuat makna yang berbeda dari maksud sebenarnya, harap maklum. Hwahuahuahua