எளிய மற்றும் கூட்டு வட்டி கணக்கிடுவது எப்படி

எளிய மற்றும் கூட்டு வட்டி கணக்கிடுவது எப்படி

கணிதம் நிரலாக்கத்தின் ஒரு ஒருங்கிணைந்த பகுதியாகும். இந்த பகுதியில் உள்ள எளிய பிரச்சனைகளை உங்களால் தீர்க்க முடியாவிட்டால், நீங்கள் தேவைப்படுவதை விட அதிகமாக போராடுவீர்கள்.





அதிர்ஷ்டவசமாக, அதை எப்படி செய்வது என்று கற்றுக்கொள்வது மிகவும் கடினம் அல்ல. இந்த கட்டுரையில், பைதான், சி ++ மற்றும் ஜாவாஸ்கிரிப்ட் ஆகியவற்றைப் பயன்படுத்தி எளிய வட்டி மற்றும் கூட்டு வட்டி கணக்கிட கற்றுக்கொள்வீர்கள்.





ஐபாடில் இருந்து கணினிக்கு பாடல்களை எவ்வாறு பெறுவது

எளிய வட்டி கணக்கிடுவது எப்படி?

எளிய வட்டி என்பது கொடுக்கப்பட்ட விகிதத்தில் மற்றும் ஒரு குறிப்பிட்ட காலத்திற்கு ஒரு கொள்கைத் தொகையின் மீது வசூலிக்கப்படும் வட்டித் தொகையைக் கணக்கிடுவதற்கான ஒரு முறையாகும். பின்வரும் சூத்திரத்தைப் பயன்படுத்தி எளிய வட்டி கணக்கிட முடியும்:





Simple Interest = (P x R x T)/100
Where,
P = Principle Amount
R = Rate
T = Time

பிரச்சனை அறிக்கை

உங்களுக்கு வழங்கப்பட்டுள்ளது கொள்கை அளவு , வட்டி விகிதம் , மற்றும் நேரம் . கொடுக்கப்பட்ட மதிப்புகளுக்கான எளிய வட்டியை நீங்கள் கணக்கிட்டு அச்சிட வேண்டும். உதாரணமாக : கொள்கை = 1000, விகிதம் = 7, மற்றும் நேரம் காலம் = 2. எளிய வட்டி = (கொள்கை * விகிதம் * நேரம் காலம்) / 100 = (1000 * 7 * 2) / 100 = 140. இதனால், வெளியீடு 140 ஆகும்.

எளிய வட்டி கணக்கிட சி ++ திட்டம்

எளிய வட்டி கணக்கிட C ++ திட்டம் கீழே உள்ளது:



// C++ program to calculate simple interest
// for given principle amount, time, and rate of interest.
#include
using namespace std;
// Function to calculate simple interest
float calculateSimpleInterest(float principle, float rate, float timePeriod)
{
return (principle * rate * timePeriod) / 100;
}

int main()
{
float principle1 = 1000;
float rate1 = 7;
float timePeriod1 = 2;
cout << 'Test case: 1' << endl;
cout << 'Principle amount: ' << principle1 << endl;
cout << 'Rate of interest: ' << rate1 << endl;
cout << 'Time period: ' << timePeriod1 << endl;
cout << 'Simple Interest: ' << calculateSimpleInterest(principle1, rate1, timePeriod1) << endl;
float principle2 = 5000;
float rate2 = 5;
float timePeriod2 = 1;
cout << 'Test case: 2' << endl;
cout << 'Principle amount: ' << principle2 << endl;
cout << 'Rate of interest: ' << rate2 << endl;
cout << 'Time period: ' << timePeriod2 << endl;
cout << 'Simple Interest: ' << calculateSimpleInterest(principle2, rate2, timePeriod2) << endl;
float principle3 = 5800;
float rate3 = 4;
float timePeriod3 = 6;
cout << 'Test case: 3' << endl;
cout << 'Principle amount: ' << principle3 << endl;
cout << 'Rate of interest: ' << rate3 << endl;
cout << 'Time period: ' << timePeriod3 << endl;
cout << 'Simple Interest: ' << calculateSimpleInterest(principle3, rate3, timePeriod3) << endl;
return 0;
}

வெளியீடு:

Test case: 1
Principle amount: 1000
Rate of interest: 7
Time period: 2
Simple Interest: 140
Test case: 2
Principle amount: 5000
Rate of interest: 5
Time period: 1
Simple Interest: 250
Test case: 3
Principle amount: 5800
Rate of interest: 4
Time period: 6
Simple Interest: 1392

தொடர்புடையது: சி ++, பைதான் மற்றும் ஜாவாஸ்கிரிப்டில் ஒரு இயற்கை எண்ணின் அனைத்து காரணிகளையும் கண்டுபிடிப்பது எப்படி





எளிய வட்டி கணக்கிட பைதான் திட்டம்

எளிய வட்டி கணக்கிட பைதான் திட்டம் கீழே உள்ளது:

# Python program to calculate simple interest
# for given principle amount, time, and rate of interest.
# Function to calculate simple interest
def calculateSimpleInterest(principle, rate, timePeriod):
return (principle * rate * timePeriod) / 100

principle1 = 1000
rate1 = 7
timePeriod1 = 2
print('Test case: 1')
print('Principle amount:', principle1)
print('Rate of interest:', rate1)
print('Time period:', timePeriod1)
print('Simple Interest:', calculateSimpleInterest(principle1, rate1, timePeriod1))
principle2 = 5000
rate2 = 5
timePeriod2 = 1
print('Test case: 2')
print('Principle amount:', principle2)
print('Rate of interest:', rate2)
print('Time period:', timePeriod2)
print('Simple Interest:', calculateSimpleInterest(principle2, rate2, timePeriod2))
principle3 = 5800
rate3 = 4
timePeriod3 = 6
print('Test case: 3')
print('Principle amount:', principle3)
print('Rate of interest:', rate3)
print('Time period:', timePeriod3)
print('Simple Interest:', calculateSimpleInterest(principle3, rate3, timePeriod3))

வெளியீடு:





Test case: 1
Principle amount: 1000
Rate of interest: 7
Time period: 2
Simple Interest: 140.0
Test case: 2
Principle amount: 5000
Rate of interest: 5
Time period: 1
Simple Interest: 250.0
Test case: 3
Principle amount: 5800
Rate of interest: 4
Time period: 6
Simple Interest: 1392.0

தொடர்புடையது: வெவ்வேறு நிரலாக்க மொழிகளில் FizzBuzz சவாலை எவ்வாறு முடிப்பது

எளிய வட்டி கணக்கிட ஜாவாஸ்கிரிப்ட் திட்டம்

எளிய வட்டி கணக்கிட ஜாவாஸ்கிரிப்ட் திட்டம் கீழே உள்ளது:

// JavaScript program to calculate simple interest
// for given principle amount, time, and rate of interest.
// Function to calculate simple interest
function calculateSimpleInterest(principle, rate, timePeriod) {
return (principle * rate * timePeriod) / 100;
}
var principle1 = 1000;
var rate1 = 7;
var timePeriod1 = 2;
document.write('Test case: 1' + '
');
document.write('Principle amount: ' + principle1 + '
');
document.write('Rate of interest: ' + rate1 + '
');
document.write('Time period: ' + timePeriod1 + '
');
document.write('Simple Interest: ' + calculateSimpleInterest(principle1, rate1, timePeriod1) + '
');
var principle2 = 5000;
var rate2 = 5;
var timePeriod2 = 1;
document.write('Test case: 2' + '
');
document.write('Principle amount: ' + principle2 + '
');
document.write('Rate of interest: ' + rate2 + '
');
document.write('Time period: ' + timePeriod2 + '
');
document.write('Simple Interest: ' + calculateSimpleInterest(principle2, rate2, timePeriod2) + '
');
var principle3 = 5800;
var rate3 = 4;
var timePeriod3 = 6;
document.write('Test case: 3' + '
');
document.write('Principle amount: ' + principle3 + '
');
document.write('Rate of interest: ' + rate3 + '
');
document.write('Time period: ' + timePeriod3 + '
');
document.write('Simple Interest: ' + calculateSimpleInterest(principle3, rate3, timePeriod3) + '
');

வெளியீடு:

Test case: 1
Principle amount: 1000
Rate of interest: 7
Time period: 2
Simple Interest: 140
Test case: 2
Principle amount: 5000
Rate of interest: 5
Time period: 1
Simple Interest: 250
Test case: 3
Principle amount: 5800
Rate of interest: 4
Time period: 6
Simple Interest: 1392

கூட்டு வட்டி கணக்கிடுவது எப்படி

கூட்டு வட்டி என்பது அசல் தொகைக்கு வட்டி சேர்ப்பதாகும். வேறு வார்த்தைகளில் கூறுவதானால், இது வட்டி மீதான ஆர்வம். பின்வரும் சூத்திரத்தைப் பயன்படுத்தி கூட்டு வட்டி கணக்கிட முடியும்:

Amount= P(1 + R/100)T
Compound Interest = Amount – P
Where,
P = Principle Amount
R = Rate
T = Time

பிரச்சனை அறிக்கை

உங்களுக்கு வழங்கப்பட்டுள்ளது கொள்கை அளவு , வட்டி விகிதம் , மற்றும் நேரம் . கொடுக்கப்பட்ட மதிப்புகளுக்கான கூட்டு வட்டியை நீங்கள் கணக்கிட்டு அச்சிட வேண்டும். உதாரணமாக : கொள்கை = 1000, விகிதம் = 7, மற்றும் நேரம் காலம் 2. 2. தொகை = P (1 + R/100) T = 1144.9 கூட்டு வட்டி = தொகை - கொள்கை தொகை = 1144.9 - 1000 = 144.9 இவ்வாறு, வெளியீடு 144.9

கூட்டு வட்டி கணக்கிட சி ++ திட்டம்

கூட்டு வட்டி கணக்கிட சி ++ திட்டம் கீழே உள்ளது:

// C++ program to calculate compound interest
// for given principle amount, time, and rate of interest.
#include
using namespace std;
// Function to calculate compound interest
float calculateCompoundInterest(float principle, float rate, float timePeriod)
{
double amount = principle * (pow((1 + rate / 100), timePeriod));
return amount - principle;
}
int main()
{
float principle1 = 1000;
float rate1 = 7;
float timePeriod1 = 2;
cout << 'Test case: 1' << endl;
cout << 'Principle amount: ' << principle1 << endl;
cout << 'Rate of interest: ' << rate1 << endl;
cout << 'Time period: ' << timePeriod1 << endl;
cout << 'Compound Interest: ' << calculateCompoundInterest(principle1, rate1, timePeriod1) << endl;
float principle2 = 5000;
float rate2 = 5;
float timePeriod2 = 1;
cout << 'Test case: 2' << endl;
cout << 'Principle amount: ' << principle2 << endl;
cout << 'Rate of interest: ' << rate2 << endl;
cout << 'Time period: ' << timePeriod2 << endl;
cout << 'Compound Interest: ' << calculateCompoundInterest(principle2, rate2, timePeriod2) << endl;
float principle3 = 5800;
float rate3 = 4;
float timePeriod3 = 6;
cout << 'Test case: 3' << endl;
cout << 'Principle amount: ' << principle3 << endl;
cout << 'Rate of interest: ' << rate3 << endl;
cout << 'Time period: ' << timePeriod3 << endl;
cout << 'Compound Interest: ' << calculateCompoundInterest(principle3, rate3, timePeriod3) << endl;
return 0;
}

வெளியீடு:

Test case: 1
Principle amount: 1000
Rate of interest: 7
Time period: 2
Compound Interest: 144.9
Test case: 2
Principle amount: 5000
Rate of interest: 5
Time period: 1
Compound Interest: 250
Test case: 3
Principle amount: 5800
Rate of interest: 4
Time period: 6
Compound Interest: 1538.85

தொடர்புடையது: சி ++, பைதான் மற்றும் ஜாவாஸ்கிரிப்ட் ஆகியவற்றில் ஒரு வரிசையை எப்படி மாற்றுவது

இந்த நெட்வொர்க்கின் ப்ராக்ஸி அமைப்புகளை விண்டோஸ் கண்டறிய முடியவில்லை

கூட்டு வட்டி கணக்கிட பைதான் திட்டம்

கூட்டு வட்டி கணக்கிட பைதான் திட்டம் கீழே உள்ளது:

# Python program to calculate compound interest
# for given principle amount, time, and rate of interest.
# Function to calculate compound interest
def calculateCompoundInterest(principle, rate, timePeriod):
amount = principle * (pow((1 + rate / 100), timePeriod))
return amount - principle
principle1 = 1000
rate1 = 7
timePeriod1 = 2
print('Test case: 1')
print('Principle amount:', principle1)
print('Rate of interest:', rate1)
print('Time period:', timePeriod1)
print('Compound Interest:', calculateCompoundInterest(principle1, rate1, timePeriod1))
principle2 = 5000
rate2 = 5
timePeriod2 = 1
print('Test case: 2')
print('Principle amount:', principle2)
print('Rate of interest:', rate2)
print('Time period:', timePeriod2)
print('Compound Interest:', calculateCompoundInterest(principle2, rate2, timePeriod2))
principle3 = 5800
rate3 = 4
timePeriod3 = 6
print('Test case: 3')
print('Principle amount:', principle3)
print('Rate of interest:', rate3)
print('Time period:', timePeriod3)
print('Compound Interest:', calculateCompoundInterest(principle3, rate3, timePeriod3))

வெளியீடு:

Test case: 1
Principle amount: 1000
Rate of interest: 7
Time period: 2
Compound Interest: 144.9000000000001
Test case: 2
Principle amount: 5000
Rate of interest: 5
Time period: 1
Compound Interest: 250.0
Test case: 3
Principle amount: 5800
Rate of interest: 4
Time period: 6
Compound Interest: 1538.8503072768026

தொடர்புடையது: ஒரு வரிசையில் அனைத்து கூறுகளின் கூட்டுத்தொகையை எப்படி கண்டுபிடிப்பது

கூட்டு வட்டி கணக்கிட ஜாவாஸ்கிரிப்ட் திட்டம்

கூட்டு வட்டி கணக்கிட ஜாவாஸ்கிரிப்ட் திட்டம் கீழே உள்ளது:

// JavaScript program to calculate compound interest
// for given principle amount, time, and rate of interest.

// Function to calculate compound interest
function calculateCompoundInterest(principle, rate, timePeriod) {
var amount = principle * (Math.pow((1 + rate / 100), timePeriod));
return amount - principle;
}
var principle1 = 1000;
var rate1 = 7;
var timePeriod1 = 2;
document.write('Test case: 1' + '
');
document.write('Principle amount: ' + principle1 + '
');
document.write('Rate of interest: ' + rate1 + '
');
document.write('Time period: ' + timePeriod1 + '
');
document.write('Compound Interest: ' + calculateCompoundInterest(principle1, rate1, timePeriod1) + '
');
var principle2 = 5000;
var rate2 = 5;
var timePeriod2 = 1;
document.write('Test case: 2' + '
');
document.write('Principle amount: ' + principle2 + '
');
document.write('Rate of interest: ' + rate2 + '
');
document.write('Time period: ' + timePeriod2 + '
');
document.write('Compound Interest: ' + calculateCompoundInterest(principle2, rate2, timePeriod2) + '
');
var principle3 = 5800;
var rate3 = 4;
var timePeriod3 = 6;
document.write('Test case: 3' + '
');
document.write('Principle amount: ' + principle3 + '
');
document.write('Rate of interest: ' + rate3 + '
');
document.write('Time period: ' + timePeriod3 + '
');
document.write('Compound Interest: ' + calculateCompoundInterest(principle3, rate3, timePeriod3) + '
');

வெளியீடு:

Test case: 1
Principle amount: 1000
Rate of interest: 7
Time period: 2
Compound Interest: 144.9000000000001
Test case: 2
Principle amount: 5000
Rate of interest: 5
Time period: 1
Compound Interest: 250
Test case: 3
Principle amount: 5800
Rate of interest: 4
Time period: 6
Compound Interest: 1538.8503072768008

இலவசமாக குறியிட கற்றுக்கொள்ளுங்கள்: எளிய மற்றும் கூட்டு வட்டியுடன் தொடங்குங்கள்

இப்போதெல்லாம், குறியீட்டின் தாக்கம் அதிவேகமாக அதிகரித்து வருகிறது. இதற்கு இணங்க, திறமையான கோடர்களுக்கான தேவை அதீதமாக அதிகரித்து வருகிறது. அதிக கட்டணம் செலுத்திய பின்னரே குறியீட்டைக் கற்றுக்கொள்ள முடியும் என்ற தவறான கருத்து மக்களிடையே உள்ளது. ஆனால் அது உண்மை இல்லை. ஃப்ரீ கோட்கேம்ப், கான் அகாடமி, யூடியூப் போன்ற தளங்களில் இருந்து முற்றிலும் இலவசமாக குறியிட கற்றுக்கொள்ளலாம். எனவே, உங்களிடம் பெரிய பட்ஜெட் இல்லையென்றாலும், தவறவிடுவதைப் பற்றி நீங்கள் கவலைப்படத் தேவையில்லை.

பகிர் பகிர் ட்வீட் மின்னஞ்சல் இலவசமாக குறியீடு செய்வது எப்படி என்பதை அறிய 7 சிறந்த வழிகள்

குறியீட்டை இலவசமாக கற்றுக்கொள்ள முடியாது. இந்த முயற்சித்த மற்றும் சோதிக்கப்பட்ட ஆதாரங்களை நீங்கள் கொடுக்காவிட்டால், நிச்சயமாக.

அடுத்து படிக்கவும்
தொடர்புடைய தலைப்புகள்
  • நிரலாக்க
  • பைதான்
  • ஜாவாஸ்கிரிப்ட்
  • குறியீட்டு பயிற்சிகள்
எழுத்தாளர் பற்றி யுவராஜ் சந்திரா(60 கட்டுரைகள் வெளியிடப்பட்டன)

யுவராஜ் இந்தியாவின் டெல்லி பல்கலைக்கழகத்தில் கணினி அறிவியல் இளங்கலை மாணவர். அவர் முழு ஸ்டாக் வலை மேம்பாட்டில் ஆர்வம் கொண்டவர். அவர் எழுதாதபோது, ​​அவர் பல்வேறு தொழில்நுட்பங்களின் ஆழத்தை ஆராய்கிறார்.

யுவராஜ் சந்திராவின் மேலும்

எங்கள் செய்திமடலுக்கு குழுசேரவும்

தொழில்நுட்ப குறிப்புகள், மதிப்புரைகள், இலவச மின் புத்தகங்கள் மற்றும் பிரத்யேக ஒப்பந்தங்களுக்கு எங்கள் செய்திமடலில் சேரவும்!

குழுசேர இங்கே சொடுக்கவும்