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

Make a program that will accept an integer and loop for the same number of times as that of the inputted integer and input random integers and add it to the array/list one by one, per line. Afterwards, make your program accept another random integer.


Using that final integer, compare from your array/list if the final integer's value is also present in your current array/list. If so, print "Present"; otherwise, print "None".




Start coding now!


Input


The first line contains the size of the array/list.

The next lines contain the integers.

The last line contains an integer to be searched.


5

3

21

2

5

23

2

Output


A line containing a string.


Present


Groupings

by CodeChum Admin

Did you know that you can also reverse lists and group them according to your liking with proper code? Let's try it to believe it.


Instructions:

  1. Create a variable that accepts a positive odd integer.
  2. Create an empty list. Then, using loops, add random integer values into the list one by one. The number of values to be stored is dependent on the inputted odd integer on the first instruction.
  3. Reverse the order of the list. Then, print out the list's new order in this manner:
  4. [first-half values]-[middle value]-[second-half values], just like that of the sample output. Make use of list slicing that you’ve learned from the past lessons to easily achieve this segment.

Input

The first line contains an odd positive integer.

The next lines contains an integer.

5
1
3
4
5
2

Output

A line containing a list without space.

[2,5]-[4]-[3,1]




Make a program that will accept an integer and loop for the same number of times as that of the inputted integer and input random integers and add it to the array/list one by one, per line. Afterwards, make your program accept another random integer.

Using that final integer, compare from your array/list if the final integer's value is also present in your current array/list. If so, print "Present"; otherwise, print "None".


Start coding now!


Input

The first line contains the size of the array/list.

The next lines contain the integers.

The last line contains an integer to be searched.

5
3
21
2
5
23
2

Output

A line containing a string.

Present

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

1.     Write a PL/SQL code to print all tables up to a number fetched from a table using implicit cursors.


1. Write a PL/SQL code to print all tables up to a number fetched from a table using implicit cursors.


Formulate a shortest path algorithm and find the shortest paths from two vertices

(i) V0 and

(ii)𝑉3 to the rest of the vertices in the following graph using Dijkstra’s single source

shortest path Algorithm.



Make a function that accepts 2 numbers. It will then print a X number of row of *, and Y number of column of *, based on the numbers we input.


Make a function that takes 2 integer and lists out all the numbers from the 1st number until the 2nd number


Start with the publication, book and tape classes. Add base class sales that holds an


array of three floats so that it can record the dollar sales of a particular publication for


the last three months. Include a getdata() function to get three sale amount from the


user and a putdata() function to display the sales figure.


Alter the book and tape classes, so they are derived from both publication and sales.


An object of book or tape should should input and output ans sales data along with


other data.


Write a main function to create a book and tape object and exercise their input/output


capabilities.

LATEST TUTORIALS
APPROVED BY CLIENTS