Write some Software
- Status Completed
- Budget $10 - $30 USD
- Total Bids 18
Input a positive integer,multiply the input integer by two, then call the method...
public static long reverse( long i ) // The method long reverse( long i) returns the integer in reverse order.
Sample Run 1 (Input 12):
Enter a positive integer: 12
12 doubled is 24 and then reversed is 42
Sample Run 2:
Enter a positive integer: 540
540 doubled is 1,080 and then reversed is 801
Sample Run 3:
Enter a positive integer: 1204500
1,204,500 doubled is 2,409,000 and then reversed is 9,042
Consistency notes repeated.
Prompt is "Enter a positive integer: " no newline at end.
Single output line is newline terminated we are using , format specifier with decimal integers.
[url removed, login to view]( "%,d doubled is %,d and then reversed is %,d\n", n, ... );
Refer to hints in [url removed, login to view] (you need to type programs that illustrate these hints)
For large numbers refer to hints on Exercise4_1M.java.
Complete blackboard chapter 5 quiz
Click quiz grades to verify quiz and test 1 grades.
Make sure you have submitted both [url removed, login to view] and [url removed, login to view]Get free quotes for a project like this
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online