2. For the following program answer following. a. Draw a control flow chart. b. Generate a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. For the following program answer following. a. Draw a control flow chart. b. Generate a control flow graph. c. Generate a hybrid flow graph. d. Generate test data for maximum statement coverage. Generate test data for maximum decision coverage. e. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 NNNN 26 8888 27 Program OddandEven A, B: Real; Odd: Integer; Begin 28 29 End Read A Read B C = A + B D A B Odd = 0 If A/2 DIV 2 0 (DIV gives the remainder after division) Then Odd = Odd + 1 Endif If B/2 DIV 2 0 Then Odd Odd + 1 Endif If Odd 1 Then Print ("C is odd") Print ("D is odd") Else Print ("C is even") Print ("D is even") Endif 2. For the following program answer following. a. Draw a control flow chart. b. Generate a control flow graph. c. Generate a hybrid flow graph. d. Generate test data for maximum statement coverage. Generate test data for maximum decision coverage. e. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 NNNN 26 8888 27 Program OddandEven A, B: Real; Odd: Integer; Begin 28 29 End Read A Read B C = A + B D A B Odd = 0 If A/2 DIV 2 0 (DIV gives the remainder after division) Then Odd = Odd + 1 Endif If B/2 DIV 2 0 Then Odd Odd + 1 Endif If Odd 1 Then Print ("C is odd") Print ("D is odd") Else Print ("C is even") Print ("D is even") Endif
Expert Answer:
Related Book For
Managerial Economics
ISBN: 978-0133020267
7th edition
Authors: Paul Keat, Philip K Young, Steve Erfle
Posted Date:
Students also viewed these databases questions
-
If the focal length of a lens is 3 centimeters and the image distance is 5 centimeters from the lens, what is the distance from the object to the lens?
-
Strickland Co. currently charges manufacturing over-head costs to products using machine hours. However, company management believes that the use of ABC would provide more realistic cost estimates...
-
A random sample of n = 5 is to be selected from N = 50. In how many different ways can the sample be drawn?
-
Fill in the missing amounts in the following schedules. * Half of each months sales are on account. June sales amounted to $ 180,000. 60% of credit sales is collected in the month of sale; 40% is...
-
Consider the flat-plate heat transfer to be solved by the similarity approach. Show all the details leading to Eq. (18.15). What are the boundary conditions on \(\theta\) ? Extend your MATLAB code to...
-
City Publishing was recently organized. The company issued common stock to an attorney who provided legal services worth $17,000 to help organize the corporation. City Publishing also issued common...
-
Responding to activities that are regarded as computer crimes requires specific activities to be carried out from beginning to end. A. Name ANY TWO (2) positions for members included in an incident...
-
3. Location Choice There is a new tech company Humbl", with a single consumer market in town A. Humbl uses two inputs, these are obtained from respectively the cities B and C, which are 600...
-
Suppose that a certain college class contains 36 students. Of these, 17 are juniors, 22 are social science majors, and 12 are neither. A student is selected at random from the class. (a) What is the...
-
A company purchased land in 2 0 1 5 for $ 5 0 , 0 0 0 . Now, in 2 0 1 9 , it is appraised at $ 6 0 , 0 0 0 . What values should be the Land account balance on the balance sheet in 2 0 1 5 and in 2 0...
-
Terms of Sale A company sells: $ 2 4 , 0 0 0 in January $ 2 5 , 6 0 0 in February $ 2 4 , 8 0 0 in March $ 2 6 , 1 0 0 in April. Company Terms of Sale are: 3 5 % cash, 4 0 % net 3 0 , and 2 5 % net 6...
-
Cost per Unit Cost per Period Direct materials $ 5.00 Direct labor $ 2.90 Variable manufacturing overhead $ 1.25 Fixed manufacturing overhead $21,000 Sales commissions $ 1.00 Variable administrative...
-
Alina is single, employed and dabbles in real estate. This year her AGI will be $116,000 and will have a $32,000 loss from her rental property that she actively participated in managing. How much in...
-
A system has a 3 ring security model . Ring 0 is used for a hypervisor, HV, managing virtual machines, Ring 1 is used for the O/S kernel of any of the virtual machines running, and Ring 2 is used by...
-
Stephanie Adkins is an accountant who is trained in forensic accounting. She is an experienced fraud investigator. She was recently hired by Lake Side Hotels, a closely-held corporation, to...
-
Below is a sample of the data in the file NFLAttendance which contains the 32 teams in the National Football League, their conference affiliation, their division, and their average home attendance....
-
What is the objective of capital budgeting?
-
Why is depreciation important in the analysis of a capital budgeting proposal?
-
"The best forecasting method is the one that gives the highest proportion of correct predictions." Comment.
-
To test \(H_{0}: \sigma=50\) versus \(H_{1}: \sigma <50\), a random sample of size \(n=24\) is obtained from a population that is known to be normally distributed. (a) If the sample standard...
-
(a) Determine the critical values for a right-tailed test of a standard population deviation with 18 degrees of freedom at \(\alpha=0.1\) level of significance. (b) Determine the critical values for...
-
In Example 2 from Section 10.3, the quality-control engineer for M\&MMars tested whether the mean weight of fun-size Snickers was 20.1 grams. Suppose that the standard deviation of the weight of the...
Study smarter with the SolutionInn App