simple java question

Suppose you have a rope 100 feet in length.

Each time ½ the length of the rope has been cut off. For example, the first time, the length of rope has 50 feet left after the first time cut off, 25 feet after the second cut off…and so on.

Write a program, that prompts a user to enter n times cut, for example, cut times n=10. Check the validity and rationality of user input data. The input has to be a positive integer number.

Results should display

  1. The length of the rope remaining after each cut.
  2. The sum of the cut length.

"Is this question part of your assignment? We can help"