In VBA define a function named spaghetti, where spaghetti - (x + 8). Variable x must...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In VBA define a function named spaghetti, where spaghetti - (x + 8)". Variable x must be taken as integers and the output of function spaghetti should be an integer. (15%) (a) If farfalle is a function of variables a and b, and is saved in an excel workbook called book1, how do you call function farfalle in another excel workbook? (15%) (b) (c) we define function linguine and fusilli in VBA as follows Function linguine(x) M = x * 10 linguine - fusilli(M) End Function Function fusilli(y) fusilli - y + 2 End Function What are the values of linguine(5.5) and fusilli(9)? Show your essential calculations. (40%) (d) We define function penne in VBA as follows Option explicit Function penne (p As integer) If p<= 10 Then penne - p^2 Elseif p <= 20 Then penne - (p ^ 10) + 2 Elseif m <= 30 Then penne - p * 2 + 10 Else penne = 10 * (p ^ 2) End If End Function What are the values of penne(15.8) and penne(52)? Show your essential calculations. (30%) In VBA define a function named spaghetti, where spaghetti - (x + 8)". Variable x must be taken as integers and the output of function spaghetti should be an integer. (15%) (a) If farfalle is a function of variables a and b, and is saved in an excel workbook called book1, how do you call function farfalle in another excel workbook? (15%) (b) (c) we define function linguine and fusilli in VBA as follows Function linguine(x) M = x * 10 linguine - fusilli(M) End Function Function fusilli(y) fusilli - y + 2 End Function What are the values of linguine(5.5) and fusilli(9)? Show your essential calculations. (40%) (d) We define function penne in VBA as follows Option explicit Function penne (p As integer) If p<= 10 Then penne - p^2 Elseif p <= 20 Then penne - (p ^ 10) + 2 Elseif m <= 30 Then penne - p * 2 + 10 Else penne = 10 * (p ^ 2) End If End Function What are the values of penne(15.8) and penne(52)? Show your essential calculations. (30%)
Expert Answer:
Answer rating: 100% (QA)
a Function spaghettix y spaghetti x 8 y End Function Outpu... View the full answer
Related Book For
Posted Date:
Students also viewed these operating system questions
-
Define a function named hv that takes three input parameters: h0 the initial height in meters vo the initial velocity in meters/sec t the time in seconds The function returns 2 output parameters: h...
-
The input and the output of an LTI causal discrete-time system are Input: x[n] = u[n] u[n 3], Output : y[n] = u[n 1] u[n 4] (a) What should be the length of the impulse response h[n] of the...
-
Code has already been provided to define a function named divideBySeven that accepts a single input variable number that is any positive number. Add commands to use a while loop to repeatedly divide...
-
In home with hand sanitizers, the risk of catching a gastrointestinal illness from a sick child dropped 60 percent compared with the control families. This statement is consistent with: (RR = risk...
-
Show how you would accomplish the following synthetic conversions. (a) But-1-ene 2-methoxybutane (b) 1-iodo-2-methylcyclopentane 1-methylcyclopentanol (c) 3-methylpent-1-ene 3-methylpentan-2-ol...
-
On May 25, Morris Hardware received an invoice from Precision Tools Inc. for $5076.64. The invoice was dated May 22 and offered terms of 2/10, 1/20, n/30. What payment will settle the invoice on: a....
-
As a financial analyst, you want to convince a client of the merits of investing in firms that have just entered a stock exchange, as an initial public offering (IPO). Thus, you gather data on 116...
-
As a preliminary to requesting budget estimates of sales, costs, and expenses for the fiscal year beginning January 1, 2015, the following tentative trial balance as of December 31, 2014, is prepared...
-
X = 1.2 For I = 1 To 5 Step 2 X = X + X^2 Next I MsgBox("I " = & Str()) 11 MsgBox ("X = & Str (X)) What does the first MsgBox display?
-
Richmoon Corporation has the following comparative financial statements: Richmoon Corporation Income Statement For the Year Ended December 31, 2010 Sales ...........$ 33,000 Less: Cost of goods sold...
-
Money Creation and Monetary Policy Tools Assume the following: Initial deposit into a new bank of $15,000, the reserve requirement of 12%. Calculate the following: a. List expansionary and...
-
The indifference curve represents: a. consumer income b. consumer preferences c. what consumers can afford d. what consumers actually purchase
-
An increase in the price of chicken will affect: a. the amount of chicken purchased b. the amount of beef purchased c. the relative price of beef and chicken d. all of the other three answers
-
Each of the following is a determinant of supply except: a. number of sellers b. technology c. tastes and preferences d. input prices
-
a. For a system sampling at 0. 05 s, where does aliasing start? b. What frequency components are indistinguishable from DC?
-
Complete the following statements with one of the terms listed here. You may use a term more than once, and some terms may not be used at all. 1. An example of the _______ component of time series...
-
Give examples of critical periods and sensitive periods in development.
-
In Problem use geometric formulas to find the unsigned area between the graph of y = f(x) and the x axis over the indicated interval. f(x) = x + 5; [0, 4]
-
Enter the InchesToCentimeters and CentimetersToInches functions from Figure 9.7 in a text file named convert.js. Then enter the text from Figure 9.8 into a new Web page (in the same location) and...
-
Modify your pick4.html page (from Exercise 7.7) to utilize the RandomInt function from the random.js library. That is, each random lottery number should be simulated by an appropriate call to the...
-
Enter the mystery1.html text from Figure 4.1 into a new Web page, then load the page in the browser to verify that it behaves as described. Modify the page so that it uses any two images that you...
-
You are setting up a chatbot agency to service marketing, sales and customer services teams. Discuss the advantages and disadvantages of setting up the business as a sole trader or company and the...
-
Principles for Responsible Management Education (PRME) is a not-for-profit entity. It engages business schools to ensure they provide future leaders with the skills needed to balance economic and...
-
Discuss why the cash received from providing a service is revenue, yet the cash contributed by the owner is not revenue.
Study smarter with the SolutionInn App