so this...
output[1] = output[1] AND (NOT a[1]) = 1 AND (NOT 1) = 0
i = 2
output[2] = output[2] AND (NOT a[2]) = 0 AND (NOT 1) = 0
i = 3
output[3] = output[3] AND (NOT a[3]) = 1 AND (NOT 0) =...
Type: Posts; User: oliversacks
so this...
output[1] = output[1] AND (NOT a[1]) = 1 AND (NOT 1) = 0
i = 2
output[2] = output[2] AND (NOT a[2]) = 0 AND (NOT 1) = 0
i = 3
output[3] = output[3] AND (NOT a[3]) = 1 AND (NOT 0) =...
and it is stated in the assignment to read left to right but it is easy to translate your answers to see what it means
this is the only extra information...
Trace through the algorithm for input a = 0011, b = 1010. Specifically,
(a) show the values of i and output immediately before each time Line 4 is executed, (b)...
the formatting didn't hold when i posted.. lines 3-4, 8-9 are indented... line 8 should have italics for output[i] (which is also written backwards somehow)
I know this is a section devoted to C++ programming but I hope my question is ok...
I am having a lot of trouble understanding pseudocode algorithms in my intro Comp Sci class. I understand what...
I know this is the video game section but it also said algorithms so I hope this post is ok...
I am having a lot of trouble understanding pseudocode algorithms in my intro Comp Sci class. I...
thanks salem... and I will be careful how I post in the future.
salem that is how I did it the first time as well... But I thought I had to keep going while i <= 6? so would I not go on until i reaches 6?
my response looked more lined up before i posted it... but i was trying to place S1,S2 etc above each corresponding letter in pepper
Ok here is what I was thinking for the first one:
S1| S2| S3| S4| S5| S6| n=6 (number after S for each character in pepper)
p e p p e r ch= S1 (p)
...
I do not care if the problems are spelled out or if it is helped by having a discourse about the problem... I am just asking for help
I understand what you are saying... however these were 2 of many problems which are not actually graded just discussed in groups which end up doing more difficult problems during class together....
Hello... I thought I understood this but apparently I do not... Rather than putting what I think the answers are I just want someone to explain it to me like I am an idiot who has no preconceived...