Upload files to "/"
This commit is contained in:
39
pembagianInvestor.fprg
Normal file
39
pembagianInvestor.fprg
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0"?>
|
||||
<flowgorithm fileversion="4.2">
|
||||
<attributes>
|
||||
<attribute name="name" value="pembagianInvestor"/>
|
||||
<attribute name="authors" value="yuvlian"/>
|
||||
<attribute name="about" value=""/>
|
||||
<attribute name="saved" value="2026-02-25 10:24:10 PM"/>
|
||||
<attribute name="created" value="QW50aWdyYXZpdHk7Q09NTUFORDsyMDI2LTAyLTE5OzA5OjU1OjAwIEFN"/>
|
||||
<attribute name="edited" value="QW50aWdyYXZpdHk7Q09NTUFORDsyMDI2LTAyLTE5OzA5OjU1OjAwIEFNOzE7MjYyNA=="/>
|
||||
<attribute name="edited" value="eXV2bGlhbjtDT1NNT1M7MjAyNi0wMi0yNTsxMDoyNDoxMCBQTTsxOzI2MjM="/>
|
||||
</attributes>
|
||||
<function name="Main" type="None" variable="">
|
||||
<parameters/>
|
||||
<body>
|
||||
<declare name="persenInvestorUtama, pembagiPorsiSenior, jumlahUtamaDanSatuSenior, totalKeuntungan" type="Real" array="False" size=""/>
|
||||
<declare name="bagianInvestorUtama, sisaSetelahUtama, porsiMasingMasingSenior, totalBagianEmpatSenior" type="Real" array="False" size=""/>
|
||||
<declare name="sisaSetelahSenior, bagianInvestorPemulaKelima, selisihUtamaDanPemula" type="Real" array="False" size=""/>
|
||||
<output expression=""masukkan persentase investor utama (contoh: 0.20 untuk 20%):"" newline="True"/>
|
||||
<input variable="persenInvestorUtama"/>
|
||||
<output expression=""masukkan pembagi porsi senior (contoh: 9 untuk 1/9):"" newline="True"/>
|
||||
<input variable="pembagiPorsiSenior"/>
|
||||
<output expression=""masukkan jumlah total bagian utama dan satu investor senior dalam Rupiah (A, contoh 3.2 Miliar: 3200000000):"" newline="True"/>
|
||||
<input variable="jumlahUtamaDanSatuSenior"/>
|
||||
<assign variable="porsiMasingMasingSenior" expression="1.0 / pembagiPorsiSenior"/>
|
||||
<comment text="rumus: T = A / (p + q * (1 - p))"/>
|
||||
<assign variable="totalKeuntungan" expression="jumlahUtamaDanSatuSenior / (persenInvestorUtama + porsiMasingMasingSenior * (1.0 - persenInvestorUtama))"/>
|
||||
<assign variable="bagianInvestorUtama" expression="persenInvestorUtama * totalKeuntungan"/>
|
||||
<assign variable="sisaSetelahUtama" expression="totalKeuntungan - bagianInvestorUtama"/>
|
||||
<assign variable="totalBagianEmpatSenior" expression="4.0 * porsiMasingMasingSenior * sisaSetelahUtama"/>
|
||||
<assign variable="sisaSetelahSenior" expression="sisaSetelahUtama - totalBagianEmpatSenior"/>
|
||||
<assign variable="bagianInvestorPemulaKelima" expression="(20.0 / 22.0) * sisaSetelahSenior"/>
|
||||
<assign variable="selisihUtamaDanPemula" expression="bagianInvestorUtama - bagianInvestorPemulaKelima"/>
|
||||
<output expression=""total keuntungan: Rp " & totalKeuntungan" newline="True"/>
|
||||
<output expression=""bagian investor utama: " & (bagianInvestorUtama / 1000000000) & " Miliar"" newline="True"/>
|
||||
<output expression=""bagian pemula ke 5: " & (bagianInvestorPemulaKelima / 1000000000) & " Miliar"" newline="True"/>
|
||||
<output expression=""selisih utama dan pemula: " & (selisihUtamaDanPemula / 1000000000) & " Miliar"" newline="True"/>
|
||||
</body>
|
||||
</function>
|
||||
</flowgorithm>
|
||||
Reference in New Issue
Block a user