Programming Logic and Design, 7eSolutions 4-1Programming Logic and Design, 7th EditionChapter 4Exercises1.Assume that the following variables contain the values shown:numberBig = 300numberMedium = 100numberSmall = 5wordBig = “Elephant”wordMedium = “Horse”wordSmall = “Bug”For each of the following Boolean expressions, decide whether the statement is true,false, or illegal.Answer:a.numberBig = numberSmall?
b.numberBig > numberSmall?
c.numberMedium < numberSmall?
d.numberBig = wordBig?
e.numberBig = “Big”?
f.wordMedium = “Medium”?
g.wordBig = “Elephant”?
h.numberMedium <= numberBig / 3?
i.numberBig >= 200?
j.numberBig >= numberMedium + numberSmall?
k.numberBig > numberMedium AND numberBig < numberSmall?
l.numberBig = 100 OR numberBig > numberSmall?
m.numberBig < 10 OR numberSmall > 10?
2.Mortimer Life Insurance Company wants several lists of salesperson data. Design a flowchart or pseudocode for the following:a. A program that accepts a salesperson’s ID number and number of polices sold in the last month, and displays the data only if the salesperson is a high performer—a person who sells more than 25 policies in the month.