Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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.

  • Assume radius of earth: 6371 km
  • Round length of each line and final result to 2 decimal points
  • If co-ordinates are missing for any country use 0.000 N 0.000 E

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:  

  • double area(): calculates and returns the area of a triangle. 
  • double perimeter(): calculates and returns the perimeter of a triangle.   

Create a public abstract class Isosceles that implements Triangle and implements following method: 

  • double perimeter(): calculates and returns the perimeter of a triangle 
  • add fields as private double longside, equalSide. Use getter() and setter() methods to access them.  

Create a public interface Right that extends Triangle, add one more method signature:  

  • double[] angles(): returns an array of measures of three interior angles.  

 

Create a public class RightIsosceles that extends Isosceles and implements interface Right:  

  • double area(): calculates and returns the area of a triangle.  
  • double[] angles(): returns an array of measures of three interior angles fields: longside, equalSide.  

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.  

  • Use public methods setRadius() and getRadius() to access radius of the circle. setRadius() method throws an IllegalArgumentException if the argument radius is negative. 
  • Add a constructor to pass on radius of a Circle. Call setRadius() method to set the radius of circle inside the constructor. 
  • Use printRadius( ) to display the radius if object is created. 
  • Use printStackTrace() and getMessage() methods to obtain information from exception objects in corresponding catch block. 
  • Create three objects of class CirclesWithException with positive, negative and zero radius. 

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: 

  1. Using try-catch-finally block 
  2. By throwing it up the call stack to the caller method. 

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.

LATEST TUTORIALS
APPROVED BY CLIENTS