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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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