Write an encryption and decryption program

Assignment Help Computer Engineering
Reference no: EM132198038

Write an encryption and decryption program. Encrypt each digit by adding 7 and taking the remainder after division by 10.

After encrypting each digit, swap the first and third then swap the second and fourth.

Decryption should reverse the process. Program must input a single integer. Program must do encode and decode in one file.

Example Program Session (yours must look like this):

Encode (1) Decode (2): 1

Enter a four digit number: 1234

Encoded Digits: 0189

Continue (1) Exit (0): 1

Encode (1) Decode (2): 2

Enter a four digit number: 0189

Decoded Digits: 1234

Continue (1) Exit (0): 0

NOTE: Using Microsoft Visual Studio Compiler so it must be on that!

NOTE: please upload only the screenshots of the code in MSVS

Reference no: EM132198038

Questions Cloud

Determine if any of the circles overlap the triangle : Write an error-free Java program to do the following things. The program is modeled on a simple game where shapes move around the screen.
Weight change for each subject was recorded : Each of the 10 programs had 50 subjects in it. The subjects were followed for 12 months. Weight change for each subject was recorded.
Obtain the marshallian demand functions for goods : Obtain the Marshallian demand functions for goods X and Y. Compute the indirect utility function and the expenditure function for this case.
Display the left justified output on two seven segment : Display the left justified output on two seven segment displays, connected to the PORTC and PORTD of PIC 18.
Write an encryption and decryption program : Write an encryption and decryption program. Encrypt each digit by adding 7 and taking the remainder after division by 10.
What would a set of indifference curves for michelle : What would a set of indifference curves for Michelle and a set of indifference curves for Barack look like? Draw separate graphs for Michelle and Barack.
Write the definition of a function square : Write the definition of a function square, which receives an integer parameter and returns the square of the value of the parameter .
Write a description of the four phases of the sdlc : Write a description of the four phases of the SDLC. Include each phase and how they build off of each other.
Write paragraph to explain results in a scholarly journal : Many studies have confirmed that in the population, the flu lasts 21 days on average with a standard deviation of 7. The manufacturers of Tamiflu want.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write assembly language program to accomplish drive the leds

The PIC18F4321 microcontroller is required to drive the LEDs connected to bit 0 of Ports A and B based on the input conditions set by switches connected.

  Which of following statements is true

Which of following statements is true

  In which organization does not acquire hardware or software

One of the arguments against using a performance-based work statement is that it is likely to limit competition because more firms will not be qualified to compete.

  Show how the computer would add two floating-point numbers

Show how the computer would add the two floating-point numbers in part a by changing one of the numbers so they are both expressed using the same power of 2.

  Linked list based linear search algorithm

Write down an algorithm or the code segment for searching a circular linked list for a given item. Write down a recursive version of the linked list based linear search algorithm.

  A new business for a new environment the geek squad gives

a new business for a new environment. the geek squad provides help for all computing needs and is impacted by the

  Calculate the period of dac output waveform and plot it

Write a C program for a PIC-18 micro controller system with a 32-MHz oscillator to implement an 8 KHz interrupt.

  Write verilog testbench for universal shift register module

Write a Verilog testbench for Universal Shift Register module. The testbench will instantiate the USR, redefining its parameter to N = 4, generate a clock signal, and apply a stimulus sequence to the USR inputs.

  Questionthis is website to read rfc document

questionthis is website to read rfc document httptools.ietf.org.html.rfc1994your assignment is to read rfc and in less

  Write a program to compute the determinant of matrix a

SMQ1024 PROGRAMMING IN MATHEMATICS ASSIGNMENT. Write a program to solve the following questions: Compute the determinant of matrix A. Compute elements of vector X

  Create a dialog example for at least 3 principles

Create two scenarios, such as an attacker impersonating a help desk employee who wants access to an employee's protected information.

  Questionsstudy any two multicore processor architecture and

questionsstudy any two multicore processor architecture and discuss the following features briefly.a bus architectureb

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