Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java 1 and 2

BunkerHillBroad
BunkerHillBroad 


(1) Write a single boolean expression for the desired qualities in the following personal ad: “Wanted for companionship: 22 to 44 year old male, non-smoking, under 72 inches tall, under 160 pounds, good-looking, able to relocate.” Express your answer in terms of the (already initialized) boolean variables isASmoker, isMale, isGoodLooking, and isAbleToRelocate, as well as the numeric variables age, height and weight. For example, if ( ***your Boolean expression goes here*** ) System.out.println (“Marry me!”); else System.out.println (“Get Lost!”); ---------------------------------------------------------------------- (2) Use DeMorgan’s Laws to simplify the following Boolean expression: ! (x != 0 || y !=0 ) Attachments
Tags Clarifications

Answers

Solution 1 and 2

mariobeka
mariobeka 



Open the Solution file with any text editor. Attachments Screenshots
Purchase Answer