C PROGRAMMING
Show what each of the following statements prints. If a statement is incorrect, indicate why.
e)printf( "% ld\n%+ld\n", 7000000, 4000000 );
f) printf( "%10.3E\n", 454.93738 );
g) printf( "%10.3g\n", 464.93738 );
h) printf( "%d\n", 10.937 );
ANSWER:-
(e) printf( "% ld\n%+ld\n", 7000000, 4000000 );
// OUTPUT
7000000 +4000000
(f) printf( "%10.3E\n", 454.93738 );
// OUTPUT
4.549E+02
(g) printf( "%10.3g\n", 464.93738 );
// OUTPUT
465
(h) printf( "%d\n", 10.937 );
// OUTPUT
undefined (according to system)
C PROGRAMMING Show what each of the following statements prints. If a statement is incorrect, indicate...
8. Indicate whether each of the following statements is true or false. If a statement is false, explain why a) Two structural isomers may be chiral. : True b) A compound must be chiral in order to have an enantiomer. True c) A chiral compound with an asymmetric carbon atom designated always has a positive optical rotation. False (R) as d) Mirror-image molecules are always enantiomers. False chiral. False e) All compounds with asymmetric carbon atoms are f)The relative configuration...
C Programming Can someone please explain me while the following (c) code prints out 6? for (i=1; x<=5; i++); printf ("%d",i); i=1 initializes the the loop, it is being tested whether it is <= 5 or not. This statement is true, so it goes into the loop and prints 1. After that, i++, means 1+1=2, i=2. This statement is being tested and it is true, we go into the loop and print 2. Then i=3, true, loop prints 3 -->...
I NEED HELP WITH C PROGRAMMING. Answer each of the following. Assume that unsigned integers are stored in 4 bytes and that the starting address of the array is at location 200 600 in memory. i)What address is referenced by vPtr + 5? What value is stored at that location? j) Assuming vPtr points to values[6] , what address is referenced by vPtr -= 4? What value is stored at that location? Also ..... For each of the following, write...
Need help with these questions in C programming:
9. What is the output of the following code? int X[10]={0}; int N=4; for(int k=0; k<N:k++) X[k] = k*2: printf("%d", X[N/2]; 10. Write a single statement to accomplish each of the following. Assume that each of these statements applies to the same program. a. Write a statement that opens file "oldmast.dat" for reading and assigns the returned file pointer to ofPtr. b. Write a statement that opens file "trans.dat" for writing and...
a. Define what it means for two logical statements to be equivalent b. If P and Q are two statements, show that the statement ( P) л (PvQ) is equivalent to the statement Q^ P c. Write the converse and the contrapositive of the statement "If you earn an A in Math 52, then you understand modular arithmetic and you understand equivalence relations." Which of these d. Write the negation of the following statement in a way that changes the...
6. Consider the following statements about the macroeconomy. For each, indicate whether the statement best distinguishes the strict Keynesian view, strict classical view, or neither of these views a. All prices are completely flexible. b. The primary focus is on aggregate supply. c. Spending is the key determinant of output. d. Capital is the key source of economic growth. e. Saving can be detrimental to the economy. f. The macroeconomy generally takes care of itself. g. Every dollar borrowed requires...
QS 2-9 Classifying accounts in financial statements p3 Indicate the financial statement on which each of the following items appears. Use I for income statement, E for statement of owner's equity, and B for balance sheet. a. Services Revenue b. Interest Payable c. Accounts Receivable d. Salaries Expense e. Equipment f. Prepaid Insurance g. Buildings h. Rental Revenue i. Owner Withdrawals j. Office Supplies k. Interest Expense i. Insurance Expense
Indicate whether each of the following items will be reported on the statement of financial position (SFP), statement of income (SI), both the statement of financial position and statement of income (B), or neither statement (N)—for example, it might appear only on the statement of cash flows. a. Notes receivable b. Interest revenue from a short-term investment c. Common shares d. Accounts payable e. Depreciation expense on a building f. Interest expense g. Cash from the issuance of shares h....
Indicate whether each of the following items will be reported on
the statement of financial position (SFP), statement of income
(SI), both the statement of financial position and statement of
income (B), or neither statement (N)—for example, it might appear
only on the statement of cash flows.
Indicate whether each of the following items will be reported on the statement of financial position (SFP), statement of income (SI), both the statement of financial position and statement of income (B), or...
C Programming
What is the output of the following code? int x=5: x * = 3: printf("%d\n", x): x++: ++x: x = x/2: printf("%d\n", x): printf("%d\n", x++): printf("%d\n", ++x);