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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started