Today we looked at logic. There are three basic logic operators which can be used to build a vast variety of other logic operators and they are the AND, OR, and NOT logic operators. We also generated a truth table in which all the possible combinations of Boolean logic were mapped out. It turns out that there are 16 possible combinations. For my key word I will be looking closer at tautology.
Today we had to have the program written for our specific logic operation. It was a basic review of C and I am proud that I was able to write the program. I did have some issues at first figuring things out and then i realized that i was over complicating the program and needed to simplify. For my specific keyword, tautology, everything is a;lways true and therefore once realizing this the program was easy to write.
I am struggling with arrays. I understand the concept and how they work but cannot seem to implement them properly
Still having issues with arrays as well as my keyword. I have been researching converse implication but don't quite know how to demonstrate it. I guess that I need more time and practice with writing.
Affirmation/Validity/Tautology
Everything is always evaluated as true
For any two propositions P and Q, if Q implies P, then P is the converse implication of Q.
It may take the following forms:
P | Q | XNq _ _ _ _ _ 0 | 0 | 0 0 | 1 | 0 1 | 0 | 1 1 | 1 | 0
List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).
Demonstration of the indicated keyword.
If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:
/* * Sample code block */ #include <stdio.h> int main() { return(0); }
Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:
lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ ./hello Hello, World! lab46:~/src$
Can you use a function prototype to build an array
Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment.
Yes. As long as they are all of the same data type
Write a program that uses a function and writes the results into an array
Perform your experiment, and collect/document the results here.
Based on the data collected:
What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.