My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'Loan.rb'

class Input

def gather
print "Enter rate: "
rate = gets

print "Enter months: "
months = gets

print "Enter present value: "
presentValue = gets

loan = Loan.new(rate, months, presentValue)
loan.calculateMonthlyPayment
end
end

input = Input.new
amt = input.gather
puts amt.to_s

Change log

r54 by pragkirk on Apr 8, 2009   Diff
Initial Checkin
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 394 bytes, 22 lines

File properties

svn:executable
Powered by Google Project Hosting