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...
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.
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...
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")...
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...
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...
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)...
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...
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...
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.
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...
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