Completed

Write some Software

This project was successfully completed by sadaquat for $25 USD in a day.

Get free quotes for a project like this
Employer working
Project Budget
$10 - $30 USD
Completed In
1 day
Total Bids
18
Project Description

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.

Hints...

[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.

Checklist...

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]

Completed by:
Skills Required

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

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online