455 Words2 Pages

November 1, 2013
Unit 3 homework 3
Short answer 5. Write a pseudo code statement that declares the variable cost so it can hold real numbers? long cost int total count=220 total=10+210 totalfee=total-downPayment 6. Write a pseudo code statement that declares the variable total so it can hold integers. Initialize the variable with the value 0.
Declare Real price=61.95
Display "the original price."
Input item original price
Display "price"
Algorithm workbench
3. Write assignment statements that perform the following operations with the variables a, b, and c. a = b * 4, b = a / 3.14, a = b – 8
4 Assume w = 5, x = 4, y = 8, and z = 2. What value will be stored in result in each of the following statements? result = x + y; // 12 result = z * 2; // 4 result = y / x; // 2 result = y - z; // 6 result = w % 2; // 1
5. Assuming there are no accidents or delays, the distance that a car travels down the interstate can be calculated with the following formula:
Distance = Speed * Time
Acar is traveling at 60 miles per hour. Design a program that displays the following:
The distance the car will travel in 5 hours
The distance the car will travel in 8 hours
The distance the car will travel in 12 hours. . Private Sub cmdcalculate_click()
Dim d1 as integer 'this is how to declare local variable
Dim d2 as integer
Dim d3 as integer
Dim speed as integer
Dim t1 as integer 'this refer to 5 hours
Dim t2 as integer 'this is refer to 8 hours
Dim t3 as integer 'this is refer to 12 hours
Speed=60
t1=5 t2=8 t3=12 d1=speed*t1 'd1 to get the first distance travel which is 5 hours d2=speed*t2 'd2 to get the second distance travel which is 8 hours d3=speed*3 'd1 to get the third distance travel which is 12 hours
End Sub
Private Sub cmdExit_click() end End Sub
6.
7. A car's miles-per-gallon (MPG can be

Related

## Unit 3 Assignment 1

328 Words | 2 PagesSet result = 4+8 B. Set result = 2*2 C. Set result = 8/4 D. Set result = 8-2 5. Write a pseudcode statement that declares the variable cost so it can hold real numbers. Dim cost1 As Double = 0 6. Write a pseudocode statement that declares the variable total so it can hold integers.

## Unit 3 Assignment 1: Homework - Pt1420

608 Words | 3 PagesWrite a pseudocode statement that declares the variable total so it can hold integers. Initialize the variable with the value 0. Declare Real price=99.95 Display "the original price." Input item original price Display "price" 7. Write a pseudocode statement that assigns the value 27 to the variable count.

## Algorithm Workbench Essay

330 Words | 2 Pagesdue = downpayment – total 10. Write a pseudocode statement that multiplies the variable subtotal by 0.15 and assigns the result to the variable totalfee. First you must make the variables real numbers. example.Dim subtotal As Double = 0 The statement asked for in the question will appear as totalfee = subtotal *

## Unit 3 Intro to Progamming

319 Words | 2 PagesSet result = x + y B. Set result = z * 2 C. Set result = y / x D. Set result = y – z 5. Write a pseudocode statement that declares the variable cost so it can hold real numbers. Dim cost1 As Double = 0 6. Write a pseudocode statement that declares the variable total so it can hold integers.

## Week 3 Assignment 1

462 Words | 2 PagesThe estimate of bad debts expense was .5% (which equals .005) of sales on account. Sales on account totaled 925,000 925,000 X .005 = 4,625 This is the uncollectible accounts expense for 2012 The entries would be Debit Bad Debt expense 4,625 Credit Allowance for Doubtful Accounts 4,625 The credit balance in Allowance for Doubtful Accounts would be: Allowance for doubtful accounts 4,725 Minus the amount wrote off 3,100 Plus the Credit Allowance of Doubtful accounts 4,625 The credit balance for Doubtful Accounts is now 6,250 2. Net realizable value of receivable at the end of 2012. Take the Beginning Accounts Receivable Balance 52,500 Add Sales on Account 925,000 Minus Collections of Account Receivables 835,000 Minus Account written off 3,100 Equals Gross Value of Accounts Receivables 139,400 Minus Credit Balance in Allowance for Doubtful Acct. 6,250 Net Realizable Balance of Accounts Receivable of 2012 133,150 B.

## Sandals Essay

714 Words | 3 Pages| Cost | Machine Hours | April | $61,255 | 1,189 | May | $82,714 | 1,806 | June | $97,496 | 2,474 | Using the high-low method, determine the variable cost per unit, and the total fixed costs. Select the correct answer. $28.20 per unit and $69,775 respectively. | | | $28.20 per unit and $27,721 respectively. | | | $30.45 per unit and $27,721 respectively.

## Ideal Mathematics Year 6 With Answers

971 Words | 4 PagesState the place value of the underlined digit in 6 953 742. A Hundreds C Ten thousands B Thousands D Hundred thousands ( 3. Round off 5 987 341 to the nearest hundred thousand. A 5.8 million C 6.0 million ( B 5.9 million D 6.1 million 4. Which of the following numbers, when rounded off to the nearest thousand, becomes 7 541 000?

## Nt2640 Unit 2 Assignment 1

256 Words | 2 PagesDetermine the correct ICMP type based on the description provided: ICMP Message Description | Type | Code | Echo | 8 | | Echo Reply | 0 | | Time Exceeded | 11 | | Port Unreachable | 3 | 3 | Fragmentation Needed | 3 | 4 | 4. What are the valid ranges of protocol numbers? * 0-252 5. What protocol numbers is/are specified for experimentation and testing? * 253, and 254 6.

## Descriptive Statistics Excel Worksheet

355 Words | 2 PagesWhat is the value for the new sample New Sample Mean = 7 Explanation of work: When the data value is 19:mean = sum of values / # of value 9 = sum/7 sum = 7 x 9 = 63 When that data value is 5 the sum is 63-14 = 49 New mean = 49/7 = 7 7. Using Excel create a histogram and a line graph using the scores in the following table: Note: When you wish to plot one series (the column f in this problem) select only that column. Once you select the column, then you insert the column and line graph. Insert your histogram and line graph here: X 1 2 3 4 5 6 7 8 f 2 1 6 7 4 4 1 1 Line graph 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 f Histogram 8 6 4 2 0 f 1 2 3 4 5 6 7 8

## It 104 Unit 3

605 Words | 3 PagesWrite a pseudocode statement that declares the variable cost so it can hold real numbers. * Dim cost1 As Double = 0 6. Write a pseudocode statement that declares the variable total so it can hold integers. Initialize the variable with the value 0. * Dim cost1 As Integer = 0 7.

### Unit 3 Assignment 1

328 Words | 2 Pages### Unit 3 Assignment 1: Homework - Pt1420

608 Words | 3 Pages### Algorithm Workbench Essay

330 Words | 2 Pages### Unit 3 Intro to Progamming

319 Words | 2 Pages### Week 3 Assignment 1

462 Words | 2 Pages### Sandals Essay

714 Words | 3 Pages### Ideal Mathematics Year 6 With Answers

971 Words | 4 Pages### Nt2640 Unit 2 Assignment 1

256 Words | 2 Pages### Descriptive Statistics Excel Worksheet

355 Words | 2 Pages### It 104 Unit 3

605 Words | 3 Pages