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
Group of answer choices
>=
<=
=
!=
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
