Answer to Question #302677 in MatLAB for Nishi

Question #302677

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).

1
Expert's answer
2022-02-26T11:32:46-0500


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


>> 


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS