Page 1

Full file at http://testbank360.eu/solution-manual-microsoft-visual-basic-2008-3rd-edition-dianezak Microsoft Visual Basic 2008: RELOADED, Third Edition Chapter 2 Review Questions 1. D A button’s caption should end with a colon (:). 2. C Labels that identify text boxes should be entered using book title capitalization. 3. C TabIndex 4. C the same height and the same width 5. A & 6. D Text 7. C form’s AcceptButton 8. A 6 9. A The human eye is attracted to text before graphics. 10. D None of the above. Review Exercises – Short Answer 1. a. Book title capitalization means you capitalize the first letter in each word in the caption, except for articles, conjunctions, and prepositions that do not occur at either the beginning or the end of the caption. b. Sentence capitalization means you capitalize only the first letter in the first word and in any words that are customarily capitalized. 2. i) Identify the tasks the application needs to perform. ii) Identify the objects to which you will assign those tasks. iii) Identify the events required to trigger an object into performing its assigned tasks. iv) Design the user interface. 3. The first choice for an access key is the first letter of the control’s caption or identifying label, unless another letter provides a more meaningful association. If you can’t use the first letter and no other letter provides a more meaningful association, then use a distinctive consonant in the caption or label. The last choices are a vowel or a number. 4. To provide keyboard access to a text box, you enter the text box’s access key in the Text property of its identifying label. You then set the identifying label’s TabIndex property to a value that is one less than the value in the text box’s TabIndex property. 5. The primary viewing and editing of your application’s data takes place in a primary window. Dialog boxes are used to support and supplement a user’s activities in the primary windows. 6. redTextBox.Forecolor = Color.Red Computer Exercises 1. See the VbReloaded2008\Chap02\Moonbucks Solution—Modified files on the Solutions Disk. Task Object Event 1. Calculate the total pounds of coffee ordered, the calcButton Click price of the order without sales tax, the sales tax amount, and the total price of the order


Full file at http://testbank360.eu/solution-manual-microsoft-visual-basic-2008-3rd-edition-dianezak 2. Display the total pounds of coffee ordered, the price of the order without sales tax, the sales tax amount, and the total price of the order in totalPoundsLabel, subtotalLabel, salesTaxLabel, and totalPriceLabel Clear the screen for the next order End the application Display the price of the order without sales tax (from calcButton) Display the sales tax amount (from calcButton) Display the total pounds of coffee ordered (from calcButton) Display the total price of the order (from calcButton) Get and display the order information

Object Form1

Label1 Label2 Label3 Label4 Label5 Label6 Label7 Label8 Label9 Label10 Label11 Label12 Label13

Property Name AcceptButton CancelButton Font MaximizeButton Size StartPosition Text Font Text Text Text Text Text Text Text Text Text Text Text Text Name AutoSize

clearButton exitButton subtotalLabel

Click Click None

salesTaxLabel totalPoundsLabel

None None

totalPriceLabel nameTextBox, addressTextBox, cityTextBox, stateTextBox, zipTextBox, regularTextBox, decafTextBox

None None

Setting MainForm calcButton exitButton Segoe, 9 point False 496, 353 CenterScreen Moonbucks Coffee Segoe UI, 16 point Order Form &Name: &Address: Ci&ty: &State: &ZIP: &Regular: &Decaf: Pounds ordered: Total price: Subtotal: Sales tax: totalPoundsLabel False


Full file at http://testbank360.eu/solution-manual-microsoft-visual-basic-2008-3rd-edition-dianezak BorderStyle Text TextAlign Label14 Name AutoSize BorderStyle Text TextAlign Label15 Name AutoSize BorderStyle Text TextAlign Label16 Name AutoSize BorderStyle Text TextAlign TextBox1 Name TextBox2 Name TextBox3 Name TextBox4 Name CharacterCasing MaxLength TextBox5 Name TextBox6 Name TextBox7 Name Button1 Name Text Button2 Name Text Button3 Name Text TableLayoutPanel CellBorderStyle ColumnCount RowCount

None (empty) MiddleCenter subtotalLabel False None (empty) MiddleCenter salesTaxLabel False None (empty) MiddleCenter totalPriceLabel False None (empty) MiddleCenter nameTextBox addressTextBox cityTextBox stateTextBox Upper 2 zipTextBox regularTextBox decafTextBox calcButton &Calculate Order clearButton C&lear Order exitButton E&xit OutsetDouble 2 4

2. See the VbReloaded2008\Chap02\Time Solution files on the Solutions Disk. 3. See the VbReloaded2008\Chap02\Paper Solution files on the Solutions Disk. Task Object 1. Calculate the commission calcButton 2. Display the commission in the commissionLabel control Clear the screen clearButton End the application exitButton

Event Click Click Click


Full file at http://testbank360.eu/solution-manual-microsoft-visual-basic-2008-3rd-edition-dianezak Display the commission (from calcButton) Get and display the name, sales, and commission rate

commissionLabel nameTextBox, salesTextBox, rateTextBox

None None

4. See the VbReloaded2008\Chap02\RMSales Solution files on the Solutions Disk. Task Object Event 1. Calculate the projected sales for each calcButton Click region 2. Display the projected sales in northSalesLabel, southSalesLabel, eastSalesLabel, westSalesLabel Clear the screen clearButton Click End the application exitButton Click Display the projected sales (from northSalesLabel, southSalesLabel, None calcButton) eastSalesLabel, westSalesLabel Get and display the projected increase northIncreaseTextBox, None percentage for each region southIncreaseTextBox, eastIncreaseTextBox, westIncreaseTextBox Get and display the current year’s sales for northSalesTextBox, None each region southSalesTextBox, eastSalesTextBox, westSalesTextBox 5. See the VbReloaded2008\Chap02\Johnson Solution files on the Solutions Disk. To bypass the stateTextBox control when tabbing, set the control’s TabStop property to False. 6. See the VbReloaded2008\Chap02\GroupPanel Solution files on the Solutions Disk. The GroupBox tab order boxes contain 0, 0.0, 0.1, 0.2, 0.3, 0.4, and 0.5. The Panel tab order boxes contain 1, 1.0 and 1.1. 7. See the VbReloaded2008\Chap02\Color Game Solution—Discovery files on the Solutions Disk. The DialogForm’s FormBorderStyle property is set to FixedDialog. Its MaximizeBox and MinimizeBox properties are set to False. In Step n, you can’t click the Pink button. In Step o, you can click the Pink button. In Step p, the difference: you can’t access the MainForm when using the ShowDialog method, but you can access it when using the Show method. 8. See the VbReloaded2008\Chap02\Debug Solution files on the Solutions Disk. The student will need to reset the TabIndex property of each control. Case Projects Note: The solutions for Case Projects may vary. 1. See the VbReloaded2008\Chap02\Crispies Solution files on the Solutions Disk. Task Object Event 1. Calculate the total price of the order calcButton Click 2. Display the total price of the order in totalPrice End the application exitButton Click


Full file at http://testbank360.eu/solution-manual-microsoft-visual-basic-2008-3rd-edition-dianezak Display the total price of the order (from calcButton) Get and display the number of bagels, donuts, and cups of coffee ordered

totalPriceLabel

None

bagelsTextBox, donutsTextBox, coffeeTextBox

None

2. See the VbReloaded2008\Chap02\Perry Solution files on the Solutions Disk. MainForm Task Object Event 1. Calculate the sum of and the difference computeButton Click between the two numbers 2. Display the sum and difference in the sumLabel and differenceLabel controls End the application exitButton Click Display the sum and difference (from sumLabel, differenceLabel None computeButton) Get and display two numbers firstTextBox, secondTextBox None 3. See the VbReloaded2008\Chap02\Jasper Solution files on the Solutions Disk. Task Object Event 1. Calculate the total sales and the sales calcButton Click commission 2. Display the total sales and the sales commission in totalSalesLabel and commissionLabel Clear the screen clearButton Click End the application exitButton Click Display the sales commission (from commissionLabel None calcButton) Display the total sales (from calcButton) totalSalesLabel None Get and display the sales amounts for four illTextBox, indTextBox, None states kenTextBox, ohioTextBox 4. See the VbReloaded2008\Chap02\Sophia Solution files on the Solutions Disk. Task Object Event 1. Calculate the price of the order without calcButton Click sales tax 2. Calculate the sales tax amount 3. Calculate the total price of the order 4. Display the price of the order without sales tax, the sales tax amount, and the total price of the order in the subtotalLabel, salesTaxLabel, and totalLabel controls Clear the screen clearButton Click End the application exitButton Click


Full file at http://testbank360.eu/solution-manual-microsoft-visual-basic-2008-3rd-edition-dianezak Display the price of the order without sales tax (from calcButton) Display the sales tax amount Display the total price of the order Get and display the customer’s lunch order

subtotalLabel

None

salesTaxLabel totalLabel calamariTextBox cheesecakeTextBox, chickFingersTextBox, comboTextBox, lasagnaTextBox, meatballTextBox, pizzaSliceTextBox, ravioliTextBox, saladTextBox, sausageTextBox, soupTextBox, spumoniTextBox, subTextBox

None None None

Solution manual microsoft visual basic 2008 3rd edition diane zak  

solution manual microsoft visual basic 2008 3rd edition diane zak. Full file at http://testbank360.eu/solution-manual-microsoft-visual-...

Read more
Read more
Similar to
Popular now
Just for you