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

  Program to enter answer to a math problem

Write a program which ask student to enter an answer to a math problem. The user must enter two values, one at time, and then ask for answer.

  Program has function named presentvalue for calculations

Write a program that has a function named presentValue that performs this calculation. The function should accept the future value, annual interest rate, and number of years as arguments.

  Determining smallest possible number people in parade

Group of people are arranging themselves for parade. Determine the smallest possible number people?

  Statement to read variables of type double

Suppose two variables p1 and p2 of type POINT, with two fields, x and y, both of type double, have been declared. Write a statement that reads values for p1 and p2 in that order.

  Application development and programming languages

Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of:

  Create a credit approval application for retail store

You have been asked to create a credit approval application for retail store. To get approved for credit card customer must meet the following criteria: Should be 18 years of age or older

  Building airline reservation system

Problem Description The aim of this project is to build airline reservation system. System must give two basic sets of services to an airline: First set of services allows the airline to provision its system.

  Program to enter up to 20 integers in the array of long

Write down a program which asks user in order to enter up to 20 integers in the array of longs.The program must utilize the function Find_It() in order to situate the integer within the array.

  Explaining class with no constructors

How many constructors can a class have? Can you have a class with no constructors? If a class has more than one constructor, which of them gets called?

  Create visual basic windows application

Create Visual Basic Windows application. Use following names for solution and project, respectively: Raise Solution and Raise Project.

  Definition of function quadratic receives double parameters

Write down definition of function named quadratic which receives 3 double parameters a , b , c . If value of a is 0 then function prints the message "no solution for a=0"

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

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