Please read everything, I have gone through a few tutors and have not had a complete solution. Wr

Jun 29th, 2015
Studypool Tutor
Price: $5 USD

Tutor description

Please read everything, I have gone through a few tutors and have not had a complete solution. 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. needs to be a user defined method so I am thinking that would be a private method?. also need A PROGRAM TO TEST THE METHOD.

Word Count: 273
Showing Page: 1/2
I need a lil help. I'm new to C++ and, I have to write a function that takes an integer as a perameter and returns the number with its digits reversed. Ex. 5678would return 8765. I also have to use at least 2 more functions to read and print the result. I need a little nudge in the right direction. This is what I have so far, and I'm 90% sure it is completely wrong! Lol#includeusing namespace std;int reversedigit(int num)void print(int num)int read();int main(){int num= read();print(int(num));return 0;}int read(){int acout<<"Enter a number"<>num;return

Review from student

Studypool Student
" Solid work, thanks. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1820 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors