Archive

Archive for January, 2011

Create a Compound Interest Calculator in Perl

January 16th, 2011 Contributor No comments

Open a text editor, for example, NotePad, and enter the following lines of code:
#!/usr/bin/perl -w
print “Monthly deposit: “; # prompt for input
$deposit=; # get input from keyboard
chomp $deposit; # remove the newline character from the end of the variable
print “Interest rate (3, 4, 5.5, etc): “; # prompt for input
$interest=; # get input from [...]

    Read More...