Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_step3

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

Question

=+country competitive advantages? Why? Support your point of view.

Answered: 1 week ago