Write a java program to print all even numbers between 1 to 100 - using while loop
Let f: R->R be defined by f(x)=x²+2 where R is the set of real numbers
(i) find the domain and range of f
(ii) is f one-to-one or onto ?
form the partial equation by eliminating the function f from z=f(y/x)
What is the probability that a market inspector will discover, at least, two violations of the
public health code?
In a beauty parlor, a customer sits halfway between two plane mirrors seperately by a distance of 2 m . Each mirror forms a series of images as a result of successive reflections from each mirror. The image formed by one mirror will be the object for the other mirror. Find the distances of the first and second images of the customer formed by each mirror.
A baseball player is running from the second base to the third base at 20ft/sec. At what rate is his
distance from the home plate changing when he is 30ft from the third base. The baseball diamond
is a square 90ft on aside.
myFormEl.addEventListener("submit", function() {
event.preventDefault();
if (nameEl.value != '' && passwordEl.value != '') {
resultErrMsgEl.innerText = 'Login Success';
} else {
resultErrMsgEl.innerText = 'Fill in the required details';
}
});
3 cases are not executed please help this is same format need
Write a program to calculate the bonus of the employee given the basic salary of the employee.
The bonus will be calculated based on the below category.
if Basic Salary-15000 and less than 20001 calculate bonus as 17% of basic+1500 if Basic Salary>10000 and less than 15001 calculate bonus as 15% of basic+1200 If Basic Salary<10001 calculate bonus as 12% of basic+1000 for rest calculate bonus as 8% of basic+500
Business rule:
1) If the salary given is a negative number, then print -1
2) if the salary given is more than 1000000, then print -2.
3) All the test cases has the calculated bonus as integer value only.
Create a class named UserProgramCode that has the following static method public static int calculateBonus(int input1) Create a class named Program that accepts the inputs and calls the static method present in the UserProgramCode.
1. Write a c# program contains “Car” as abstract class and an instance variable reg no, one concrete method openTank (), two abstract methods steering (int direction, int angle), braking (int force) and its implementation sub classes Tata, Mahindra which overlies above methods. Implement the above scenario and use all access specifiers
Ten cartoons are taken at random from an automatic filling machine. The mean net weight of the 10 cartoons is 11.8 kg and standard deviation is 0.15 kg. Does the sample mean differ significantly from the intend weight of 12 kg. Use 5% level of significance.