Hello again. I am hoping you can help me with 2 problems. I will send the second separately. Here are the requirements for the first problem:Write a method, reverseDigit, that takes an integer as a parameter and returns the number with its digits reversed. For example, the value of reverseDigit(12345) is 54321. Also, write a program to test your method. This program must also account for a negative number so that if -1234 is entered program returns -4321. Additionally, the negative number cannot be stripped from the input and added back in – for example this pseudo code:reverseNum = -reverseNum;return reverseNum;I have all of this solved except for the negative return. When I input a negative number I get a 0 returned. Attached is my code thus far. Please correct to account for a negative number. Also, can you please evaluate my comments add comments where ever applicable to explain your solution and where I might have something wrong or missing?
Any Given Deadline
WEBSITE LIVE CHAT:
WHATSAPP: +1 (205) 286-5157
Online top tutor is a licensed Academic Writing Service created to offer academic help to students from all parts of the world. Our writing services are unique and offer more than just a piece of assignment. We have a pool of extremely qualified and experienced writers who do your assignments with dedication.