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
-
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...
-
A Gyroscope on the Moon A certain gyroscope processes at a rate of 0.50 rad/s when used on earth. If it were taken to a lunar base, where the acceleration due or gravity is 0.165g, what would be its...
-
As the bookkeeper for Potter Cleaning Service, a. From the trial balance columns of the worksheet on page 221, enter the beginning balance of each account before adjustments in your working papers....
-
This case stems from a rocky relationship between two Texans. Lawrence Shipley was the president of Shipley Do-Nut Flour & Supply Co., and Andrea Vasquez was a substitute school teacher in the...
-
Elmhurst Partss initial and unaudited records show the following ending inventory balances, which must be adjusted to actual costs: As the auditor, you have learned the following information. Ending...
-
5. Consider uniform, inviscid, supersonic flow exhausting from a rocket engine nozzle. For fixed back pressure p (i.e., the ambient pressure outside the nozzle), qualitatively draw the first few wave...
-
The following information relates to Kamelwa limited a retail grocer engaged in buying and selling of foodstuffs. (1) Budgeted sales (2021) : January K500,000 February K450,000 March K625,000 April...
-
Matthew, Inc., owns 30 percent of the outstanding stock of Lindman Company and has the ability to significantly influence the investee's operations and decision making. On January 1, 2021, the...
-
Government spending in Robok is $140 billion, and its only tax is an income tax with a marginal tax rate of 0.2. a. The balance on the government's budget at a GDP level of $450 billion is a (Click...
-
Read the case study Spectrum - The Spawn of Time Warner Cable and Charter Communications - Navigates Challenges from Cord Cutting and Mobile Competition on pages 473-491 in Baye and Prince (2022). On...
-
Working for a bank is fun, you meet numerous people, and each one of them has his own story to tell. You assess their financial health and issue recommendations to improve it. You like your job, and...
-
What are the components are not considered during a risk assessment audit to gauge the effectiveness of a firm's ethics programs? Briefly describe all component.
-
- Association questions (10 marks) Match up the following credit management elements to the underlying reasons for these elements and answer the questions below. #1 #2 #3Element Underlying...
-
Assume there are 200 million television sets in the US and one quarter are replaced annually. Also 5 million households are formed annually each on the average purchase 2 televisions. Calculate the...
-
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.
-
The required rate of return is 12%, and the expected rate of inflation over the life of the project is forecast to remain steady at 3%. Should you invest in this project?
-
For your answer to Problem 3.11, construct an argument as to why this selection process is useful for deciding which project is best. Now, construct a counterargument to criticize this choice. In...
-
Scoring Model. Suppose the information in Problem 3.13 was supplemented by importance weights for each of the four assessment criteria, where 1 = low importance and 4 = high importance: Assume, too,...
Study smarter with the SolutionInn App