Use the findpos and findaltchar function in encrypt function

Assignment Help Computer Engineering
Reference no: EM132198991

Write a function called encrypt (A, P, Off) where A is an alphabet string, P is a string to be encrypted and Off is the offset.

A new string new P is returned where each character of new P is represented by the character that is Off positions after the character in P (wrapped around to the start if the offset takes it beyond the end of the string).

Use the findpos and findaltchar functions in the encrypt function. Call the encrypt function from the main program and also print the encrypted phrase.

For example, given the alphabet above, an offset of 5 and the phrase hello world, the program should output.

Reference no: EM132198991

Questions Cloud

Perfect competition or monopolistic competition : In which market would you expect firms to advertise the most, perfect competition or monopolistic competition. Clearly explain your answer.
Describe what additional actions the fed would need to take : Use supply-and-demand graphs of the federal funds market to analyze the following situation: Suppose that the equilibrium federal funds rate is equal.
Maintain a fixed exchange rate : Discuss the conditions under which fixed exchange may prove superior to flexible exchange rate.
Explain why acme hospital produces at a higher cost : Suppose that you are interested in comparing the costs of producing inpatient services at Saving Grace Hospital with those at ACME Hospital.
Use the findpos and findaltchar function in encrypt function : Write a function called encrypt (A, P, Off) where A is an alphabet string, P is a string to be encrypted and Off is the offset.
What are the monopoly profits on the vaccine : What price would a profit maximising monopolist charge for a vaccine? What are the monopoly profits on the vaccine? What is the efficient outcome.
Brief synopsis of the differences between private : Provide a brief synopsis of the differences between private, common, and public goods, and the value of this difference to the economy.
What types of concerns require the largest emphasis : Describe your company’s efforts in the area of federal compliance. What types of concerns require the largest emphasis?
Decision making within an organization : Briefly discuss a government policy that affects the decision making within an organization

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