biggest problem I have with this program is that I dont know the syntax to use for the assignment. The book says to have the user enter a four-digit number and replace EACH digit with the sum of that digit (plus seven) modulus 10. Then I have to swap first and third digits, then swap the second and fourth digits, then print the integer as 1 whole number.
Now, how do I break the four-digit number into separate digits so I can do the rest of the stuff? I was thinking that I would ask the user to enter 4 single digit numbers separately so i wouldnt have to worry about this step but I dont think the Prof wanted it to be that simple. This book is horrible at explaining some of the syntax. We had to write a program that used things like if-else statements that werent even covered until a few chapters later.
Now, how do I break the four-digit number into separate digits so I can do the rest of the stuff? I was thinking that I would ask the user to enter 4 single digit numbers separately so i wouldnt have to worry about this step but I dont think the Prof wanted it to be that simple. This book is horrible at explaining some of the syntax. We had to write a program that used things like if-else statements that werent even covered until a few chapters later.
