A company wants to transmit data over the telephone, but they are concerned that their phones may be tapped. All of 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 trans- mitted more securely. Your script should read a four-digit integer entered by the user in a prompt dialog and encrypt it as follows: Replace each digit by (the sum of that digit plus 7) modulus 10. Then swap the first digit with the third, and swap the second digit with the fourth. Then output HTML text that displays the encrypted integer. Write a separate program that inputs an encrypted four- digit integer and decrypts it to form the original number.

What will be an ideal response?


```

1

2

3

4

5

6 Solution 14.27a

7

8

26

27

28

29

30
Click Refresh (or Reload) to run this script again.

31

32

```



Computer Science & Information Technology

You might also like to view...

To remove a text-shadow, set the value of the text-shadow style to ____.

A. 0 B. none C. 1 D. empty

Computer Science & Information Technology

A______network does not require a NOS

a. client-server b. peer-to-peer c. cloud 7.What provides information about a file such as its author, the date the file was last changed, and any descriptive tags? a. index b. properties c. extension 8.Whatis the process of making files smaller to conserve disk space and make the files easier to transfer? a. algorithm b. buffer c. compression 9.What contains information about the files located on your computer? a. index b. Command-line interface c. File Explorer 10.Which cloud storage system is included with OS X? a. iCloud b. Dropbox c. OneDrive

Computer Science & Information Technology

One purpose of a database is to store data so that information can be obtained easily by asking questions

Indicate whether the statement is true or false

Computer Science & Information Technology

Match the chart Design tab options to their meanings:

I. Moving a Chart A. Preview the chart in Backstage view before you do this to check margins, spacing, and page breaks to ensure balance II. Printing Charts B. If you do this you must decide if you want to print the data only, the data and the chart, or the chart only III. Print an Embedded Chart C. If moved the chart is the only item on that worksheet. The chart will print as a full-page chart. You can change the setting to Print Entire Workbook IV. Chart1, Chart2... D. Can and should be changed to be more descriptive V. Print a Chart Sheet E. Excel creates charts on the same worksheet as the original data set, but you can put the chart on its own chart sheet

Computer Science & Information Technology