You are on page 1of 3

HCSE 111 LABORATORY EXERCISE

1. Write a C program to determine if year entered is a leap year or not. [10]


2. Write a program to display arithmetic operators using Switch case. [15]
3. Write a program to display the first 10 natural numbers and their sum using:
i. For loop
ii. While loop
iii. Do while loop [30]

[PAD1]

Index=0 #controller index in system game controllers list; 0 is first; -1 to ignore


this pad

Native=0 #experimental native mode, calls system xinput1_3.dll to support xinput


compatible controller together with emulated

VID=0x0810 #controller VID

PID=0x0001 #controller PID

Left Analog X=1 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to
disable

Left Analog Y=-2 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to
disable

Right Analog X=3 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to
disable

Right Analog Y=-6 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to
disable

Left Analog X+ Button=0 #button id; 0 to disable

Left Analog X- Button=0 #button id; 0 to disable

Left Analog Y+ Button=0 #button id; 0 to disable

Left Analog Y- Button=0 #button id; 0 to disable


Right Analog X+ Button=0 #button id; 0 to disable

Right Analog X- Button=0 #button id; 0 to disable

Right Analog Y+ Button=0 #button id; 0 to disable

Right Analog Y- Button=0 #button id; 0 to disable

D-pad POV=1 #POV index; 0 to disable

D-pad Up=0 #button id; 0 to disable

D-pad Down=0 #button id; 0 to disable

D-pad Left=0 #button id; 0 to disable

D-pad Right=0 #button id; 0 to disable

A=3 #button id; 0 to disable

B=2 #button id; 0 to disable

X=4 #button id; 0 to disable

Y=1 #button id; 0 to disable

Left Shoulder=5 #button id; 0 to disable

Right Shoulder=6 #button id; 0 to disable

Back=9 #button id; 0 to disable

Start=10 #button id; 0 to disable

Left Thumb=11 #button id; 0 to disable

Right Thumb=12 #button id; 0 to disable

TriggerDeadzone=5 #use 0 to 255; default 0; add deadzone to trigger

Left Trigger=7 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half
range axis; 'h' for half slider; use '-' to invert ie. x-2;

Right Trigger=8 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half
range axis; 'h' for half slider; use '-' to invert ie. x-2;

UseForceFeedback=1 #use 0 to 1; default 0

SwapMotor=0 #use 0 to 1; default 0

ForcePercent=100 #use 0 to 100; default 100


ControllerType=1 #GAMEPAD 1; WHEEL 2; STICK 3; FLIGHT_SICK 4; DANCE_PAD 5;
GUITAR 6; DRUM_KIT 8; //WILDS

AxisToDPad=0 #Use Axis to control DPad (0 disabled, 1 enabled)


//WILDS

AxisToDPadDeadZone=256 #Dead zone for Axis //WILDS

AxisToDPadOffset=0 # //WILDS

POVXReverse=0 #Reverse POV Up/Down

POVYReverse=0 #Reverse POV Left/Right

You might also like