Ahmed wants to gift his friend. He has 82.300 OMR. He wants the following products: Sport suite with 15.700 OMR Sport shoes with 32.00 OMR Sport water bottle with 4.50 OMR Headphone with 8.25 OMR iPod with 9.88 OMR Write an algorithm to check whether he can buy all the above items. Display the total, and the remaining amount in OMR that Ahmed will have if any.
1. Create a flowchart that will accept two numbers. Determine and display which input number is greater.
2. San Miguel Company plans to give a year-end bonus to each of its employee. Consider the following
criteria.
A. If employee’s monthly salary is less than 10,000, the bonus is 2,000.
B. If employee’s monthly salary is greater than 10,000, the bonus is 50% of the salary.
Display the SALARY and BONUS of the employee.
Find Quick sort of this array step by step
5,3,9,5,4,1,5,6,5
two integers and initialize them to 199 and 76. Display the sum, difference, product, average, square, and remainder of the values.
Write an algorithm that displays a series of the Celsius temperatures 0 through a termination value and their Fahrenheit equivalents. The formula for converting a temperature from Celsius to Fahrenheit equivalents. The formula for converting a temperature from Celsius to Fahrenheit is
F = 9/5 C + 32
Where F is the Fahrenheit temperature and C is the Celsius temperature. Your algorithm must use a loop to display the series.
Sample Output of the program is given below.
Enter the highest Celsius temperature value: 5
Fahrenheit equivalent of 0 is 32
Fahrenheit equivalent of 1 is 33.8
Fahrenheit equivalent of 2 is 35.6
Fahrenheit equivalent of 3 is 37.4
Fahrenheit equivalent of 4 is 39.2
Fahrenheit equivalent of 5 is 41
A random variable X ~ bino(5, 0.3). g(x) is a continuous and differentiable function on the interval (0, 5).
a. Write down the cumulative distribution function F(x) for the random variable X.
b. g(x) is an approximation of F(x). Construct g(x).
X = [0.01, 0.36, 0.97, 0.44, 0.86, 0.49, 0.02, 0.19, 0.54, 0.63, 0.69, 0.27, 0.21, 0.55, 0.54, 0.1 , 0.02, 0.49 , 0.42, 0.79], is a list of 20 random numbers generated from a pseudo-random number generator G.
a. What is a uniformity test?
b. Using Chi-square Goodness-of-fit test with 4 bins, test whether X belongs to U(0, 1) based on 5% significant level.
c. Can we conclude G generates truly random numbers following the distribution U(0, 1)?
Given a multi-linear regression model: Y = 2X1- 3X2 + 1.5X3 - 0.5, and 10 data points.
Y X1 X2 X3
-------------------------------------------------------------------------------------------------
5 1 0 3
3 1 1 3
5 1 1 5
-1 1 3 5
5 2 0 1
0 2 2 1
3 2 3 5
4 3 1 1
0 3 3 3
6 5 2 1
a. Which parameter is the model sensitive to?
b. Evaluate R2
c. Evaluate adjusted R2
Convert -3.5 to binary notation in 8 bit floating format