Question: Analyze the following pseudocode and answer the question below. detailLoop() output Enter name input salesPersonName output Enter number of bedrooms rented input numBedrooms

Analyze the following pseudocode and answer the question below.

detailLoop()

output "Enter name "

input salesPersonName

output "Enter number of bedrooms rented "

input numBedrooms

if numBedrooms > 3 then

commissionEarned = COMM_3

else

if numBedrooms < 2 then

commissionEarned = COMM_2

else

if numBedrooms > 1 then

commissionEarned = COMM_1

else

commissionEarned = COMM_4

endif

endif

endif

output salesPersonID, salesPersonName, commissionEarned

output "Enter salesperson ID or ", QUIT, " to quit "

input salesPersonID

return

Question: What operator should replace the operators in the if statements:

if numBedrooms > 3 then

if numBedrooms < 2 then

if numBedrooms > 1 then

Choose the best answer:

>=

<=

=

!=

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!