By using single layer perceptron algorithm classify the following patterns. Where X1 and X2
are inputs Y is the output. Learning rate is 0.5 , output is 1 if weighted sum >=0.5 otherwise
0 and weights w1 =0.2 and w2 = 0.3 [5]
X1 X2 Y
0 0 0
0 1 1
1 0 1
1 1 1
Write a funtion using C++ statements called getTotalPraduction() which takes two integer values (value1,value2) and returns the total value
write a c++ program to create a class called date that has separate member data for day month year one constructor should initialize
this data to 0 and another should initialize it to fixed values .another member function should display it The final member function
should compare two objects of type date passed as arguments. A main() program should create two initialized date objects(among these one
should contain today's date and another one should contain your date of birth) and one that isn’t initialized. Then it should compare
the two initialized values together, leaving the result in the third date variable. Finally it should display the value of this
third variable. Make appropriate member functions const.
write a c++ program to create a class called date that has separate member data for day month year one constructor should initialize
this data to 0 and another should initialize it to fixed values .another member function should display it The final member function
should compare two objects of type date passed as arguments. A main() program should create two initialized date objects(among these one
should contain today's date and another one should contain your date of birth) and one that isn’t initialized. Then it should compare
the two initialized values together, leaving the result in the third date variable. Finally it should display the value of this
third variable. Make appropriate member functions const.