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
Ke chapter one yalegebachu negr kale teykugn sayegebachu malef yelbenem next time kene mert ena chapter 2 enjemralen.
Thanks God! 204 subscribers – this is a huge success for me!.

@ProgrammingWithFaith
🔥7
👍6
Answer

#Question 1
👍7
C++ Basics
Photo
#2

#include <iostream>
#include <cmath>
using namespace std;
const double PI = 3.141592653589793;

int main() {
    double radius;
    double volume;

    cout << "Volume Sphere Calculator" << endl;
    cout << "Enter radius: ";
    cin >> radius;

    if (radius < 0) {
        cout << "Error: Radius cannot be negative." << endl;
        return 1;
    }

    volume = (4 * PI * pow(radius, 3)) / 3;
    cout << "The Volume Sphere is: " << volume << endl;
    return 0;
}
👍8🥰3
C++ Basics pinned «Should I make a voice explanation for this question?I would appreciate your thoughts?»
C++ Basics
Should I make a voice explanation for this question?I would appreciate your thoughts?
Esh I'll do it,lelam topic kale suggest adergugn bezaw esum lay arif explanation seralachewalew..........
🔥9
C++ Basics
Esh I'll do it,lelam topic kale suggest adergugn bezaw esum lay arif explanation seralachewalew..........
Nge bedeb prepare aderge post adergalew esk eza yalegebachu topic ena explanation endesra metfelguten topic suggest adergu.
👍10
Zare voice explanation seralew beye nebr gn I've got an urgent bezi week I've got mid exam ena zare I should read if begezi ke lab ke kewexaw maybe seralaw.
👍15
Explanation about Question 2
🥰4
C++ Basics
Answer #Question 1
Question number 1
👍6
Explanation about algorithm and flowchart question 1
🥰1
I tried my best to explain Every single thing but I am not good at this🤦‍♂🤦‍♂🤦‍♂
🥰3👍1
How helpful was the explanation? I'm frustrated, and  I want to  know your thoughts?
👌82
C++ Basics
Answer #Question 1
Bexam clear endehonelachu nw


Let's imagine we want to create a system to automatically calculate bonuses for employees. Here's how we can do it:

First, understanding the problem is key. We need to know what information we have (like employee data) and what we want to achieve (calculate bonuses).

In this case, we're creating a set of instructions (called an algorithm) to figure out the bonus amount for each employee.

What we know (Given):

•  We have information about our employees (like their name, overtime hours, and absences).
•  Our goal is to calculate the correct bonus amount for each employee.

What's an Algorithm?

An algorithm is simply a list of steps to solve a problem. Think of it like a recipe – it tells you exactly what to do to get a specific result.

Algorithms can be shown in different ways, like flowcharts (visual diagrams) or pseudocode (a simple, English-like way to describe the steps). We'll use pseudocode here.

Let's write the pseudocode (the step-by-step instructions):

Step 1: Start (This is just the beginning of our process)

Step 2: Get the Employee Information

We need to ask for or receive the following information for each employee:

•  Employee Name: The employee's full name
•  Overtime Hours: The number of hours the employee worked beyond their regular schedule.
•  Hours Absent: The number of hours the employee was absent from work.

Step 3: Calculate Effective Overtime

This is a special calculation that takes into account both overtime and absences. We use the following formula:

Effective Overtime (EO) = Overtime Hours - (Absent Hours / 3)

•  Why divide absent hours by 3? This means that for every 3 hours an employee is absent, it reduces their overtime bonus by 1 hour.

Step 4: Determine the Bonus Amount

Now we decide how much bonus to give based on the "Effective Overtime" we calculated:

•  If EO is greater than 50: The bonus is $50
•  If EO is greater than 30 BUT less than 50: The bonus is $30
•  Otherwise (if EO is 30 or less): The bonus is $0

Step 5: Show the Results

Display the following information to the user:

•  Employee Name: (e.g., "John Doe")
•  Bonus: (e.g., "$50")

Step 6: Stop (This is the end of our process)
👍3🔥31
I think it is clear.
👍4
🥱Good Night


C++ is hard
Coding is hard


Yes, everything will be hard at first, but it will become easy once you start learning it and put your time and effort into it!

Google, Microsoft, Apple was not built in a day, not even a month, and not even a year.

#coding
#C++
#JITCampus

@ProgrammingWithFaith
🔥9👍1