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

  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"

  Design interactive program using prewritten methods

Design an interactive program that does the following, using the prewritten methods whenever they are appropriate. Prompt the user for and read a library card number, which must be between 1000 and 9999.

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Program to compute person-s body mass index

Write a program to compute person's body mass index? Create a modular program which calculates and display person's body mass index (BMI).

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a multi-threaded competition

Create a multi-threaded competition

  Application to print the sum of cubes

Write down the application to print the sum of cubes. Prompt for and read two integer values and print sum of each value raised to third power.

  Creating main function that opens the input file

Create a main function that opens the input file, reads each line, and based on first character in input line, calls the [A]dd function or [M]ultiply function.

  Defining method dashedline with one parameter

Write a definition of method dashedLine, with one parameter, an int .

  Program to create professor rating class

Write down program to create Professor Rating class comprising of professor ID and three ratings. Three ratings are utilized to estimate easiness.

  Program to inputs four numbers and graphs them as pie chart

Write down a program which inputs four numbers and graphs them as pie chart.

  Program to compute unit price of items sold

Manager of a Supermarket would like to be able to calculate the unit price of items sold there. To do this the program should input the name and the price of the item.

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