Question: 1) Write a program that inputs two integers and outputs the larger of the two. 2) Write a program that inputs three integers and outputs

1) Write a program that inputs two integers and outputs the larger of the two.

2) Write a program that inputs three integers and outputs the smallest, the largest, the sum and the average.

3) 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!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!