Recent content by ccky

  1. C

    Simplifying Boolean Algebra Equations with Distribution and DeMorgan's Law

    a'+ a + a'd' + b'c' + b' d' 1+a'd' + b'c' + b' d' 1
  2. C

    Simplifying Boolean Algebra Equations with Distribution and DeMorgan's Law

    I continue to calculate following the picture show on the The attempt at a solution First: A'(C+D')+(A+C'+D')(A+A'+B') Use distributive A'(C+D')+(A+C'+D')(1+B') But i was wondering whether i can change to 1+B' to 1,because the list only show that 1+A=1 Second...
  3. C

    Simplifying Boolean Algebra Equations with Distribution and DeMorgan's Law

    Sorry for the vague picture.The bar not include in the A term. Should i use the Demorgan in the whole question firstly including the A. As the picture shows,then,i continue to use Distributive or Absorption,but failed.
  4. C

    Simplifying Boolean Algebra Equations with Distribution and DeMorgan's Law

    Homework Statement Homework Equations Boolean Algebra The Attempt at a Solution I use the distri to change the A+C'.D and Demorgan. Should i use dis and Demorgan firstly like below? Which property I should use in the next step? If the first part is wrong,which property i should...
  5. C

    Replacing ' ' with Enter in Strings

    The lab requires me to displace that: Enter a string:This is a string One word per line is: This is a string How can I replace the ' 'with Enter. #include <stdio.h> #define STRSIZE 81 void dispStr(char message[STRSIZE]) { int i; printf("\nOne word per line is :\n")...
  6. C

    [C] Lab question. (Pass by reference)

    I have modified the part you say.Thanks! I want to ask another question. I am doing a lab regarding 'guess number game' Actually,the answer should be the random number,but I set the exact number to 88,because it is easy for me to test other requirement. I need to printf("Best Score so far...
  7. C

    [C] Lab question. (Pass by reference)

    Thank all for helping me! I modify the another part. void getNumSum(float *aSumAddr) { float Total; Total=0.01; *aSumAddr+=Total; printf("the current accumulative sum is %f",*aSumAddr); } and,some Multiple choice questions. I hope you can help me confirm the...
  8. C

    [C] Lab question. (Pass by reference)

    I modify the program.Is it that? My thought is that pass an reference is to use a address to store the variable... #include <stdio.h> void getNumSum(float *); int main() { float aSum; printf("type the floating point number :"); scanf(" %f", &aSum); getNumSum(&aSum)...
  9. C

    [C] Lab question. (Pass by reference)

    a)Write a function,named getNumSum(),for accumulating(summing)float numbers; -The function has no return value -The function has 1 input argument named aSum:the current accumulative sum to be "updated" inside this function(Hint:use pass by reference) -The function asks user for a float...
  10. C

    Converting 43.3 from Base 7 to Base 8

    71x3 =0.42857... The answer is 37.3... Is it that?
  11. C

    Converting 43.3 from Base 7 to Base 8

    Homework Statement Convert(43.3)7to base 8?using no more than one octal digit to the right of the radix point.Truncate any remainder by chopping excess digits.Use an ordinary unsigned octal representation. Homework Equations Base8,decimal. The Attempt at a Solution (43.3)7...
  12. C

    C/C++ Calculation in C++: B-C && (B-A) /C - Which Answer is Right?

    I am doing my homework regarding calculation in c++. I am confused by the below question. Int A=2 B=3 C=4 B-C && (B-A) /C I think the answer is 0 because the first part is negative. But,my friends say the answer is 1 because -1 not mean false. I want to ask which answer is right? Thanks.
  13. C

    Decimal Values of 8-Bit Bit Patterns

    Homework Statement Find the decimal values for the following 8-bit bit pattern A)00000010 in excess 128 representation B)10000010 in excess 128 2's complement representation C)10000010 in excess 128 representation Homework Equations Binary 2's complement The Attempt at a Solution...
  14. C

    Decimal Equivalent of Largest Unsigned Binary: 8bits=256, n bits

    Homework Statement What is the decimal equivalent of the largest unsigned binary that can be obtained with: a.8bits. b:n bits Homework Equations The Attempt at a Solution A:2^8=256. 2^8-1=255 how I can change the number to binary number? B.I can't get the direction of n bits
Back
Top