sum = 0 For i = 1 To 10 Step 2 sum = sum +i Next...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
sum = 0 For i = 1 To 10 Step 2 sum = sum +i Next i What will this piece of code do? Show the numbers from 1 to 10 as an Excel column Add all the numbers from 1 to 10 and store the result in the variable sum Add the odd numbers from 1 to 10 and store the result in the variable sum. Add the even numbers from 1 to 10 and store the result in the variable sum sum = 0 For i = 1 To 10 Step 2 sum = sum +i Next i What will this piece of code do? Show the numbers from 1 to 10 as an Excel column Add all the numbers from 1 to 10 and store the result in the variable sum Add the odd numbers from 1 to 10 and store the result in the variable sum. Add the even numbers from 1 to 10 and store the result in the variable sum
Expert Answer:
Answer rating: 100% (QA)
The detailed answer for the above question is provided below Answer The g... 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
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
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...
-
7. Given : (i) Losses follow exponential distribution with mean 1000. (ii) There is a deductible of 500. each (i) 10 losses are expected to exceed the deductible / year. A. Determine the amount to...
-
A Cubs baseball player gets 3 hits every 8 times at bat. At this rate, if he got 12 hits, find how many times he batted.
-
Why would a banking system that wanted to keep some excess reserves rather than lending out all of them hinder the Feds ability to increase the money supply?
-
Cheung Keong Ltd. currently has \($2,150,000\) in current assets and \($860,000\) in current liabilities. The companys managers want to increase the firms inventory, which will be financed by a...
-
Christie Corporation is trying to determine the effect of its inventory turnover ratio and days sales outstanding (DSO) on its cash flow cycle. Christies 2008 sales (all on credit) were $150,000; and...
-
4. In doubly linked lists, traversal can be performed?4 a) Only in forward direction b) Only in reverse direction c) In both directions d) None
-
Create and Format a Table 1. Open VRSeries.xlsx and save it with the name 3-VRSeries. 2. Select the range A3:K34 and create a table. The table has headers. 3. Name the table Inventory. 4. Apply the...
-
3. Create a second-degree equation that can be solved by the following sinusoidal and linear graphs. The upper line is defined by y = Also, state the general solutions to this equation. %3! -3m -2m...
-
Moses and Co. Market Wholefoods is an Australian-based exclusive retailer of Tofutti Brands's dairy-free products. It operates at capacity and decides to apply ABC analysis to the three main Tofutti...
-
A single error correcting code, Long(6, 3), is designed so that 3 parity check digits are appended to the end of a 3-digit input, using GF(7). The parity check matrix H is given by 1 1 1 H = 1 2 3 1...
-
Cadbury is a UK MNC with affiliates and subsidiaries located internationally. Cadbury's Australian subsidiary sells 3,365 tons of sugar cane extract each year to the Swiss affiliate at a transfer...
-
Consider the closed queueing network of single server queues with exponentially distributed service times, as shown in the figure below. The average service rates of Q1, Q2, and Q3 are respectively,...
-
What is the derivative of f(x) = (2x + 1)2 e4r
-
In a high school graduating class of 100 students, 54 studied mathematics, 69 studied history, and 35 studied both mathematics and history. If one of these students is selected at random, find the...
-
After Theorem 1.5 we note that multiplying a row by 0 is not allowed because that could change a solution set. Give an example of a system with solution set S0 where after multiplying a row by 0 the...
-
During the 2012 tax year, Irma incurred the following expenses: Union dues..............................................................$275 Tax return preparation...
-
If Charles, a 16-year-old child model, earns $50,000 a year and is completely self supporting even though he lives with his parents, can his parents claim him as a dependent? Why or why not?...
-
Greg died on July 1, 2012, and left Lea, his wife, a $50,000 life insurance policy which she elects to receive at $5,000 per year plus interest for 10 years. In the current year, Lea receives $6,200....
-
Depository institutions have been losing their advantage over other financial intermediaries in attracting customers funds. Why?
-
In the aftermath of the financial crisis of 20072009, there were calls to reinstate the separation of commercial and investment banking activities that was removed with the repeal of the...
-
The globalization of banking has led to the need for global benchmarks for interest rates. In light of the LIBOR scandal, what characteristic do you think is most central to any new interest rate...
Study smarter with the SolutionInn App