Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,036 members, 7,807,113 topics. Date: Wednesday, 24 April 2024 at 09:45 AM

Pls Help: Write A Program In Visual Basic To Calculate Compound Interest - Education - Nairaland

Nairaland Forum / Nairaland / General / Education / Pls Help: Write A Program In Visual Basic To Calculate Compound Interest (2734 Views)

Pls Help: Write A Program In Visual Basic To Output The Fibonacci Sequence / How To Calculate Your GP/CGP / How To Calculate Quickly And Correctly In Mathematics (2) (3) (4)

(1) (Reply) (Go Down)

Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by PatEinstEin(m): 1:21pm On Jul 28, 2014
Computer scientists, pls help with this assignment: write a program in visual basic to calculate the compound interest payable in a premium for any number of years using a maximum of five tools or objects. Thanks.

I'm a biochemistry student - 200 level, but computer science is compulsory for me

Also, I would appreciate tutorials on Visual Basic Programming smiley
Re: Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by alotofgrace(m): 4:34pm On Jul 28, 2014
move ur thread to "programming" section


moreover google is ur next door neighbour


0r [url=msdn.microsoft.com/en-us/vstudio/aa718325.aspx]developer ntwk[/url]

1 Like

Re: Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by Nobody: 5:05pm On Jul 28, 2014
Hey, do you mind if I give you the code in cplusplus? Cause I don't know visual basic for now!!!!
Loading.... Loading.... Loading...
Re: Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by PatEinstEin(m): 5:14pm On Jul 28, 2014
Ezechinwa: Hey, do you mind if I give you the code in cplusplus? Cause I don't know visual basic for now!!!!
Loading.... Loading.... Loading...

I don't mind. Thanks. smiley
Re: Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by Nobody: 5:38pm On Jul 28, 2014
#include <cstdio>
#include<cstdlib>
#include<iostream>
#include<math.h>

using namespace std;
int main ()

{
// define the input for this program

double p; //principal
double r; //rate
double i; //initial rate (value)
double n; //number of year accumulated
double t; //time
double e; // product of n and t
double f; //ratio of r and n
double g; // (f+1)
double h; // value of g raise to power e
double A; // Compound interest value

// mathematical manipulation

// getting parameter for rate
cout << ”ENTER THE RATE (without percentage )“;
cout << ”\n”;
cin >> i;

r= (i*0.01);


// getting parameter for number of times
cout << ”ENTER THE NUMBER OF TIMES THE
<< INTEREST ARE COMPOUNDED PER YEAR ”
<< ”\n“ ;
cin. >> n;


// getting parameter for years
cout << ” ENTER THE NUMBER OF YEARS : "
<< ”\n” ;

cin. >> t;


// getting parameter for principal
cout << “ENTER THE PRINCIPAL ( in naira ) : ”
<< "\n" ;

cin. >> p ;


// mathematical manipulation 2.

e= (n*t) ;
f= (r/n);
g= (1+f);
h= pow ( g , e ) ;
A= (p*h) ;

// final output after a successful coding, remember drink a cup of water and relax your head.. Lol

cout << ”THE COMPOUND INTEREST IS " ;
cout << "\n“;
cout << "#"<<A;
cout << "\n";


system ("PAUSE"wink;
return 0 ;
}

1 Like

Re: Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by Nobody: 5:41pm On Jul 28, 2014
Remember the general formular is
A= P( 1+ (r/n) ) ^ nt

The program works perfectly, I hope you get an "A" in your course!!!

1 Like

Re: Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by PatEinstEin(m): 5:48pm On Jul 28, 2014
Ezechinwa: Remember the general formular is
A= P( 1+ (r/n) ) ^ nt

The program works perfectly, I hope you get an "A" in your course!!!
Amen!!! Thanks a lot smiley
Re: Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by dejt4u(m): 10:04pm On Jul 28, 2014
Fortran is a bit easier to me.. I can use fortran for you if u wil nt mind..
Re: Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by PatEinstEin(m): 10:09pm On Jul 28, 2014
dejt4u: Fortran is a bit easier to me.. I can use fortran for you if u wil nt mind..
I don't mind bro. Thanks.
Re: Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by Nobody: 10:09pm On Jul 28, 2014
dejt4u: Fortran is a bit easier to me.. I can use fortran for you if u wil nt mind..

Pls post it
Re: Pls Help: Write A Program In Visual Basic To Calculate Compound Interest by dejt4u(m): 11:25pm On Jul 28, 2014
PatEinstEin:
I don't mind bro. Thanks.
Ezechinwa:

Pls post it
I promise to post it tomorrow God's willing..

(1) (Reply)

Institute For Entrepreneurship Development Studies, OAU / Official Dates For JAMB 2015 CBT Exams! / 2015/2016 Shell Scholarships For Undergraduate Nigerian Students

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 14
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.