This topic contains a solution. Click here to go to the answer

Author Question: Which of the following expression is equivalent to (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)? (Read 47 times)

captainjonesify

  • Hero Member
  • *****
  • Posts: 543

Question 1

Suppose cond1, cond2, and cond3 are Boolean expressions. Which of the following expression is equivalent to cond1 || cond2 && cond3?
◦ cond1 || (cond2 && cond3)
◦ (cond1 || cond2) && cond3

Question 2

Which of the following expression is equivalent to (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)?
◦ (year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0)
◦ year % 4 == 0 && year % 100 != 0 || year % 400 == 0
◦ (year % 4 == 0) && (year % 100 != 0 || year % 400 == 0)
◦ year % 4 == 0 && (year % 100 != 0) || year % 400 == 0


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by captainjonesify on May 6, 2020

ankilker

  • Sr. Member
  • ****
  • Posts: 328
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




captainjonesify

  • Member
  • Posts: 543
Reply 2 on: May 6, 2020
Great answer, keep it coming :)


miss_1456@hotmail.com

  • Member
  • Posts: 289
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Bacteria have flourished on the earth for over three billion years. They were the first life forms on the planet.

Did you know?

Certain rare plants containing cyanide include apricot pits and a type of potato called cassava. Fortunately, only chronic or massive ingestion of any of these plants can lead to serious poisoning.

Did you know?

There are more bacteria in your mouth than there are people in the world.

Did you know?

There are more nerve cells in one human brain than there are stars in the Milky Way.

Did you know?

In most climates, 8 to 10 glasses of water per day is recommended for adults. The best indicator for adequate fluid intake is frequent, clear urination.

For a complete list of videos, visit our video library