1. A computer structured programming segment con- tains the following program segment. What is the value...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. A computer structured programming segment con- tains the following program segment. What is the value of Y after the segment is executed? Y = 4 B = 4 Y = 3 * B-6 IF Y > B THEN Y = B - 2 IF Y <B THEN Y = Y + 2 IF Y = B THEN Y = B+ 2 (A) 2 (B) 6 (C) 8 (D) 12 2. The numbers -3, 4, 0, -5, -1, 5,... are in a file to be read and processed by the structured program shown. The number after the program is executed is most nearly Set I= 1 andY = 0 %3D %3D WHILE I<3 Read a value from the file and set X equal to that vaiue If X <0 GOTO 1 ELSE Y = Y +X*X 1 Increment I by 1 ENDWHILE Z = Y/I (A) 1.0 (B) 2.7 (С) 4.0 (D) 26- 1. A computer structured programming segment con- tains the following program segment. What is the value of Y after the segment is executed? Y = 4 B = 4 Y = 3 * B-6 IF Y > B THEN Y = B - 2 IF Y <B THEN Y = Y + 2 IF Y = B THEN Y = B+ 2 (A) 2 (B) 6 (C) 8 (D) 12 2. The numbers -3, 4, 0, -5, -1, 5,... are in a file to be read and processed by the structured program shown. The number after the program is executed is most nearly Set I= 1 andY = 0 %3D %3D WHILE I<3 Read a value from the file and set X equal to that vaiue If X <0 GOTO 1 ELSE Y = Y +X*X 1 Increment I by 1 ENDWHILE Z = Y/I (A) 1.0 (B) 2.7 (С) 4.0 (D) 26-
Expert Answer:
Answer rating: 100% (QA)
E new 5 Notepad File Edit Search View Encoding Language Settings Tools Macro R... View the full answer
Related Book For
Posted Date:
Students also viewed these computer engineering questions
-
What is the value of online auctions in e-commerce?
-
What is the value of self-service in an economy?
-
What is the value of self assessment for individual career planning and organizational career management? Why should employees seek feedback from others regarding their job performance and career...
-
Implement two versions of the RESULT(s, a) function for the 8-puzzle: one that copies and edits the data structure for the parent node s and one that modifies the parent state directly (undoing the...
-
Cr atoms can have a wide range of oxidation numbers. Assign oxidation numbers for the Cr atom in each compound, all of which are known compounds. a. Na2CrO4 b. Na2Cr2O7 c. CrF5 d. CrCl3 e. CrCl2
-
It is easier to measure the electrical resistivity of a metal than to measure its thermal conductivity. A new alloy has an electrical resistivity \(ho_{e}\) of \(55 \mu \Omega \mathrm{cm}\). Use the...
-
Global Quality Ltd produces two types of embossing machines, a standard model and a deluxe model. The budgeted factory overhead costs for the production operation during 2025 are as follows....
-
Posa Hotels, Inc., has a sixth night free policy. Every sixth night a guest stays at the hotel is free. Because not all guests stay enough nights to earn a free stay, on average the number of free...
-
What is its unit price? Let's think of a batch of 100 baked goods...what is its total price? Speculate how much is the cost to bake (AND sell) that 1 batch (100 units)? Calculate its related gross...
-
You are a lead auditor from ABC Auditors Pty Ltd. Your client is Cassey's Quality Cars Ltd who are a large car dealership with branches across Queensland. ABC Auditors have performed audits for past...
-
What are the key elements of Under Armours strategy? Select yes for those statements below that are accurate and choose no for those statements that are not. a. Broadening the companys product...
-
What are business to consumer (B2C) and business to business (B2B) Web applications, and what are some examples of each type?
-
Industry studies indicate that mobile and wireless technology has become one of the major technology drivers for designing new information systems. Why is this the case and what is the impact?
-
Briefly explain the impact of Web services on Web development. Give some examples of Web services.
-
Define the following: top lease bonus option to lease purchase in fee delinquent taxes paid by the lessee impairment internal costs
-
What are the two most important advantages of object-oriented software technologies over structured software technologies?
-
Apply Depth-First Search (DFS) algorithm to the graph G below. Assume that vertices are listed in alphabetical order in each adjacency list. In addition, consider that the vertices are taken in the...
-
Review Exhibit 11.4. Analyze each product on the graph according to the characteristics that influence the rate of adoption. For example, what can you conclude from the data about the relative...
-
Briefly describe the steps that are used to develop a forecasting system.
-
The text provides three primary ways-strategic approaches (differentiation, cost, and response)-for achieving competitive advantage. Provide an example of each not given in the text. Support your...
-
Discount-Mart, a major East Coast retailer, wants to determine the economic order quantity (see chapter 12 for EOQ formulates) for its halogen lamps. It currently buys all halogen lamps from...
-
Figure 4 shows a scatterplot for the variables life expectancy and infant mortality in 16 countries. What type of correlation does it show? Does this correlation make sense? Does it imply causality?...
-
Figure 5 shows a scatterplot for the variables number of farms and mean farm size in the United States. Each dot represents data from a single year between 1950 and 2000; on this diagram, the earlier...
-
The scatterplots in Figure 6 show two weeks of data comparing the actual high temperature for the day with the same-day forecast (part a) and the three-day forecast (part b). Estimate the correlation...
Study smarter with the SolutionInn App