Program to inputs encrypted four-digit integer

Assignment Help Programming Languages
Reference no: EM1351463

Q1) A company wants to transmit data over the telephone lines, but they are concerned that their phones may be tapped. All their data is transmitted as four-digit integers. They have asked you to write a program that will encrypt their data so that it may be transmitted more securely. Your program should read a four-digit integer and encrypt as follows: Replace each digit by the remainder after the sum of that digit plus 7 is divided by 10. Then swap the first digit with the third, and swap the second digit with the fourth. Then print the encrypted integer. Write a separate program that inputs an encrypted four-digit integer and decrypts it to form the original number. thanks in advance for ur help.

Reference no: EM1351463

Questions Cloud

Discuss what a manufacturer of each product might : Discuss what a manufacturer of each product might do in the short run to increase production. Illustrate how does the long run differ for these products.
Estimatation of stocks current intrinsic value : WWW Servers just paid a dividend of $1. Analysts expect the firm's dividend to grow by 30% this year, by 10% in Year 2, and at a constant rate of 5% in Year 3 and thereafter.
Evaluate perfect information : Needs to read in Net present Value. Company needs to know whether to build the factory based on a pay off table
Explain benefits of responding to new information : Explain which of the following represents an attempt to balance the benefits of stability against the benefits of responding to new information
Program to inputs encrypted four-digit integer : Write separate program to inputs encrypted four-digit integer and decrypts it to form the original number. thanks in advance for ur help.
What is the average force exerted on the ball by the wall : A 80 g, 33-{rm cm}-long rod hangs vertically on a frictionless, horizontal axle passing by its center. A 11 g ball of clay traveling horizontally at 2.5 m/s hits and sticks to the very bottom tip of the rod.
Sample code of conduct for a brewery company : Sample code of conduct for a Brewery Company - Business is a beer brewery and distributor.
Characteristics of high-performance workplaces : Characteristics of high-performance workplaces - Defined business goals and objectives
Illustrate what is maximum profit the monopolist can earn : Suppose that the Indian government reduces its deficit and returns to a balanced budget. If other thing remian the same, how will the demand or supply of loanable funds in India change.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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