4. #include #include int main (void) { } Draw the flow chart for the following piece...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. #include <stdio.h> #include <math.h> int main (void) { } Draw the flow chart for the following piece of code. int A1, B1, A2, B2, A3, B3, countp = 0, countn = 0;; float L1, L2, L3; char r; do { scanf("%d %d %d %d %d %d", &A1, &B1, &A2, &B2, &A3, &B3); L1 = sqrt (pow (A1 A2,2)+(B1 B2, 2)); B3,2)); L2 = sqrt (pow (A2 L3 = sqrt (pow (A3 A3,2)+(B2 A1,2) + (B3 B1,2)); if ((L1 L2 >= L3) && (L2 + L3 >= L1) && (L3 + L1 L2)) countp= countp + 1; countn + 1; else countn scanf("%c", &r); } while (r = 'Y' || = 'y'); printf("%d %d", countp, countn); return 0; 4. #include <stdio.h> #include <math.h> int main (void) { } Draw the flow chart for the following piece of code. int A1, B1, A2, B2, A3, B3, countp = 0, countn = 0;; float L1, L2, L3; char r; do { scanf("%d %d %d %d %d %d", &A1, &B1, &A2, &B2, &A3, &B3); L1 = sqrt (pow (A1 A2,2)+(B1 B2, 2)); B3,2)); L2 = sqrt (pow (A2 L3 = sqrt (pow (A3 A3,2)+(B2 A1,2) + (B3 B1,2)); if ((L1 L2 >= L3) && (L2 + L3 >= L1) && (L3 + L1 L2)) countp= countp + 1; countn + 1; else countn scanf("%c", &r); } while (r = 'Y' || = 'y'); printf("%d %d", countp, countn); return 0;
Expert Answer:
Answer rating: 100% (QA)
Start dectare As B1 A2 B2 A3 B3 assign countpED courtin D declare ... View the full answer
Related Book For
Posted Date:
Students also viewed these computer network questions
-
Workplace safety has economic, reputational, and ethical implications. What do you think these implications may be? what are the best aspects in employment law in the workplace?
-
Functionally simulate (with 15 test cases) the 8-bit adder given in: (a) Figure 6-19(a) (b) Figure 6-19(b) Figure 6-19 A[8.. 1] B[8..1] A[8..1] B[8.. 1] INPUT GND INPUT INPUT INPUT A[8.. 1] B[8..1]...
-
The following is a Southern blot of EcoRI-digested DNA of rye plants from two different inbred lines, A and B. Developed autoradiogram I shows the bands resulting from probing the blot with...
-
B-bol King Co. started a new promotional program. For every 10 box tops returned, customers receive a basketball. The entity estimated that only 60% of the box tops reaching the market will be...
-
Why is there no effect on other branches in a parallel circuit when one branch of the circuit is opened or closed?
-
Brower Corporation owns a manufacturing plant in the country of Oust. On December 31, 2017, the plant had a book value of $5,000,000 and an estimated fair value of $8,000,000. Oust's government has...
-
Memorial Medical Center bought equipment on January 2, 2010, for $30,000. The equipment was expected to remain in service for four years and to perform 1,000 operations. At the end of the equipments...
-
Distinguish between an auditors responsibilities to detect and report errors, illegal acts, and fraud. What role does materiality have in determining the proper reporting and disclosure of such...
-
Category Billions of dollars Consumption 400 Investment 150 Government spending 80 Exports 210 Imports 60 Foreign income payments to domestic factors 20 Domestic income payments to foreign factors 10...
-
Use functional decomposition to find the best implementation of the function f (x 1 , . . . , x 5 ) = m(1, 2, 7, 9, 10, 18, 19, 25, 31) + D(0, 15, 20, 26). How does your implementation compare with...
-
Which of the following is true of pointers to functions? out of Select one: O a. it is possible to define more than one question pointer function to the same function. O b. They can be pointing to...
-
Learned optimism has been identified by psychologist Martin Seligman as a prerequisite for being successful personally and professionally. Access the Positive Psychology home page...
-
In terms of leadership strategy and communication styles, compare and contrast the communication and behavior styles of Jeff Bezos and Elon Musk. Identify the similarities and the differences in...
-
Using a negotiations worksheet, plan your responses to the following statements made by the purchasing manager: (a) We are concerned that you will not be able to meet our quality requirements; (b)...
-
Briefly describe the organization of this book.
-
Being a product and industry expert implies that the salesperson has knowledge of the most common product information categories. List the categories of product and industry knowledge a salesperson...
-
Your client, ABC Ltd. has a system for inputting purchase and expense invoice where the operator inputs the following from each item. Order number (a code 2221 is used for items like electricity)...
-
If M = 7, s = 2, and X = 9.5, what is z?
-
Show that the eigen values of a triangular matrix are the diagonal elements of the matrix.
-
Let U be an n n upper triangular matrix with nonzero diagonal entries. (a) Explain why U must be nonsingular. (b) Explain why U-1 must be upper triangular.
-
Let v1, v2 be two vectors in a vector space V. Show that v1 and v2 are linearly dependent if and only if one of the vectors is a scalar multiple of the other.
-
Given two matrices $A$ and $B$ satisfying the commutation relation $$\begin{equation*} [A, B]=B \tag{6.408} \end{equation*}$$ calculate $$\begin{equation*} \exp (i \alpha A) B \exp (-i \alpha A)...
-
Show that, given two tangent vectors $V$ and $W$ of a hypersurface $\Sigma$, contraction with the projection tensor $P_{\mu u}$ reduces to a scalar product: $$\begin{equation*} P_{\mu u} V^{\mu}...
-
Show that the scalar $K$, which, according to Eq. (5.366), is constructed from the extrinsic curvature as $K=g^{\mu v} K_{\mu u}$, is equal to the covariant divergence of the normal vector field,...
Study smarter with the SolutionInn App