Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

PAC Data tuitionfee Processing While (year+1) <= 2027 tuitionfee = tuitionfee * 1.

025 If (year+1) >= 2023 sum = sum + tuitionfee Output The cost of 5-years worth of tuition

Flowchart

Start

Set year = 2013 Set tuitionfee = 45000 Set sum = 0

T
while (year+1) <= 2027) tuitionfee = tuitionfee * 1.025

Print year and tuitionfee

if (year+1) >= 2023)

sum = sum + tuitionfee

year ++

print the cost of 5-years worth of tuition starting from year 2023

End

You might also like