Please Follow the instructions Carefully.I have attached the file what to do.Kindly check step by step process.Its easy to follow.
Note:
Use validation if user type negative values or any wrong values
Do the flowcharts and UML through dia app. Put comments,doc string with proper documentation.
Save the Driver class or Demo in my name like: DriverClass_Bharati