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. 

    • 12 years ago
    Complete A++ Solution
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      answer.html