Note: Set numpy random seed value 100
• Define a random 3-D array x2 of shape (x, y, z) and of numbers between 0 and 1
• Print the value of x2
✓ Sample Case
Sample Input For Custom Testing
3 4 2
Sample Output
[[[0.00568851 0.25242635]
0.01525497]
[0.79566251 [0.59884338 0.60380454]
[0.10514769 0.38194344]]
[[0.03647606
0.89041156]
[0.98092086 8.05994199]
[0.89054594
0.5769015 ]
[0.74247969 0.63018394]]
[[0.58184219
0.02043913]
[8.21002658
0.54468488]
[0.76911517 0.25069523]
[0.28589569
0.85239509]]]
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Population limit: 510713
Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.
Pick One More SMS of your choice from your mobile. Write the SMS as it is and also write a Print Statement to generate that SMS.
Your answer should contain 2 parts:
1. Text of any SMS from your mobile
2. Print Statement to generate that SMS
A customer received the following SMS:
Avl Bal for A/c XXXX3507 as on 01-AUG-2021 06:11:48 is INR 1446.28. Combined Avl Bal is INR 1446.28. Use MB App to track A/c-Kotak Bank
Write a Print Statement to generate the above SMS. (You may refer to the example given at the top.)
Create a program that will accept the evaluation score of a faculty and determine its equivalent remarks. Print the name of the faculty and the remarks obtained. Remarks are based on the following criteria:
Score Remarks
4.50 – 5.00 Outstanding
4.00 – 4.49 Very Satisfactory
3.50 – 3.99 Satisfactory
3.00 – 3.49 Poor
2.99 below Out-of-Range
Convert the following
1. 1010101110 (Convert to Decimal, Hexadecimal, and Octal)
2. 719 (Convert to Hexadecimal, Octal, and Binary)
3. 634 (Convert to Hexadecimal, Binary, and Decimal)
4. 61E (Convert to Binary, Decimal, and Octal)
Create a public interface Triangle, add the following method signatures:
Create a public abstract class Isosceles that implements Triangle and implements following method:
Create a public interface Right that extends Triangle, add one more method signature:
Create a public class RightIsosceles that extends Isosceles and implements interface Right:
Create the object of class RightIsosceles and print area, perimeter and angles of RightIsosceles triangle.
Write a program to create a class CirclesWithException with the following information:
radius in double with private access specifier.
Write a program that uses java.io.BufferReader to read the lines from the text file that is stored on disk. Handle the exceptions with following two ways:
Write a function Lagrange_interp which implements Lagrange interpolation to find data at an intermediate data point. Note: The degree of the polynomial will not be known to you unless the problem statement is given. The function should be able to deal with N data points. You can either use dynamic memory allocation for data storage in arrays or in a simpler approach, you may declare the array sizes as a large value.