<prompt> Hlahisa algorithm ho bala tekanyo ea ho qetela ea letsete ka nako e itseng.nan  <response>: Instruction in English: Generate an algorithm to calculate the end balance of an investment over a given period of time. . Response in English: Algorithm for calculating the investment end balance over a given period of time.Initialize:Principal pInterest Rate rTime in years tCompounding frequency nEnd Balance BStep 1: StartStep 2: Take input values for the following variables: p, r, t and n.Step 3: Convert the interest rate from percentage to decimal by dividing it by 100. i.e. r r 100.Step 4: Calculate the total number of times interest is compounded during the entire period by multiplying time in years with the compounding frequency. i.e. A t n.Step 5: Calculate the interest factor, F 1 r n.Step 6: Calculate the End Balance, B p pow F, AStep 7: Display the value of the End Balance.Step 8: Stop. . Response in Sesotho: Algorithm ea ho bala tekanyo ea pheletso ea matsete ka nako e itseng. Qala: Mosuoe-hlooho p Sekhahla sa Tsoala r Nako ka lilemo t Ho kopanya khafetsa n Ho leka-lekana ho qetela B Mohato oa 1: Qala Mohato oa 2: Nka litekanyetso tsa ho kenya letsoho bakeng sa mefuta e latelang: p, r, t le n. Mohato oa 3: Fetola sekhahla sa tsoala ho tloha ho peresente ho ea ho decimal ka ho e arola ka 100. ke hore r r 100. Mohato oa 4: Bala palo eohle ea makhetlo thahasello e kopanngoang nakong eohle ea nako ka ho atisa nako ka lilemo ka makhetlo a mangata. ke hore A t n. Mohato oa 5: Bala ntlha ea thahasello, F 1 r n. Mohato oa 6: Bala Bofelo ba Balance, B p pow F, A Mohato oa 7: Bontša boleng ba End Balance. Mohato oa 8: Emisa. 