Here's a simple Perl program to calculate simple interest:
use strict;
use warnings;
sub simple_interest {
my ($principal, $rate, $time) = @_;
return ($principal * $rate * $time) / 100;
}
my $principal = 1000; # Example principal amount
my $rate = 5; # Example interest rate
my $time = 2; # Example time in years
my $interest = simple_interest($principal, $rate, $time);
print "Simple Interest: $interest\n";
This program defines a function to calculate simple interest and then prints the result for given principal, rate, and time values.
Reference:cprogramming-bd.com/c_page1.aspx#simpleinterest
n1=val(text1.text) n2=val(text2.text) n3=val(text3.text) text4.text=(n1*n2*n3)/100
write a vb program to find the magic square
Write a program to find the grade obtained by the students of a class
Write a simple program to find out how many of the numbers from 1 to 10 is greater than 4.
Reference:cprogramming-bd.com/c_page1.aspx#simpleinterest
If you are working on simple interest you have to write the equation I=p. r.t
n1=val(text1.text) n2=val(text2.text) n3=val(text3.text) text4.text=(n1*n2*n3)/100
There are many simple interest calculators online that you can find. I found the one at http://easycalculation.com/simple-interest.php to be simple and accurate.
the formula for simple interest is I=PRT (interest=principal x rate x time )
time(t)= interest/rate , princaple
write a vb program to find the magic square
For first find an example program.
Multiply together the capital, the interest rate (as a fraction) and the number of periods to find out the interest.
Write a program to find the grade obtained by the students of a class
Yes, do write. That's what you always have to do when you have got a homework-program.
The answer depends on what information you do have.