Find latitude and longitude of first 20 countries with a population greater than or equal to the population limit given below. Use the country details from this dataset(https://cdn.jsdelivr.net/gh/apilayer/restcountries@3dc0fb110cd97bce9ddf27b3e8e1f7fbe115dc3c/src/main/resources/countriesV2.json).
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: 28875
Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit
Difine the following terminology
Information architecture
Website
Webpage
Domain nam
Ip address
int main( ) {
double radius;
const double PI= 3.15169;
double area = radius * radius * PI;
cout<<"Area is " << area;
return 0:
}
Let us consider you are going to be create a AVL tree by inserting one by one up to 15 nodes with the help of Random number generation function. At each node, after insertion you should maintain the tree as balanced one. Sketch the Avl tree from the first node insertion to last 15th node insertion step by step. Then you have start to delete operation with 5th,10th and 15th input of inserted node. You have to follow the given details mentioned below for node input.
Sl.No
Student’s Roll Number
Range of Input
Insertion
Deletion
1
201IT101 - 201IT117
1 - 75
Totally 15 randomized numbers from the Specified range
Delete the 5th , 10th and 15th randomized input number when inserted.
2
201IT118 - 201IT134
76 - 150
3
201IT135 - 201IT151
151 - 225
4
201IT152 - 201IT168
226 - 300
5
201IT169 - 201IT216
301 - 375
6
201IT218 - 201IT234
376 - 450
7
201IT235 - 201IT251
451 - 525
8
201IT252 - 201IT269
526 – 600
out of 2 testcases, only 1 testcase is getting fail where its loged in console as NAN. The formula to calculate the final value with appreciation is, finalValue = principal * (1 + time * appreciation / 100).
Input
The first line of input contains a number principal
The second line (optional) of input contains a number time
The third line (optional) of input contains a number apprPercentage
Output
The output should be a single line containing the finalValue
Final Value with Appreciation:
Given principal amount
principal as an input, time period in years time and appreciation percentage apprPercentage as optional inputs, write a JS function to return the final value finalValue with the given appreciation percentage and time period. The default values for time and apprPercentage are 2 and 5 respectively.
Input
1)2000
Expected
2200
Make a program that will accept an integer and loop from 1 to that integer. Then, print all numbers from that range that are greater than 3.
Given an integer number N as input,write a program to print the right angled triangular pattern of N lines..
Note:There is space after each asterisk (*) character.
do the hand tracing with any value to find the area
Accept the two sides and an angle included by these two sides, and find the area and third side of a triangle.
(1) Display "Enter two sides and an angle:"
(2) Accept a, b,theta
(3) ang = theta * 3.14 / 180;
(4) third_side = sqrt (a*a + b*b - 2*a*b* cos(ang))
(5) area = ½*a*b* sin(ang)
(6) Display "Third_side =",third_side,"Area =", area
(7) Exit
Write a program to create an expression tree for a given PREFIX expression and traverse the tree to check the correctness of the prefix expression.
The characters don’t need to be in particular order. For example, the characters [“y”, “r”, “o”, “u”] are needed to form the words [“your”, “you”, “or”, “yo”] Note: the input words won’t contain any spaces; however, they might contain punctuation and/or special characters. Sample Input words = ["this", "that", "did", "deed", "them!", "a"] Sample Output ["t", "t", "h", "i", "s", "a", "d", "d", "e", "e", "m", "!"] Solution Instruction ● You can submit your solution in the programming language of your choice. Y