Question: Write a program to determine if a given random year between 1 9 4 8 and 2 0 1 9 has held a Summer Olympic

Write a program to determine if a given random year between 1948 and 2019 has held a Summer Olympic Games. Use relational operators to assign 'true' to the logical variable summerOlympicsYear if the variable year is greater than or equal to 1948 and is divisible by 4. Otherwise, the variable summerOlympicsYear should be assigned the logical value 'false'.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!