Sales is real Customers is integer startmainprog input Sales input Customers if ((Sales > 500) OR ((Sales > 300) AND (Customers>9))) then output “Bonus Awarded” else output “No Bonus” end if end subroutine. Sales = 600 Customers = 9, answer:

For the values Sales = 600 Customers = 9, the following algorithm will print out the message "Bonus Awarded".

Answered by Python tutor

1169 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

How do I check if a number is prime using a python program?


What is the difference between a cycle "if" and "while"?


Which function is ran when an object is instantiated?


Write a function that takes a string, and outputs that string formatted in camelcase. (alternating upper and lower case for each character, e.g. cAmElCaSe)


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences