Two charges lie on positive x-axis. Charge A (2.0 x 10-9 C) is 2.0 cm from the origin and Charge B is 4.0 cm from the origin. (-3.0 x 10-9 C). What is the total force exerted by these two charges on Charge C (5.0 x 10-9 C) located at the origin?
Write a c++ program listing courses offered in school
Write a python function Find_Status(A) (Refer RollNo_W8A_3.py ) which takes a list of person’s age as input return a list containing person life status whether they will remain alive or not based in above conditions.
A turbine operates under steady flow conditions, receiving steam at the following state: Pressure
1.5 MPa, temperature 185 degree C, enthalpy 2785 kJ/kg, velocity 33.3 m/s and elevation 3 m.
The steam leaves the turbine at the following state: Pressure 22 kPa, enthalpy 2512 kJ/kg, velocity
100 m/s, and elevation 0 m. Heat is lost to the surroundings at the rate of 0.29 kJ/s. If the rate of
steam flow through the turbine is 0.42 kg/s, what is the power output of the turbine in kW?
Create a simple calculator application in Java which will perform four basic
arithmetic operations (plus, minus, multiplication and division) on a pair of
numbers (input from user) from 0 – 9, except division by zero. It means, this
program will perform arithmetic operations between single digits only, but the
result can be more than one digit and in decimals, obviously. Sample output is
given below:
Enter first number between 0 and 9: 6
Enter second number between 0 and 9: 4
Applying arithmetic operations:
Adding 6 and 4 results = 10
Subtracting 4 from 6 results = 2
Multiplying 6 with 4 results = 24
Dividing 6 by 4 results = 1.5
You are given number stored in variable with the name number multiply the number stored in the variable by 50 and print the result obtained.
INPUT is the first and the only line of the input contains the number stored in the variable
Constraints 1<=N=> 20
Use a one-dimensional array to solve the following problem. Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, validate it and store it in the array
only if it isn’t a duplicate of a number already read. After reading all the values, display only the unique values that the user entered.
Create a class called Complex to represents complex numbers. Complex class contains following members
1. Two private float data members such as real and imag.
2. Two public member function such as read() to read input for complex numbers from user and print() to print the complex numbers(refer sample output for output format).
3. Two operator functions:
First operator function(it should be friend) is overloading the binary operator + to add and return two complex objects.
Second operator function is overloading the greater than operator(>) to check whether object1 is greater than object2. If object1 is greater than object2, then return true otherwise return false.
list of lists that has the first number as the same number given in the input list and the second number be the square of the first number.
When will the ‘while’ loop be preferred over the for loop? Mention the scenario and write the
programme to demonstrate this.