Write a script that reads a four digit integer entered by the user in a prompt dialog

profileThehonest
 (Not rated)
 (Not rated)
Chat

Individual Project 4

Write a script that reads 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 fourth, and swap the second digit with the third. Then output HTML5 text that displays the encrypted integer.

 

 

    • 10 years ago
    A+ Work
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      qay67yyr.doc