Write a python program where a function will telnet

Assignment Help Computer Engineering
Reference no: EM131894353

Assignment

Note: Provide optimized solutions in Python and discuss the approach used to solve the problems so that I can understand the approach when I walk through the code

1. A file contain 10 ip's of the different machine.

Write a python program where a function will telnet with this different machine and find the memory usage of a process in that machine.
funct(filename, process x)

2. Given a file (which can be considered as a String with comma delimiter for the complexity of the question) of usernames and a value k, find top k usernames (with number of logins) who logged into the system the most.

For example -

Input:

User (String) = user1, user4, user2, user1, user3, user1, user2, user3
k (int) = 2
Output:
user1 (3)
user2 (2)
user3 (2)

3. Write a Python Program to access a text file and determine the IP addresses that are available in the file :

Eg: Text File contents:

Akcnklasncklnaskckasc 192.168.1.1 asckjasscjasjkc

4. Write code to sum 2 integer but u cant use a+b method, you have to use either ++ or --. How you will handle negative numbers.

5. There are several words in a file. Get the occurrence of every word and sort it based on the occurrence, if more than one word is having same occurrence than sort it alphabetically. Solution Hint: Use Hash Map

6. given a string determine which character appears the most and the number of times that character appeared.

7. WAP fibonoccaci series using recursion and after completion asked to to write using iteration.

8. given 2 arrays wrds[] , chars[] as an input to a function such that
wrds[] = [ "abc" , "baa" , "caan" , "an" , "banc" ]
chars[] = [ "a" , "a" , "n" , "c" , "b"]

Function should return the longest word from words[] which can be constructed from the chars in chars[] array.
for above example - "caan" , "banc" should be returned

Note: Once a character in chars[] array is used, it cant be used again.
eg: words[] = [ "aat" ]
characters[] = [ "a" , "t" ]
then word "aat" can't be constructed, since we've only 1 "a" in chars[].

9. Imagine we have a large string like this "ABCBAHELLOHOWRACECARAREYOUIAMAIDOINGGOOD" which contains multiple palindromes within it, like ABCBA, RACECAR, ARA, IAMAI etc... Now write a method which will accept this large string and return the largest palindrome from this string. If there are two palindromes which are of same size, it would be sufficient to just return any one of them.'

10. Write code to search and return all those file names present in a given directory (for e.g. C:\>) where the string "Amazon" is present. All the files will be located at different folder levels. Also discuss your approach, time and space complexities for your solution.

Reference no: EM131894353

Questions Cloud

What are the state and federal objectives of punishment : How does sentencing affect the state and federal corrections systems overall? Support your answer.
What were the outcomes for each of the employees : What were the outcomes for each of the employees and companies in these two scenarios? Thinking about these outcomes, why is it important for organizations.
Effective in all leadership situation : Contingency models suggest that a manager who is effective in one situation is likely to be effective in all leadership situation?
Comapre funtions of state and federal organizational levels : Write a 1,400- -word paper in which you identify, compare, and contrast the policing function at the local, state, and federal organizational levels.
Write a python program where a function will telnet : Write a python program where a function will telnet with this different machine and find the memory usage of a process in that machine.
The net present value is equal to : The net present value is equal to. Investment proposals are mutually exclusive if acceptance of one forces the investor to accept the other.
Dominating the discussion of internet gambling : At a time when the U.S. government is desperate to generate revenues, would I make sense for policymakers to license, regulate, and tax Internet gambling?
Discuss the basic concepts of self-control theory : Explain what the advantages and disadvantages of using "mini theories" to explain specific crimes would be.
How many pieces of wood sold : Today, your carpentry shop must produce 324 chair railings where each railing is made from a single piece of fine wood. Your three step manufacturing process.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Advantages and disadvantages of end-user computing

Explain the advantages and disadvantages of the end-user computing and determine if this is an application which should be progressively pursued. Describe your rationale.

  Describe the optimal strategy for the offline algorithm

Describe the optimal strategy for the offline algorithm and show that it causes at most m + n/m page misses in total, starting from an empty cache.

  Explain the concept of an information system as if you

write an 800 word response to this questionexplain the concept of an information system as if you were teaching it to

  Describe the difference between tightly coupled and loosely

Describe the difference between tightly coupled and loosely coupled systems and give an example of the types of applications that can be run on each of the systems.

  Define web traffic must flow via organizations web proxy

A common management requirement is that "all external Web traffic must flow via the organization's Web proxy.

  Describes a function named insidecircle

Describes a function named insideCircle

  Problem related to the prevent thermal burn hazards

A spherical tank, with an inner diameter of 3 m, is filled with a solution undergoing an exothermic reaction that generates 233 W/m3 of heat and causes.

  Create list consisting of at least ten specific requirement

Create a list consisting of at least ten specific requirements for the network you are designing

  Explain the process of evaluating and selecting dbms product

Describe the process of evaluating and selecting the best DBMS product. List examples of the requirements and features you used and justify any assumptions you make.

  Create an excel spreadsheet that george can use

Create an Excel spreadsheet that George can use as a decision support tool to answer his questions. The spreadsheet should be designed such that George would be able to use the spreadsheet without any additional documentation

  Interview a person about a task he performs on his job

Based on the information you learned in Steps 1 and 2 of The Essential Guide to User Interface Design, interview a person about a task he/she performs on his/her job.

  Java program to declare an integer array and initializing it

Write down a complete Java program that declares an integer array, intArray, and initialize it to {1, 2, 3, 4, 5, 6, and 7}. The program must have the following methods:1) void displayOddPositions (). This method displays array elements in the odd..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd