Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the if statements below is the correct one for the following problem statement? Jabho earn 1 5 % commission on each sale he

Which of the if statements below is the correct one for the following problem statement? Jabho earn 15% commission on each sale he makes that is above R5000 and 10% on all other sales.
a.
if salesAmnt <5000 then
commission = salesAmnt *10%
else
commission = salesAmnt *15%
endif
b.
if salesAmnt >5000 then
commission = salesAmnt *10/100
else
commission = salesAmnt *15/100
endif
c.
if salesAmnt >5000 then
commission = salesAmnt *10%
else
commission = salesAmnt *15%
endif
d.
if salesAmnt <5000 then
commission = salesAmnt *10/100
else
commission = salesAmnt *15/100
endif

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions