Write assignment statements that perform the following operations with the variables a,b,c A. set b=a+2 B. set a=b*2 C. set b=a/3.14 D. set a=b-8 4. Assume the variables result, w,x,y, and z are all integers and that w=5, x=4, y=8, and z=2. What value will be stored in result in each in of the following statements? A. Set result = 4+8 B.
Here is how we think about it: It is $100 for the first 10 feet. After that it is $25 for each additional 10 feet. This tells us that it is arithmetic sequence because we are multiplying. N= the number of terms altogether N= 8 D= the common difference D=25 A1= the first term A1= 100 An= the second term An= a8 Next, we need to compute what a8 is. An= a8+ (n-1) d A8= 100+ (8-1)25 A8=100+7(25) A8=100+200 A8=300 Now that we know what A8 is, we need to know what the sum of the sequence is from A1 to A8.
What value will be stored in result in each of the following statements? a) 12 = x + y b) 4 = z * 2 c) 2 = y / x d) 6 = y – z 5. Write a pseudocode statement that declares the variable cost so it can hold a real numbers. Dim cost1 As Double = 0 6. Write pseudocode statement that declares the variable total so it can hold integers.
K12_1821161 Jeopardy Jan 9, 2014 1:03:23 PM Page 4. Blackboard Collaborate ?? K12_1821161 $100 Question from 1 Jan 9, 2014 1:03:23 PM Page 5. Blackboard Collaborate ?? K12_1821161 $100 Answer from 1 Jan 9, 2014 1:03:23 PM Page 6.
Why do global variables make a program difficult to debug? Algorithm Workbench 1. Design a module named timesTen. The module should accept an Integer argument. When the module is called, it should display the product of its argument multiplied times 10.
(My calculator doesn’t go that far, ha.) Cost of Hard Drive Space per GB: In 1980, the price per GB was roughly $100,000. Today, it would not even cost a dollar. Based on the chart above, the space per unit cost has roughly double every 14 months. ”Several terabyte+ drives have recently broken the $0.10/gigabyte barrier, making the next milestone $0.01/gigabyte, or $10/terabyte.” (Komorowski, 2009) With Moore’s law in effect, I believe we will see a 100 TB hard drive within the next twenty years.
The investment for a new plant is 70 million dollars. If an entrant company has about 10% of the share (compared to the incumbent share of 35%) the profit for the company will be about 2 M. Ignoring the discount rate, it will take about 35 years to recover the cost of the new plant. This shows that the industry is capital intensive and it will be not an easy decision for a company to enter this industry. Additionally the plants are a scale intensive investment. For a 250 million sq ft plant the rate per square feet comes to 0.25 whereas for an 80 million sq ft facility this rate is 0.43.
Use the commutative and associative laws to write at least three expressions equivalent to (3x)y. Copyright 2011, 2007, 2003, 1999 Pearson Education, Inc. Slide 94 3C • b Properties of Real Numbers Use the commutative and associative laws to find equivalent expressions. Copyright 2011, 2007, 2003, 1999 Pearson Education, Inc. Slide 95 3C Properties of Real Numbers Use the distributive laws to multiply expressions like 8 and x – y. Consider a multiplication problem from arithmetic: To carry out the multiplication, we actually added two products. That is, Copyright 2011, 2007, 2003, 1999 Pearson Education, Inc. Slide 96 3C Properties of Real Numbers Use the distributive laws to multiply expressions like 8 and x – y. Compute in two ways: Copyright 2011, 2007, 2003, 1999 Pearson Education, Inc. Slide 97 3C Properties of Real Numbers The Distributive Law of Multiplication over Addition Copyright 2011, 2007, 2003, 1999 Pearson Education, Inc. Slide 98 3C Properties of Real Numbers The Distributive Law of Multiplication over
The Language of Algebra. The language of Algebra uses numbers and variables. A variable is a symbol that can be replaced by any menber of a set of numbers or other objects. When numbers and variables are combibed using the operations of arithmetic, the result is called an algebraic expression, or simply an expression. The expression π r ^ 2 uses the variable r and the numbers π and 2.
Answers to Week Two Homework Assignment ( Assignment 1) Chapter 7 Exercise 13 You should choose a sample size of 1000 people. Although the law of averages tells you that the average of 1000 people is very likely to be close to 60 inches -- and thus under 65 inches tall -- here you are winning a prize for each person over 65 inches tall, not when the average of all the people is over 65 inches tall. Having a larger sample will give you more chances at getting the prize. The law of averages pertains to the variability of a sample average -- not variability in individual data values themselves. Here, we are concerned with individual data values.