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.
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: 300
Note: Population limit will change at random intervals.
Answer:
Consider the following list:2 10 17 45 49 55 68 85 92 98 110Using the binary search, how many comparisons are required to determine whether the following items are in the list or not? Show the values of first, last, and middle and the number of comparisons after each iteration of the loop.
Create a class Node with
a. attributes data, next and previous pointer
b. accessors and mutators for this class
c. constructor and destructor
d. function called display.
1. insert a node at first ,
2. overload to Insert a node at last
3. overload to Insert at specified position of double linked list. E.g if the position number is 6, it is inserted between node at position 5 and 7. If position number is greater than the size of list, it is prompted that the position number does not exist and therefore is being inserted at end.
4. eliminate duplicates from doubly linked list
5. delete a node from first,
6. overload to delete a node from last
7. overload to delete at specified position of double linked list. E.g if the position number is 6, it is deleted from between node at position 5 and 7. If position number is greater than the size of list, it is prompted that the position number does not exist and therefore is being deleted from the end.
Create a class Node with
a. attributes data, next pointer
b. accessors and mutators
c. constructor and destructor
d. a function called display.
1. Write functions to perform the following operations
a. create a circular singly linked list to perform
i. insertion,
ii. deletion
iii. traversing
b. create a sub menu for merge operations of two circular linked list L1, L2
i. Press 1 to append L1 to L2.
ii. Press 2 to append L2 to L1.
iii. Press 3 to merge L1 and L2 in sorted order.
c. print odd nodes of a circular linked list to divide the circular linked list into two parts into odd and even list?
Give the infix expression of the following prefix expressions.
(A) * – + A B C D
(B) + – a * B C D
On the form, create a list box that will allow the user to select a contact name, which is populated from a text file. Also create a search button that when clicked will display the mobile number, work number and email address.
Create a sequential file (contacts.txt) that contains data for the following fields:
The contact name;
The contact mobile number;
The contact work number;
The contact email address.
Load the data from the contacts.txt file and populate the list box with the contact names. Include a feature to inform the user on the amount of contacts.
c++ full program that calculate the value of u. u=a+gv(squareRoot2), where g is constant
c++ full program that allows a lecture to add a semester mark final examination mark, the program must then compute to whether the student pass or not
In UG Boys Hostel Having 5 floors and each floor having 15 rooms. Consider you have to allocate the hostel room for students of IT department using hashing techniques (Students RollNo as Key). For only final year, one student per room and all other rooms are shareable at the maximum of three students per room. You may to use any strategy but must implement the separate chaining and Linear probing techniques in your solution.
Create a flowchart that display hello world a number of times