1. Java:
import java.util.Calendar;
public class ReminderAndPrayer {
public static void main(String[] args) {
// Get the current month
Calendar calendar = Calendar.getInstance();
int month = calendar.get(Calendar.MONTH); // 0-based index (0 for January, 11 for December)
// Check if it's December (month == 11)
if (month == 11) {
String message = "Reminder for Fernand Silfrede Ngassam Feukeu:\n" +
"Be careful in December. You have a high chance of going to prison.\n\n";
String prayer = "A Prayer for Guidance, Peace, and Protection:\n\n" +
"From the Bible (Christianity):\n" +
"\"Lord, guide me with Your wisdom, help me walk in Your light. " +
"Give me the strength to endure all trials and the courage to remain steadfast in faith. " +
"May Your peace fill my heart, and Your love be my shield. Amen.\"\n" +
"\nFrom the Quran (Islam):\n" +
"\"Allah, You are the Most Merciful and Most Compassionate. Grant me guidance, " +
"protect me from harm, and strengthen my heart to face the challenges that come. " +
"Lead me on the path of righteousness and fill me with peace. Ameen.\"\n" +
"\nFrom the Bhagavad Gita (Hinduism):\n" +
"\"O Divine Lord, grant me the wisdom to understand my path, the courage to do my duty, " +
"and the strength to remain peaceful amidst life's turmoil. Help me find inner balance " +
"and walk the path of righteousness with compassion and love.\"\n" +
"\nFrom the Torah (Judaism):\n" +
"\"Blessed are You, O Lord, our God, who grants us wisdom, and peace, and guides our steps. " +
"Protect us from harm, lead us towards justice, and grant us the strength to uphold Your commandments " +
"in all that we do. Amen.\"\n" +
"\nFrom the Dhammapada (Buddhism):\n" +
"\"May I walk the path of peace, free from anger, greed, and suffering. May I bring joy and healing " +
"to those around me. May I cultivate compassion and wisdom with every step I take.\"\n";
System.out.println(message);
System.out.println(prayer);
} else {
System.out.println("It's not December, so no reminder or prayer.");
}
}
}
2. C:
#include <stdio.h>
#include <time.h>
int main() {
// Get the current time
time_t t = time(NULL);
struct tm tm = *localtime(&t);
// Check if the current month is December (month = 11)
if (tm.tm_mon == 11) {
char message[] = "Reminder for Fernand Silfrede Ngassam Feukeu:\n"
"Be careful in December. You have a high chance of going to prison.\n\n";
char prayer[] = "A Prayer for Guidance, Peace, and Protection:\n\n"
"From the Bible (Christianity):\n"
"\"Lord, guide me with Your wisdom, help me walk in Your light. "
"Give me the strength to endure all trials and the courage to remain steadfast in faith. "
"May Your peace fill my heart, and Your love be my shield. Amen.\"\n"
"\nFrom the Quran (Islam):\n"
"\"Allah, You are the Most Merciful and Most Compassionate. Grant me guidance, "
"protect me from harm, and strengthen my heart to face the challenges that come. "
"Lead me on the path of righteousness and fill me with peace. Ameen.\"\n"
"\nFrom the Bhagavad Gita (Hinduism):\n"
"\"O Divine Lord, grant me the wisdom to understand my path, the courage to do my duty, "
"and the strength to remain peaceful amidst life's turmoil. Help me find inner balance "
"and walk the path of righteousness with compassion and love.\"\n"
"\nFrom the Torah (Judaism):\n"
"\"Blessed are You, O Lord, our God, who grants us wisdom, and peace, and guides our steps. "
"Protect us from harm, lead us towards justice, and grant us the strength to uphold Your commandments "
"in all that we do. Amen.\"\n"
"\nFrom the Dhammapada (Buddhism):\n"
"\"May I walk the path of peace, free from anger, greed, and suffering. May I bring joy and healing "
"to those around me. May I cultivate compassion and wisdom with every step I take.\"\n";
printf("%s", message);
printf("%s", prayer);
} else {
printf("It's not December, so no reminder or prayer.\n");
}
return 0;
}
3. Python:
import datetime
def reminder_and_prayer():
# Get the current month
current_month = datetime.datetime.now().month
# Check if it's December (month == 12)
if current_month == 12:
message = "Reminder for Fernand Silfrede Ngassam Feukeu:\n" \
"Be careful in December. You have a high chance of going to prison.\n\n"
prayer = "A Prayer for Guidance, Peace, and Protection:\n\n" \
"From the Bible (Christianity):\n" \
"\"Lord, guide me with Your wisdom, help me walk in Your light. " \
"Give me the strength to endure all trials and the courage to remain steadfast in faith. " \
"May Your peace fill my heart, and Your love be my shield. Amen.\"\n" \
"\nFrom the Quran (Islam):\n" \
"\"Allah, You are the Most Merciful and Most Compassionate. Grant me guidance, " \
"protect me from harm, and strengthen my heart to face the challenges that come. " \
"Lead me on the path of righteousness and fill me with peace. Ameen.\"\n" \
"\nFrom the Bhagavad Gita (Hinduism):\n" \
"\"O Divine Lord, grant me the wisdom to understand my path, the courage to do my duty, " \
"and the strength to remain peaceful amidst life's turmoil. Help me find inner balance " \
"and walk the path of righteousness with compassion and love.\"\n" \
"\nFrom the Torah (Judaism):\n" \
"\"Blessed are You, O Lord, our God, who grants us wisdom, and peace, and guides our steps. " \
"Protect us from harm, lead us towards justice, and grant us the strength to uphold Your commandments " \
"in all that we do. Amen.\"\n" \
"\nFrom the Dhammapada (Buddhism):\n" \
"\"May I walk the path of peace, free from anger, greed, and suffering. May I bring joy and healing " \
"to those around me. May I cultivate compassion and wisdom with every step I take.\"\n"
print(message)
print(prayer)
else:
print("It's not December, so no reminder or prayer.")
reminder_and_prayer()
4. .NET (C#):
using System;
class Program {
static void Main() {
// Get the current month
int currentMonth = DateTime.Now.Month;
// Check if it's December (month == 12)
if (currentMonth == 12) {
string message = "Reminder for Fernand Silfrede Ngassam Feukeu:\n" +
"Be careful in December. You have a high chance of going to prison.\n\n";
string prayer = "A Prayer for Guidance, Peace, and Protection:\n\n" +
"From the Bible (Christianity):\n" +
"\"Lord, guide me with Your wisdom, help me walk in Your light. " +
"Give me the strength to endure all trials and the courage to remain steadfast in faith. " +
"May Your peace fill my heart, and Your love be my shield. Amen.\"\n" +
"\nFrom the Quran (Islam):\n" +
"\"Allah, You are the Most Merciful and Most Compassionate. Grant me guidance, " +
"protect me from harm, and strengthen my heart to face the challenges that come. " +
"Lead me on the path of righteousness and fill me with peace. Ameen.\"\n" +
"\nFrom the Bhagavad Gita (Hinduism):\n" +
"\"O Divine Lord, grant me the wisdom to understand my path, the courage to do my duty, " +
"and the strength to remain peaceful amidst life's turmoil. Help me find inner balance " +
"and walk the path of righteousness with compassion and love.\"\n" +
"\nFrom the Torah (Judaism):\n" +
"\"Blessed are You, O Lord, our God, who grants us wisdom, and peace, and guides our steps. " +
"Protect us from harm, lead us towards justice, and grant us the strength to uphold Your commandments " +
"in all that we do. Amen.\"\n" +
"\nFrom the Dhammapada (Buddhism):\n" +
"\"May I walk the path of peace, free from anger, greed, and suffering. May I bring joy and healing " +
"to those around me. May I cultivate compassion and wisdom with every step I take.\"\n";
Console.WriteLine(message);
Console.WriteLine(prayer);
} else {
Console.WriteLine("It's not December, so no reminder or prayer.");
}
}
}
5. COBOL:
IDENTIFICATION DIVISION.
PROGRAM-ID. ReminderAndPrayer.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 CURRENT-MONTH PIC 99.
01 MESSAGE PIC X(100) VALUE "Reminder for Fernand Silfrede Ngassam Feukeu:".
01 PRAYER PIC X(1000) VALUE
"A Prayer for Guidance, Peace, and Protection:".
PROCEDURE DIVISION.
ACCEPT CURRENT-MONTH FROM DATE.
IF CURRENT-MONTH = 12
DISPLAY MESSAGE
DISPLAY "Be careful in December. You have a high chance of going to prison.".
DISPLAY PRAYER
DISPLAY "From the Bible (Christianity):".
DISPLAY "'Lord, guide me with Your wisdom, help me walk in Your light. Give me the strength "
DISPLAY "to endure all trials and the courage to remain steadfast in faith. May
Your peace fill my heart, and Your love be my shield. Amen.'". DISPLAY "From the Quran (Islam):". DISPLAY "'Allah, You are the Most Merciful and Most Compassionate. Grant me guidance, protect me from harm, and strengthen my heart to face the challenges that come. Lead me on the path of righteousness and fill me with peace. Ameen.'". DISPLAY "From the Bhagavad Gita (Hinduism):". DISPLAY "'O Divine Lord, grant me the wisdom to understand my path, the courage to do my duty, and the strength to remain peaceful amidst life's turmoil. Help me find inner balance and walk the path of righteousness with compassion and love.'". DISPLAY "From the Torah (Judaism):". DISPLAY "'Blessed are You, O Lord, our God, who grants us wisdom, and peace, and guides our steps. Protect us from harm, lead us towards justice, and grant us the strength to uphold Your commandments in all that we do. Amen.'". DISPLAY "From the Dhammapada (Buddhism):". DISPLAY "'May I walk the path of peace, free from anger, greed, and suffering. May I bring joy and healing to those around me. May I cultivate compassion and wisdom with every step I take.'". END-IF. STOP RUN.
These updated versions will automatically check if the current month is December, and if so, will display the reminder and prayer message for Fernand.
Comments