You are on page 1of 2

Relational Operators MP Code: MP3RelOp

Problem Description: Create a running C Program that will allow user to enter three sets of numbers. By
using the relational operators, there are six operators (refer to the given example during the live
demonstration), show their relationship (if True-1 or False-0) with each given sets of number:

1st set == 2nd set 1st set < 2nd set 1st set >= 2nd set
2nd set == 3rd set 2nd set < 3rd set 2nd set >= 3rd set
3rd set == 1st set 3rd set < 1st set 3rd set >= 1st set

1st set > 2nd set 1st set != 2nd set 1st set <= 2nd set
2nd set > 3rd set 2nd set != 3rd set 2nd set <= 3rd set
3rd set > 1st set 3rd set != 1st set 3rd set <= 1st set

Sample Output: Sample Data Entry and Output:

RELATIONAL OPERATORS RELATIONAL OPERATORS


1st set: 1st set: 2
2nd set: 2nd set: 4
3rd set: 3rd set: 6

___ is equal to ___? ______ 2 is equal to 4? 0


___ is equal to ___? ______ 4 is equal to 6? 0
___ is equal to ___? ______ 6 is equal to 2? 0

___ is greater than ___? ______ 2 is greater than 4? 0


___ is greater than ___? ______ 4 is greater than 6? 0
___ is greater than ___? ______ 6 is greater than 2? 1

___ is less than ___? ______ 2 is less than 4? 1


___ is less than ___? ______ 4 is less than 6? 1
___ is less than ___? ______ 6 is less than 2? 0

___ is not equal to ___? ______ 2 is not equal to 4? 1


___ is not equal to ___? ______ 4 is not equal to 6? 1
___ is not equal to ___? ______ 6 is not equal to 2? 1

___ is greater than or equal to ___? ______ 2 is greater than or equal to 4? 0


___ is greater than or equal to ___? ______ 4 is greater than or equal to 6? 0
___ is greater than or equal to ___? ______ 6 is greater than or equal to 2? 1

___ is less than or equal to ___? ______ 2 is less than or equal to 4? 1


___ is less than or equal to ___? ______ 4 is less than or equal to 6? 1
___ is less than or equal to ___? ______ 6 is less than or equal to 2? 0
Take Note: Hindi dapat constant ang value (see sample data entry). User ang
mag eenter ng numbers. Meaning any numbers (int/whole number) can be
entered by the user so don’t use my given values as a constant value. Pwede
ring may same value para matesting nyo kung gumagana ang relational
operator “equals to / ==”.

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. Run the program twice by giving different
values.
➢ 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