431 subscribers
154 photos
10 videos
25 files
66 links
For Any Information @TechnerdGuy
πŸ†˜ Pre-Engineering Students Struggling with C++? πŸ˜₯ Fear not! πŸ’ͺ This channel is your coding lifesaver! πŸš‘ Learn the basics, ace your course! πŸ’―
Download Telegram
πŸ‘1
1.
#include <iostream>
using namespace std;

int main() {
    int numb1, numb2;

    cout << "Please Enter Number 1:" << endl;
    cin >> numb1;
    cout << "Please Enter Number 2:" << endl;
    cin >> numb2;
    cout << "X + Y :" << numb1 + numb2 << endl;

    if (numb2 != 0) {
        cout << "X / Y :" << numb1 / numb2 << endl;
    }
    cout << "X * Y :" << numb1 * numb2 << endl;
    cout << "X - Y :" << numb1 - numb2 << endl;

    if (numb1 > numb2) {
        cout << "Number " << numb1 << " is Greater than Number " << numb2 << endl;
    } else if (numb1 < numb2) {
        cout << "Number " << numb1 << " is Greater than Number " << numb2 << endl;
    } else {
        cout << "They are equal" << endl;
    }
    return 0;
}
πŸ₯°5πŸ‘4
C++ Basics
Photo
2.
#include <iostream>

using namespace std;

const double PI = 3.14159265358979323846; 

int main() {
    double radius;
    double circumference;

    cout << "Please enter the radius: " << endl;
    cin >> radius;

    if (radius <= 0) {
        cout << "Radius must be a positive number." << endl;
        return 1;
    }

    circumference = 2 * PI * radius;

    cout << "The circumference of the circle is: " << circumference << endl;
    return 0;
}
πŸ‘2πŸ”₯2
3..
#include <iostream>
#include <cmath>
using namespace std;

int main() {
    double root1, root2;
    int a, b, c;
    double discriminant, square;

    cout << "Please Enter coefficient A:" << endl;
    cin >> a;
    cout << "Please Enter coefficient B:" << endl;
    cin >> b;
    cout << "Please Enter coefficient C:" << endl;
    cin >> c;

    cout << a << "x^2+" << b << "x+" << c << endl;

    if (a == 0) {
        cout << "Division by zero isn't possible" << endl;
        return 1;
    }

    discriminant= pow(b, 2) - (4 * a * c);
   
     if(discriminant>0){
     square =sqrt(discriminant);
    root1 = (-b + square) / (2 * a);
    root2 = (-b - square) / (2 * a);
    cout << "Root1 :"<<root1 << endl;
    cout << "Root2 :"<<root2<< endl;
    }else if(discriminant==0){
    square =sqrt(discriminant);
    root1=(-b)/(2*a);
    cout << "Root: " << root1<< endl;
    }else{
    cout << "The equation is complex number"<< endl;
    }

   
    return 0;
}
πŸ‘3πŸ”₯2
Challenge the challenge🫑
πŸ”₯8πŸ‘2
I'm planning to create a video explanation about flowcharts and algorithms to clarify everything. You can give me a question, and I'll explain it as clearly as possible. Btw, midexam lay maybe 5% mark yemeyezew about this topic nw...
πŸ”₯29πŸ‘3πŸ‘3❀1
C++ Basics pinned Β«I'm planning to create a video explanation about flowcharts and algorithms to clarify everything. You can give me a question, and I'll explain it as clearly as possible. Btw, midexam lay maybe 5% mark yemeyezew about this topic nw...Β»
problem solving with c++.pdf
5.9 MB
C++ Reference Book

#Advice

Use this book primarily to understand specific topics that aren't explained in the material, because this book is broad and takes time to read in its entirely. By focusing on what you need, it will be more helpful to you.

@ProgrammingWithFaith
@ProgrammingWithFaith
πŸ‘5πŸ”₯3
If you are not sacrificing something for what you love,you are sacrificing what you love.🫑
πŸ”₯8πŸ‘2
Forwarded from .
Input a string and count the vowels(a,e,I,o,u) . Algorithm,pseudocode and flowchart.please do me this .
.
Input a string and count the vowels(a,e,I,o,u) . Algorithm,pseudocode and flowchart.please do me this .
#include<iostream>
#include<string>
using namespace std;

int main()
{
    string name;
    cout << "Enter A text " << endl;
    getline(cin,name);
    int count=0;
    for(int i=0; i<name.length(); i++) {
        switch(name[i])
        {
        case 97:
        case 65:
            count++;
            break;

        case 101:
        case 69:
            count++;
            break;
        case 105:
        case 73:
            count++;
            break;
        case 111:
        case  79:
            count++;
            break;
        case 117:
        case 85:
            count++;
            break;
        }
    }
    if(count==0) {
        cout << "There is no vowels" << endl;
    }
    else {
        cout << "There are "<<count<<" vowels" << endl;
    }
    return 0;
}
πŸ‘5
.
Input a string and count the vowels(a,e,I,o,u) . Algorithm,pseudocode and flowchart.please do me this .
Flowchart ena pseudocode ke tinish seat bewal post adergewalew
πŸ‘6
C++ Basics
Flowchart ena pseudocode ke tinish seat bewal post adergewalew
I'll do it tomorrow zare ke exam sle wexaw my brain is not functioning well.πŸ™πŸ™
🀩6❀3πŸ™1
.
Input a string and count the vowels(a,e,I,o,u) . Algorithm,pseudocode and flowchart.please do me this .
Pseudocode



1.Start

2.Accept Input From user
  Input string

3.Convert String to Lowercase

lowercase_string = convert string to lowercase

4.Variable Initialization

   Vowel_count = 0
    i = 0

5.Loop through the string

WHILE i < length of lowercase_string:

current_char = lowercase_string[i]


IF current_char is 'a' OR current_char is 'e' OR current_char is 'i' OR current_char is 'o' OR current_char is 'u' THEN

Vowel_count = Vowel_count + 1

END IF
i = i + 1
END WHILE

6.Output the Result

Print "Number of vowels: ", Vowel_count

7.End
πŸ‘4πŸ₯°2πŸ”₯1
.
Input a string and count the vowels(a,e,I,o,u) . Algorithm,pseudocode and flowchart.please do me this .
Bexam sry sle koyewπŸ™πŸ™πŸ™πŸ™
🀝4
Life is fleeting if you die you'll be forgotten in a week. so live fully and pursue what you love.

@ProgrammingWithFaith
πŸ‘4πŸ”₯2
Hey, what's up? πŸ˜„

I'm really sorry πŸ™ I won't have notes ready for today's class because this week has been tough πŸ’ͺβ€”mid-term exams got me! πŸ“š I don't think we'll kick off chapter 3 today, but I'm going to whip up a quiz πŸ“ on chapters 1 and 2 to see how much you all understand! πŸ€”βœ¨

@ProgrammingWithFaith
πŸ”₯2
The quiz will cover last year's mid-term exam and some important concepts.

Should I prepare for it today?
πŸ‘10
🎲 Quiz 'C++ Basics chapter 1 & 2'
πŸ–Š 10 questions Β· ⏱ 1 min
πŸ‘1