Question: 7. Write a method that will accept a grade total and the number of grades as integers. t should calculate the average of the grades
7. Write a method that will accept a grade total and the number of grades as integers. t should calculate the average of the grades as a double, and return the average. (10) 8. A company would like to encrypt a token that it uses to identify data. The token is a four digit integer. The encryption method is as follows- replace each digit with the result of adding 7 to the digit and getting the remainder by dividing the resulting value by 10 Write a method that will return the answer as a new four digit integer. Now, write a method that will DECRYPT the integer token you just created back to your original four digit integer. Points will be awarded for the correct algorithm as well as the correct method. (20)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
