Write the pseudocode for the following scenario : A manager at a 2nd hand car dealership wants to keep track of the amou
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write the pseudocode for the following scenario : A manager at a 2nd hand car dealership wants to keep track of the amou
Write the pseudocode for the following scenario : A manager at a2nd hand car dealership wants to keep track of the amount (inRands) of commission paid to the sales people. You must take thefollowing into consideration: • There may be more than onesalesperson (each salesperson has a unique employee code) –inputthe employee code. An employee code of zero (0) terminates theprogram. •The sales person’s commission is based on their sales (inRands) in the past month–input the sales for each sales person.•Calculate the total car sales (in Rands). •Calculate asalesperson’s commission (in Rands). Commission is based on thefollowing table: Total value of cars sold Percentage commissionearned Less than or equal to R500000 10% More than R500000 15%•Calculate the total commission the manager must pay to all of thesales people. •Display are port for the manager in the followingformat: Employee Code: 2 Sales: R400000 Commission: R40000 EmployeeCode: 4Sales: R650000 Commission: R97500 Total Car Sales: R1050000Total Commission Paid:R137500