You are on page 1of 1

Logical Operators MP Code: MP4LogOp

Problem Description: Create a running C Program that will allow user to enter 21 as 1st set, 29 as 2nd set,
and 21 as 3rd set of numbers. Compare for the logical expressions of the given statements. By using the
logical operators, there are three operators (refer to the given example during the live demonstration),
show their logical equivalence (if True-1 or False-0) after each expression:

Sample Output:

LOGICAL OPERATORS
1st set: 21
2nd set: 29
3rd set: 21

(21==21)&&(29>=21) the result is 1.


(21<=21)&&(21>29) the result is 0.
(21!=21)&&(29!=21) the result is 1.

(29==21)||(21!=21) the result is 0.


(21<29)||(29>21) the result is 1.
(21==29)||(21==21) the result is 1.

!(21>=21) the result is 0.


!(29<=21) the result is 1.
!(29!=21) the result is 0.

Pointing System:
• 10 points perfect score (nagawa ng Kompleto at Tama)
• Not following the prescribed OUTPUT (deduction of 2 points)
• Usage of other compiler; other than Borland C (deduction of 1 point)
• Wrong formula will lead to wrong result (deduction of 5 points)
• Unnecessary codes/formats (deduction of 1 point)
• AUDIO issues on video presentation (deduction of 2 points)
• Late submission (deduction of 2 points)
• Failed to meet the desired output / Problem has not been solved (will be given 4 Points
as consideration)

• This is individual presentation


• Create a simple video presentation (limit to 3 to 5mins) about the given problem.
Content of video (in order):
➢ Introduction: state your name, course year and Section (In front of Camera,
meaning magpapakilala kayo sa harap ng Camera)
➢ Viewing/Encoding and explanation (if necessary) of source codes
➢ Running the program.
➢ End the video by saying “Thank you for watching”
• Rename your video file: SECTION – surname (Ex. IS1A – Santiago)
• Use this link https://forms.gle/rNMkjgXmqHCpv3kE9 to submit your
Machine Problem.
• This will serve as assignment and PART 2 of PRELIMINARY EXAM so don’t fail to submit!
• Deadline of submission is until WEDNESDAY, MARCH 17, 2021

You might also like