1. A company is offering a job with a salary of Rs. 50,000.00 for the first year and a 4% raise each year after that. If that 4% raise continues every year,
Find the total amount of money an employee would earn in a 10-years career.(Using the geometric Progression).
close all,
clear all,
clc,
%{
A company is offering a job with a salary of Rs. 50,000.00 for the first year and a 4% raise each year after that.
If that 4% raise continues every year, Find the total amount of money an employee would earn in a 10-years career.
(Using the geometric Progression).
%}
P = 50000; %Basic Salary
Raise = 4; %Percentage Raise annualy
r = Raise/100; %r value in Accrued amount calculation
n = 1; %Raise Annualy once in a year
t = 10; %Years
A = P *power((1 + (r/n)),n*t);
fprintf('\n\tBasic Salary : %.2f',P);
fprintf('\n\tAnnual Raise : %.2f',Raise);
fprintf('\n\tcompounded Annualy: %d',n);
fprintf('\n\tNo. of Years: : %d',t);
fprintf('\n\tAccumulated amount: %.2f',A);
fprintf('\n\n');
MATLAB output:
Basic Salary : 50000.00
Annual Raise : 4.00
compounded Annualy: 1
No. of Years: : 10
Accumulated amount: 74012.21
>>
Comments
Leave a comment