‘A’ and ‘B’ each stand for a boolean expression or value. ‘1…

‘A’ and ‘B’ each stand for a boolean expression or value. ‘1’ stands for true; ‘0’ stands for false. Fill in the missing values of the AND truth table below, use either ‘1’ or ‘0’:  A B AND 0 0 [B1] 0 1 [B2] 1 0 [B3] 1 1 [B4]   Fill in the missing values of the OR truth table below, use either ‘1’ or ‘0’:  A B OR 0 0 [B5] 0 1 [B6] 1 0 [B7] 1 1 [B8]

Given the following program segments. What data type does fu…

Given the following program segments. What data type does function getCalories() return? [B1]Fill in the blanks to make the program work correctly. Function void main()     Declare Real foodCalories = 0     Set [B3] = getCalories()  //type the missing item here     Display “The food calories is: “, foodCaloriesEnd Function Function Real getCalories()     Declare Real calories = 0     Display “How many calories are in the food?”     Input calories     [B2] calories //type the missing statement hereEnd Function  

Given the following code segment Assume that valid input da…

Given the following code segment Assume that valid input data must be in the range of 0 through 40, inclusive. Type the exact Java code in the blank below to fill in the parentheses on line 18 that will complete the program and help ensure the integrity of the input data. [b1]

Bonus: A survey of a group of 112 tourists were taken in St….

Bonus: A survey of a group of 112 tourists were taken in St. Louis.  The survey showed the following: 60 of the tourists plan to visit the Gateway Arch; 46 plan to visit the zoo; 11 plan to visit the Art Museum and the zoo, but not the Gateway Arch; 12 plan to visit the Art Museum and the Gateway Arch, but not the zoo; 16 plan to visit the Gateway Arch and the zoo, but not the Art Museum; 7 plan to visit the Art Museum, the zoo, and the Gateway Arch; 16 plan to visit none of the three places. How many plan to visit the Art Museum only?