1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Serggg [28]
3 years ago
12

Part of the following pseudocode is incompatible with the Java, Python, C, and C++ language Identify the problem. How would you

fix the problem if you were to translate theis pseudocode into one of the aforementioned languages?. Module checkEquality(Integer num1, Integer num2)
If num1 = num2 Then

Display *The values are equal.*

Else

Display *The values are Not equal.*

End if

End Module
Engineering
1 answer:
hammer [34]3 years ago
4 0

Answer:

The main problem is the incorrect use of assignment operator, the correct way to check if two number are equal is

num1==num2

Explanation:

Here we have a created a simple function which takes two input arguments num1 and num2. In the body of the function we have used if condition to find out whether the two number are equal or not. If condition is true then print that values are equal. If condition is false then print that values are not equal. In the driver code, we have called the function two times with different values of num1 and num2 to check if it is working correctly.

The implementation logic is same in all these programming languages, the only difference the syntax.

Python Code:

def checkEquality(num1, num2):

   if num1 == num2:

       print("The values are equal.")

   else:

       print("The values are not equal.")

Driver Code:

checkEquality(2,5)

checkEquality(3,3)

Output:

The values are not equal.

The values are equal.

C++ Code:

void checkEquality(int num1, int num2) {

   if (num1 == num2)

       cout<<"The values are equal."<<endl;

   else

       cout<<"The values are not equal."<<endl;

}

Driver Code:

#include <iostream>

using namespace std;

void checkEquality(int num1, int num2);

int main()

{

checkEquality(2,5);

checkEquality(3,3);

return 0;

}

Output:

The values are not equal.

The values are equal.

You might be interested in
How to engineering equation solving
Arada [10]

Answer:

engineering equaption solver ( EES) is a commercial software package used for solution of systems of simultaneous non-linear equation.

Explanation:

sana nakatulong

6 0
2 years ago
A team member who has been a good worker for many years has recently been doing poor work. You suspect that he may be tired of h
ohaa [14]

Answer:

You must follow the steps below to deal with employees who have poor performance. I hope that you will be able to handle all the issues after reading this answer.

Explanation:

Be specific with facts in hand

It is important to confront your employees about their respective actions. But to convince them about their withdrawal from lack of interest, it is imperative to have a consistent record at hand as well. For example, if the employee has been constantly delayed for a period of time, specify the precise details about the frequency and intensity of absenteeism. Be sure not to overdo your statements or use hard phrases to reduce employee self-esteem. Just be direct and precise. Reiterate the guidelines accordingly.

Consider the needs of your employees

Poor performance is not always the result of an employee's carelessness. There can be multiple genuine reasons for lack of performance and it can vary from person to person. The first is to understand the reason and judge whether they are genuine or not. Even if they aren't, don't let the other person know. Focus on your concerns and provide solutions accordingly. For example, if your employees cannot focus on their work due to some personal stress, make appointments for the counseling sessions and make sure they can get back on track.

Focus on feedback

Everyone handles comments differently. Although it is always recommended to be direct and clear in your communication, there may be certain strategies you can adopt to communicate your comments effectively. If your employee has difficulties in achieving his goals, work with him and provide him with all the necessary help to improve his performance. The best way is to provide weekly or monthly comments to your employees, so they know what they must do to achieve their goals.

Provide Performance Support Technology

When faced with existing employees who do not meet expectations, it is a smart decision to offer them training (and / or training) and different resources to help them improve. As an example, you can combine a low-performance worker with someone to act as a mentor or offer you a manual with the procedures to follow. In addition, there are performance improvement tools: WalkMe is a very valuable technology that can help a worker be more efficient and precise, within the workflow (and not take them away from their daily tasks).

Offer rewards and recognition

Whenever you see that your employees have poor performance, it is always better to adopt a carrot and stick approach for instant and consistent improvement. It is a combination of rewards and punishments that you can induce for the best and worst weekly or monthly performance. This has proven to be one of the best ways to combat low performance problems in companies of all kinds for centuries.

Facing low-performance workers for the first time may not be too encouraging for managers as well, but having an adequate system to deal with them is essential, especially during the performance of change management. It is always better to deal with such situations, instead of ignoring them, to maintain the consistency of productivity and profitability in the business.

8 0
3 years ago
What does abbreviation vom stand for
MrMuchimi
It’s Volt Ohm Meter!
8 0
2 years ago
Read 2 more answers
La iluminación de la superficie de un patio amplio es 1600 lx cuando el ángulo de elevación del sol 53°. Calcular la iluminación
gregori [183]

Answer:

 I = 1205.69 Lx

Explanation:

The irradiation or intensity of the solar radiation on the earth is maximum for the vertical fire, with a value I₀

          I = I₀ sin θ

in this case with the initial data we can calculate the initial irradiance

         I₀ = \frac{I}{sin  \ \theta }

         I₀ = 1600 /sin 53

         I₀ = 2003.42 lx

for when the angle is θ = 37º

         I = 2003.42 sin 37

         I = 1205.69 Lx

6 0
2 years ago
The Hoover Dam is 221 m tall and 379 m wide. Approximating it as a flat plate, determine the effective resultant force on the da
IrinaVladis [17]

Answer:

2165800 Pa

Explanation:

See it in the pic.

3 0
3 years ago
Other questions:
  • A 500-m^3 rigid tank is filled with saturated liquid-vapor mixture of water at 200 kPa. If 20% of the mass is liquid and the 80%
    11·1 answer
  • 8. Explain how a duo-servo brake assembly works to provide great braking ability.
    11·1 answer
  • 5. What are the 3 basic types of electrical circuits?
    12·1 answer
  • What are the weight restrictions for a small UAS, including everything onboard at the time
    12·1 answer
  • Part of the following pseudocode is incompatible with the Java, Python, C, and C++ language Identify the problem. How would you
    12·1 answer
  • Assume the triac of an AC discrete output module fails in the shorted state. How would this affect the device connected to this
    5·1 answer
  • Express the unsteady angular momentum equation in vector form for a control volume that has a constant moment of inertia I, no e
    9·1 answer
  • The map shows the distribution of dairy farms across the lower 48 of the United States. Each dot on the map represents approxima
    11·1 answer
  • The hypotenuse of a 45° right triangle is
    5·1 answer
  • Factors such as brake shoe orientation, pin location, and direction of rotation determine whether a particular brake shoe is con
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!