Imgflip Logo Icon

the ching chong calculator detection system evader

the ching chong calculator detection system evader | #include <iostream>
#include <string>
#include <chrono>
#include <thread>

using namespace std;

int main() {
    string task;
    string operation;

    int timer = 0;
    int x = 0;
    int y = 0;
    int z = 0;
    int i = 0;
    int answer = 0;
    cout << "The CCCDSE(ching chong calculator detection system evader) aka the CCCDSES(ching chong calculator detection system evading system or evasion system) and the NCFSRA(Non-calculator for school related activities) or simply the NCTS(Non-calculator timer system)";
    cout << "What would you like to do?(calculator, or timer)\n";
    cin >> task;
    if (task == "timer" || task == "Timer") {
        cout << "For how long?\n";
        cin >> timer;
        if (!timer) {
            cout << "try a number, not a string\n";
        } else {
    for (i = timer; i > 0; --i) {
        cout << i << " seconds...\n";
        this_thread::sleep_for(chrono::seconds(1));
    }
    cout << "Wake tf up bro";
        }
    } else if (task == "calculator" || task == "Calculator") {   
        cout << "Which operation?(divide, multiply, add or subtract in lower case, and don't add strings into the numbers)\n";
        cin >> operation;
        if (operation == "divide") {
            cout << "First number\n";
            cin >> x;
            cout << "Second number\n";
            cin >> y;
            cout << "Third number(0 if you don't need one)\n";
            cin >> z;
            if ((y == 0 && z == 0) || (y == 0)) {
                cout << "You can't divide by 0, silly";
            } else if (z == 0) {
                z++;
            answer = x / y / z;
            cout << answer;
            }
        }
                if (operation == "multiply") {
            cout << "First number\n";
            cin >> x;
            cout << "Second number\n";
            cin >> y;
            cout << "Third number(0 if you don't need one)\n";
            cin >> z;
            if (z == 0) {
                z++;
            }
            answer = x * y * z;
            cout << answer;
        }
                if (operation == "add") {
            cout << "First number\n";
            cin >> x;
            cout << "Second number\n";
            cin >> y;
            cout << "Third number(0 if you don't need one)\n";
            cin >> z;
            answer = x + y + z;
            cout << answer;
        }
                if (operation == "subtract") {
            cout << "First number\n";
            cin >> x;
            cout << "Second number\n";
            cin >> y;
            cout << "Third number(0 if you don't need one)\n";
            cin >> z;
            answer = x - y - z;
            cout << answer;
        }
    } else {
        cout << "Invalid!";
    }
    return 0;
}; I PRESENT TO YOU: THE CCCDSE | made w/ Imgflip meme maker
34 views 1 upvote Made by Morpeko 1 week ago in MS_memer_group
5 Comments
0 ups, 1w,
1 reply
i cant read that lol
1 up, 1w,
1 reply
description
its c++
0 ups, 1w,
1 reply
yeah ik but the description just a giant block
0 ups, 1w,
1 reply
fine then
#include <iostream>
#include <string>
#include <chrono>
#include <thread>

using namespace std;

int main() {
string task;
string operation;

int timer = 0;
int x = 0;
int y = 0;
int z = 0;
int i = 0;
int answer = 0;
cout << "The CCCDSE(ching chong calculator detection system evader) aka the CCCDSES(ching chong calculator detection system evading system or evasion system) and the NCFSRA(Non-calculator for school related activities) or simply the NCTS(Non-calculator timer system)";
cout << "What would you like to do?(calculator, or timer)\n";
cin >> task;
if (task == "timer" || task == "Timer") {
cout << "For how long?\n";
cin >> timer;
if (!timer) {
cout << "try a number, not a string\n";
} else {
for (i = timer; i > 0; --i) {
cout << i << " seconds...\n";
this_thread::sleep_for(chrono::seconds(1));
}
cout << "Wake tf up bro";
}
} else if (task == "calculator" || task == "Calculator") {
cout << "Which operation?(divide, multiply, add or subtract in lower case, and don't add strings into the numbers)\n";
cin >> operation;
if (operation == "divide") {
cout << "First number\n";
cin >> x;
cout << "Second number\n";
cin >> y;
cout << "Third number(0 if you don't need one)\n";
cin >> z;
if ((y == 0 && z == 0) || (y == 0)) {
cout << "You can't divide by 0, silly";
} else if (z == 0) {
z++;
answer = x / y / z;
cout << answer;
}
}
if (operation == "multiply") {
cout << "First number\n";
cin >> x;
cout << "Second number\n";
cin >> y;
cout << "Third number(0 if you don't need one)\n";
cin >> z;
if (z == 0) {
z++;
}
answer = x * y * z;
cout << answer;
}
if (operation == "add") {
cout << "First number\n";
cin >> x;
cout << "Second number\n";
cin >> y;
cout << "Third number(0 if you don't need one)\n";
cin >> z;
answer = x + y + z;
cout << answer;
}
if (operation == "subtract") {
cout << "First number\n";
cin >> x;
0 ups, 1w
oh okay cool, so just a simple text based calculator then
Created with the Imgflip Meme Generator
IMAGE DESCRIPTION:
#include <iostream> #include <string> #include <chrono> #include <thread> using namespace std; int main() { string task; string operation; int timer = 0; int x = 0; int y = 0; int z = 0; int i = 0; int answer = 0; cout << "The CCCDSE(ching chong calculator detection system evader) aka the CCCDSES(ching chong calculator detection system evading system or evasion system) and the NCFSRA(Non-calculator for school related activities) or simply the NCTS(Non-calculator timer system)"; cout << "What would you like to do?(calculator, or timer)\n"; cin >> task; if (task == "timer" || task == "Timer") { cout << "For how long?\n"; cin >> timer; if (!timer) { cout << "try a number, not a string\n"; } else { for (i = timer; i > 0; --i) { cout << i << " seconds...\n"; this_thread::sleep_for(chrono::seconds(1)); } cout << "Wake tf up bro"; } } else if (task == "calculator" || task == "Calculator") { cout << "Which operation?(divide, multiply, add or subtract in lower case, and don't add strings into the numbers)\n"; cin >> operation; if (operation == "divide") { cout << "First number\n"; cin >> x; cout << "Second number\n"; cin >> y; cout << "Third number(0 if you don't need one)\n"; cin >> z; if ((y == 0 && z == 0) || (y == 0)) { cout << "You can't divide by 0, silly"; } else if (z == 0) { z++; answer = x / y / z; cout << answer; } } if (operation == "multiply") { cout << "First number\n"; cin >> x; cout << "Second number\n"; cin >> y; cout << "Third number(0 if you don't need one)\n"; cin >> z; if (z == 0) { z++; } answer = x * y * z; cout << answer; } if (operation == "add") { cout << "First number\n"; cin >> x; cout << "Second number\n"; cin >> y; cout << "Third number(0 if you don't need one)\n"; cin >> z; answer = x + y + z; cout << answer; } if (operation == "subtract") { cout << "First number\n"; cin >> x; cout << "Second number\n"; cin >> y; cout << "Third number(0 if you don't need one)\n"; cin >> z; answer = x - y - z; cout << answer; } } else { cout << "Invalid!"; } return 0; }; I PRESENT TO YOU: THE CCCDSE