The loop never stops running because the value of var is always 1.
Answer:
Below are the function for the above question in java Language---
void show_info(String name,String home,String state)
{
System.out.println("Your name is "+name+" and you live in "+ home+" ,"+state +".");
}
Output:
- If the user inputs name="Gaus",city="LosAngeles" and state="California" then the output will be "Your name is Gaus and you live in LosAngeless, California."
Explanation:
- The above function is in java language which takes three argument names, state, and the city.
- The name will be stored on the name variable of the string type.
- The state will be stored on the state variable of string type.
- The city will be stored on the city variable of the string type.
- Then the Output will be displayed with the help of the print function.
- '+' is used to merge the string.
The answer would be slide
Answer:
z = a.c' + a.b.d' + b.c'.d'
Explanation:
The truth table for this question is provided in the attachment to this question.
N.B - a' = not a!
The rows with output of 1 come from the following relations: 01 > 00, 10 > 00, 10 > 01, 11 > 00, 11 > 01, 11 > 10
This means that the Boolean expression is a sum of all the rows with output of 1.
z = a'bc'd' + ab'c'd' + ab'c'd + abc'd' + abc'd + abcd'
On simplification,
z = bc'd' + ab'c' + ac'd' + ac'd + abc' + abd'
z = ac' + abd' + bc'd'
Hope this helps!