Write a Java program that prompts the user to enter thier gender ( Female/ male) and day of the week ( Monday to Sunday). If you enter Monday, or Tuesday, or Wednesday or Thursday it should read "Hello sir, enjoy your day" or "Hello mam enjoy your day". But when entered Friday, or Saturday, or Sunday it should read "Hello sir enjoy your weekend" or "Hello mam enjoy your weekend "
For what values of h the vectors
⟶ ⟶ ⟶
u1 = [1, -3, -2] u2 = [-1, 9, -6] u3 = [5, -7, h]
are linearly independent? (Show all working)
Note: The three vectors are supposed to be in a 3x1 matrix(3 rows and 1 column)
Dry air can support a maximum electric field strength of about 10 x 10^6 V/m. The field creates enough ionization in the air to make the air a conductor. what is the the voltage between two parallel conducting separated by 2.5 cm of dry air
Median
given a list of integers,write a program to print the median.
input
the input will be a single line of containing space-separated integers.
output
the second line of output should contain the median, round off the value to 2 decimal places.
median should be a float value when there are even number of elements, otherwise should be an integer value.
see sample input/output for the output format
explanation
for example, if the given list of integers are
2 4 5 6 7 8 2 4 5 2 3 8
the average of all the numbers is 4.67.
after sorting the array,
2 2 2 3 4 4 5 6 7 8 8
as the length of the list is an even number, the median will be the average of the two middle numbers in the sorted list.
the middle numbers will be 5 and 4. so the average of 5 and 4 will be median, which is 4.5
so the output should be
Median: 4.5
sample input 1
2 4 5 6 7 8 2 4 5 2 3 8
sample output 1
Median: 4.5
The temperature of an ideal gas remains constant while the absolute pressure changes from 100 kpa to 800 kpa. If initial volume is 100 liters, what is the final volume in liters
The temperature of an ideal gas remains constant while the absolute pressure changes from 100 kpa to 800 kpa. If initial volume is 100 liters, what is the final volume in liters
A group of students got the following scores in a test 2,4,6,8, and 10. Consider samples of size 3 that can be drawn from this population. Find the following population mean,variance, and standard deviation
The length of stay of patients at a certain hospital in Cavite is 3 days with a standard deviation of 1.5 days. If a patient is selected at random, what is the probability that he/she will stay in the hospital between 3 and 7 days?
If df is a DataFrame that includes a column 'x', what is NOT a way to add a new column 'y', using a function 'f' that applies a transformation?
Select an answer:
State whether the following statement is true or false and give reason for support your answer
(1) standard deviation of a random variable X, may be any real number lies interval of-infinity, infinity