What is the value of k after the following algorithm has been executed? Justify your answer....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
What is the value of k after the following algorithm has been executed? Justify your answer. What counting formula did you apply? k = 0; for it = 1 to 8 for i2 = 1 to 1 for i3 = 1 to 2 : for 10 =1 to ig k = k + 1; Q3. Which of the following statements are true? Justify your answers. Which counting principles did you apply? 1. A programmer wrote 690 lines of code in 14 days. There must have been at least 1 day when the programmer wrote 50 or more lines of code. 2. One must pick up at least 80 integers from 1 through 100 (both 1 and 100 are included) in order to be sure of getting one that is divisible by 5. What is the value of k after the following algorithm has been executed? Justify your answer. What counting formula did you apply? k = 0; for it = 1 to 8 for i2 = 1 to 1 for i3 = 1 to 2 : for 10 =1 to ig k = k + 1; Q3. Which of the following statements are true? Justify your answers. Which counting principles did you apply? 1. A programmer wrote 690 lines of code in 14 days. There must have been at least 1 day when the programmer wrote 50 or more lines of code. 2. One must pick up at least 80 integers from 1 through 100 (both 1 and 100 are included) in order to be sure of getting one that is divisible by 5.
Expert Answer:
Answer rating: 100% (QA)
Answer k 0 for i1 1 to 8 for i2 1 to 1 for i3 1 to 2 for i10 1 to ig k k 1 The counting formula for ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
When shareholders increase their wealth through downsizing, does this come, to some degree, at the expense of loyal employeesthose who have worked diligently to serve the firm in terms of...
-
Determining Ending Balances in Land and Building Accounts Maldive Company completes the construction of a building. The following separate items are the costs relevant to the purchase of the lot and...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Python Question needed solving is at bottom #Function implementing the Extended Euclidean Algorithm import mathdef egcd(a,b): # b must not be zero otherwise the concept of gcd will fail #base case if...
-
How might the way in which Hostess Brands Inc. grew have contributed to its eventual financial distress?
-
Louise Incorporated operates in Alberta, where it is subject to GST of 5%. In August, Louise purchased $29,400 of merchandise inventory, and had sales of $45,000 on account. Louise uses a periodic...
-
What items must be included in a trial notebook?
-
Provide examples of important audit objectives for complex financial instruments and transactions. For each audit objective that you identify, list one or more audit procedures that could be used to...
-
Forten Company's current year income statement, comparative balance sheets, and additional information follow. For the year, (1) all sales are credit sales, (2) all credits to Accounts Receivable...
-
Ellipses Corp is a small business that operates in Herndon, VA. The company is located at10 Period Lane, Herndon, VA 20170. Its federal Employer Identification Number is 77-7777777, and its...
-
4- Assume 0.5 0.8 1.0 0.9 0.6 0.4 MB = + + 60 40 20 T = + U = 10 8 6 1 0.8 0.6 0.4 + 0.9 0.8 90 + + 0.7 0.6 Calculate the R = B x T S = TX U W = ROS ~
-
2x+9x-6 1. Find the derivative of the algebraic function f(x)=- -3 2. Find the derivative of the function f(x)=- 4e 5x-6 3. Find the derivative of the function f(x)=5x' Inx 4. 5. Find the derivative...
-
1 12 2 3 4 5 6 7 8 9 10 11 42 12 13 14 15 16 17 A B C Company HP Dell Apple Toshiba Acer Others The personal computer market is undergoing a transition due to increase tablet sales. The table below...
-
In your email to Jennifer, please craft six open-ended questions about the company's needs. You can learn more about open and closed questions using the resources provided. Your email should include:...
-
A woman pushes a 2.2 kg box with a force of 27.9 N. The coefficients of friction between the box and the surface are 0.54 for static friction and 0.51 for kinetic friction. Create a free-body diagram...
-
Crane Company was incorporated in Delaware in 2017. On November 2, 2024, the controller of the company entered into a forward contract to sell 36,000 British pounds for $1.5920 on March 1, 2025. The...
-
Suppose that on October 24 you buy 10 March gold futures contracts for $250 per ounce. At 11:00 am on October 25 you buy 8 more contracts for $259.0 ounce. At the close of trading on October 25, gold...
-
Question 2 For an n x n matrix A = form) via (aij)
-
Ann hires a nanny to watch her two children while she works at a local hospital. She pays the 19-year-old nanny $125 per week for 48 weeks during the current year. a. What is the employer's portion...
-
Clarita is a single taxpayer with two dependent children, ages 10 and 12. Clarita pays $3,000 in qualified child care expenses during the year. If her adjusted gross income (all from wages) for the...
-
Frank, age 35, and Joyce, age 34, are married and file a joint income tax return for 2012. Their salaries for the year total $83,000 and they have taxable interest income of $4,000. They have no...
-
The Excel formula to compute net income's percentage of sales in Exhibit 7-5, is a. \(=B 4 * B 2\) b. \(=B 4 / B 2\) c. \(=\mathrm{B} 2-\mathrm{B} 3\) d. \(=\mathrm{B} 4+\mathrm{B} 3\) EXHIBIT 7-5 A...
-
Match each component of a computerized accounting system with its meaning. Meaning Component Electronic linkages that allow different computers A. Server to share the same information Electronic...
-
Complete the crossword puzzle that follows. 2 3 4 5 6 Down: 1. Managers need over operations in order to authorize transactions and safeguard assets 3. Programs that drive a computer 4. Electronic...
Study smarter with the SolutionInn App