Question Answers
Textbooks
Find textbooks, questions and answers
Oops, something went wrong!
Change your search query and then try again
S
Books
FREE
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Hire a Tutor
AI Tutor
AI Flashcards
FREE
Search
Search
Sign In
Register
study help
computer science
programming microsoft visual basic
Programming With Microsoft Visual Basic 2017 8th Edition Diane Zak - Solutions
1. Create a routine in PreTaskHook() that counts the number of times a key is pressed since the system has been reset. Hint: One task is activated every time a key is pressed.
2. Create a task that writes a message to the display whenever the * (asterisk) key is pressed.Modify the ProcessKeyPress task to start your task instead of chaining the OutputDisplay task. Please do
3. Modify the OutputDisplay task to identify which task sent the message. Hint: The highest priority task that is in the READY state would activate OutputDisplay.
4. If you enjoy adding hardware to your system, add an LED that is on whenever a key is pressed. Create two tasks, one that turns the LED on and the other that turns the LED off, and activate these
1. In the IOSampleShuffleSwitch task, replace the timeout counter with an alarm that starts with the first pulse and restarts on every pulse. When this alarm expires, activate the ShufflingComplete
2. In the previous chapter, you created a task that output a message to the display when the *key was pressed. Modify this task to output the message when the 0 (zero) key is pressed, and flash the
3. Create a timer and a task that stores the hours, minutes, and seconds that the system has been running since the last reset. Display this time whenever the 1 key is pressed.
1. Set a breakpoint at the entrance to each of the hook routines, including StartupHook().Run the program and observe the sequence of events as the program starts and executes, then terminates, the
3. Set breakpoints at the hook routines and the background task. Run the program and verify that the hook routines execute properly.
2. In StartupHook(), if the APPMODE is END_OF_LINE, call InitSystem() with a new value of INIT_EOL.
1. Add an APPMODE called END_OF_LINE to the application and check for a change in Change-Mode(). Do not do anything at this time if the user requests a change to the new mode.
5. Modify the background task so that it immediately calls ChangeMode() with the requested mode of SINGLE_PLAYER. Then use the debugger to observe what happens as the application enters and exits the
4. Add some registers to the initialization lists to put the system into a different state than the default state on reset. For example, switch some digital ports into output mode and set them to a
3. Expand the definition of the InitType enumeration to include possibilities based on the type of reset and the integrity of the memory after the reset. Pass this information to Init-System().
2. Modify the RAM initialization routine to check whether memory has been compromised before initialization. If memory has not been compromised, skip memory initialization and C initialization. Pass
1. Determine the source of the reset that put you into the startup.s module. Pass this value to main() as the argument, then within main(), save this value to a global variable.
4. Calculate the amount of time spent in the background task using the time from the clock in the previous exercise and the PreTaskHook() and PostTaskHook() hook routines.
5. Add a switch to a digital input that sends a low pulse every time the switch is pressed using a pull-up resistor to +5V and the switch connected to ground. Create a new counter object and a device
1. Create an indirect NM module that uses the capabilities of the COM and OS components to monitor periodic messages from multiple nodes and to construct a network configuration.This module can use
2. After five minutes has expired, put the bus to sleep.
1. When a node is added to the network, detect the configuration change and display a prompt that allows the player to immediately change to HEAD_TO_HEAD mode.
1. A set of messages was created in Chapter 12 that transmitted the dealer and player hands periodically. Because the maximum CAN message has eight bytes, and transmitting all possible cards in one
2. Create a direct message that is sent whenever the ‘0’ (zero) key is pressed and include a small message of seven or fewer characters. When received by the other node, the message flashes for
1. Create four new periodic or mixed-mode messages that contain five cards each for the dealer and player. Each node will transmit two messages that include the cards as each player should see them.
2. Create a message that contains a structure that has the current game time from the task that was created in Chapter 5, Exercise 3. Whenever the deck is shuffled, send a message with the current
1. Create a message that contains a single character. Whenever a key is pressed on the keypad that is not required for the game, send a message with this character. Create a task in the debug.c
3. Review the source code and determine if there are other critical sections that need to be added.
2. Set a breakpoint in OutputNewDisplay() after the interrupts are disabled. Also set a breakpoint at the entrance to the keypad ISR. Press a key on the keypad and then step through the rest of the
1. In an exercise in Chapter 5, a switch was added and the number of times that it was depressed was counted. Make sure that the switch is connected to an input that can generate an interrupt when
2. Define the display as a resource and lock the resource everywhere the displayBuffer global variable is updated. This includes the OutputDisplay task. In tasks where the display-Buffer variable is
1. Create a new task called DealerCheat that resides in carddeck.c and has a priority higher than DealCards. In this task, pull a card from the deck into a static variable that the dealer can use
2. Modify the previous task to reset the time when a key is pressed. Use the event mechanism to signal this event from the task ProcessKeyPress.
1. Modify the task you created in the last chapter that keeps track of the time the program has been running. Make this an extended task with an event that is set when the alarm expires.
2. Implement a Master–Slave sleep module that provides the GoToMode() service and monitors the network sleep message. For simplicity, create a new message that is used exclusively to trigger bus
In this exercise, you create an application that keeps track of cookie sales. Create a Windows Forms application. Use the following names for the project and solution, respectively: Cookies Project
In this exercise, you create an application that keeps track of music boxes. Create a Windows Forms application. Use the following names for the project and solution, respectively: MusicBox Project
In this exercise, you create an application that keeps track of cookie sales. Create a Windows Forms application. Use the following names for the project and solution, respectively: Sales Project and
Open the MusicBox Solution.sln file contained in the VB2017\Chap11\MusicBox Solution-ListBox folder.a. Figure 11-62 shows the Boxes table contained in the VB2017\Chap11\Databases\ MusicBoxes.mdf
Open the Total Cookie Sales Solution.sln file contained in the VB2017\Chap11\Total Cookie Sales Solution folder.a. Figure 11-63 shows the Sales table contained in the CookieSales.mdf file. The table
Open the Utilities Solution.sln file contained in the VB2017\Chap11\Utilities Solution- DataGrid folder.a. Create a SQL Server database named Utilities.mdf.b. Add the Bills table definition shown in
In this exercise, you modify the Utility Expenses application from Exercise 6. Use Windows to make a copy of the Utilities Solution-DataGrid folder. Rename the copy Utilities Solution-Totals.a. Open
Create a Windows Form application for Clancy Boutique. Use the following names for the project and solution, respectively: Clancy Project and Clancy Solution. Save the application in the
In this exercise, you modify one of the Course Information applications created in this chapter’s Apply lesson. Use Windows to make a copy of the Course Info Solution-Total Hours folder. Rename the
In this exercise, you create a two-table SQL Server database. You also create an application that displays the database information in a DataGridView control.a. Create a Windows Forms application.
Create a SQL Server database that contains one table named Homes. The table should contain 10 records, each having five fields. The ID field should be an auto-numbered field. The ZIP code field
In this exercise, you create two Web pages for Meyer’s Purple Bakery: a static page and a dynamic page.a. Use the New Web Site option on the File menu to create a Web Site application named Meyer.
In this exercise, you create a dynamic Web page that calculates the area of a circle. Use the New Web Site option on the File menu to create a Web Site application named Circle. (Be sure to select
In this exercise, you create three static Web pages for The Corner Market. Figures 13-37, 13-38, and 13-39 show the completed pages displayed in Microsoft Edge. Keep in mind that the year displayed
In this exercise, you create two static Web pages for Spa Monique. Figures 13-35 and 13-36 show the completed pages displayed in Microsoft Edge. Keep in mind that the year displayed on your pages
In this exercise, you modify the Adalene Fashions application from Exercise 3. Use Windows to make a copy of the Adalene Solution folder. Rename the copy Adalene Solution-TotalSales. Modify the
Create a Windows Forms application. Use the following names for the project and solution, respectively: Serenity Project and Serenity Solution. Save the application in the VB2017\Chap10 folder.
Create a Windows Forms application. Use the following names for the project and solution, respectively: Glasgow Project and Glasgow Solution. Save the application in the VB2017\Chap10 folder. Create
Create a Windows Forms application. Use the following names for the project and solution, respectively: Parking Project and Parking Solution. Save the application in the VB2017\Chap10 folder. The
In this exercise, you create an application that can be used to calculate the cost of installing a fence around a rectangular area. Create a Windows Forms application. Use the following names for the
In this exercise, you create an application that can be used to estimate the cost of laying sod on a rectangular piece of property. Create a Windows Forms application. Use the following names for the
In this exercise, you modify the application from Exercise 2. Use Windows to make a copy of the Workers Solution folder. Rename the copy Workers Solution-Filename.a. Open the Workers Solution.sln
Create a Windows Forms application. Use the following names for the project and solution, respectively: Vacation Project and Vacation Solution. Save the application in the VB2017\Chap09 folder. a.
Create a Windows Forms application. Use the following names for the project and solution, respectively: Cookies Project and Cookies Solution. Save the application in the VB2017\Chap09 folder.a. Copy
Create a Windows Forms application. Use the following names for the project and solution, respectively: Potter Project and Potter Solution. Save the application in the VB2017\Chap09 folder.a. The
Create a Windows Forms application. Use the following names for the project and solution, respectively: Customer Project and Customer Solution. Save the application in the VB2017\Chap09 folder. a.
Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap08 folder.
Create a Windows Forms application. Use the following names for the project and solution, respectively: Adaline Project and Adaline Solution. Save the application in the VB2017\Chap08 folder. Create
Create a Windows Forms application. Use the following names for the project and solution, respectively: Bindy Project and Bindy Solution. Save the application in the VB2017\Chap08 folder. Bindy
The sales manager at Organic Market wants you to create an application that displays the total sales made in each of three regions: the U.S., Canada, and Mexico. The application should also display
Create a Windows Forms application. Use the following names for the project and solution, respectively: Gas Prices Project and Gas Prices Solution. Save the application in the VB2017\Chap08 folder.
Create a Windows Forms application. Use the following names for the project and solution, respectively: OnYourOwn Project and OnYourOwn Solution. Save the application in the VB2017\Chap07 folder.
Which of the following opens the employ.txt file and allows the computer to write new data to the end of the file’s existing data?a. outFile = IO.File.AddText("employ.txt")b. outFile =
Which of the following reads a line of text from a sequential access file and assigns the line (excluding the newline character) to the strText variable?a. inFile.Read(strText)b.
What does the Peek method return when the end of the file is reached?a. –1b. 0c. The last character in the filed. The newline character
Which of the following can be used to determine whether the employ.txt file exists?a. If IO.File.Exists("employ.txt") Thenb. If IO.File("employ.txt").Exists Thenc. If IO.Exists("employ.txt") = True
What type of object is created by the OpenText method?a. Fileb. SequenceReaderc. StreamWriterd. None of the above.
What type of object is created by the AppendText method?a. Fileb. SequenceReaderc. StreamWriterd. None of the above.
The horizontal line in a menu is called _____________________.a. A menu barb. A separator barc. An item separatord. None of the above.
The underlined letter in a menu element’s caption is called _____________________. a. An access keyb. A menu keyc. A shortcut keyd. None of the above.
Which of the following allows the user to access a menu item without opening the Menu?A. An access keyB. A menu keyC. Shortcut keysD. None of the above.
Which of the following is false?a. Menu titles should be one word only.b. Each menu title should have a unique access key.c. You should assign shortcut keys to commonly used menu titles.d. Menu items
The Inventory class contains a Private variable named strId. The variable is associated with the Public ItemId property. An application instantiates an Inventory object and assigns it to a variable
Which of the following statements is false?a. A class can contain only one constructor.b. An example of a behavior is the SetTime method in a Time class.c. An object created from a class is referred
A Private variable in a class can be accessed directly by a Public method in the same class.a. True b. False
To hide one of a class’s members, you declare the member using which of the following keywords?a. Hideb. Invisiblec. Privated. ReadOnly
Which of the following is the name of the Inventory class’s default constructor?a. Inventoryb. InventoryConstructorc. Defaultd. New
Which of the following instantiates an Inventory object and assigns it to the chair variable?a. Dim chair As Inventoryb. Dim chair As New Inventoryc. Dim chair = New Inventoryd. Dim New chair As
The method name combined with the method’s optional parameterlist is called the method’s _____________________. A. Autograph b. Inscription c. Signature d. Statement
A WriteOnly property can be an auto-implemented property.a. True b. False
Which of the following objects connects a database to a DataSet object?a. BindingSourceb. DataBasec. DataGridViewd. TableAdapter
Which type of database stores information in tables composed of rows and columns?A. ColumnarB. RelationalC. SortedD. Tabular
Which key is used to step through code?a. F5b. F6c. F7d. F8
A class contains an auto-implemented property named Title. Which of the following is the correct way for the default constructor to assign the string “Unknown” to thevariable associated with the
Create a Web Site application for Rosette Catering. The interface should allow the user to enter the customer ID, the bride’s name, the groom’s name, and the date of the wedding reception. It
Create an interface that contains a list box with the following 10 items: A1, B1, A2, B2, A3, B3, A4, B4, A5, and B5. Each item represents a seat number in a theater. When the user clicks a list box
Create an interface that contains a list box with the following 18 items: 1A, 1B, 1C, 2A, 2B, 2C, 3A, 3B, 3C, 4A, 4B, 4C, 5A, 5B, 5C, 6A, 6B, and 6C. Each item represents a seat designation on an
The shopping cart application should list the names of 10 different DVDs in a list box and store the associated prices in a one-dimensional array. (Use at least four different prices for the DVDs.)
Create an interface that provides text boxes for entering the following business expenses: lodging, travel, meals, and entertainment. Lodging and travel are 100% tax deductible; meals and
Create an application that can be used to practice adding, subtracting, multiplying, and dividing numbers. The application should display a math problem on the screen and then allow the student to
The High Total game requires two players. The application’s interface should allow the user to enter each player’s name. When the user clicks a button, the button’s Click event procedure should
Create an application that calculates and displays four monthly mortgage payments. The application should use the loan amount and annual interest rate provided by the user, along with terms of 15
Research Visual Basic’s Financial.FV (Future Value) method. Create an application that allows the user to enter the amount a customer plans to deposit in a savings account each month, and whether
Create an application for Filmore’s Fast Food restaurant. The restaurant sells hot dogs for $1.25, hamburgers for $2.50, fish sandwiches for $2.97, fries for $0.99, and fountain drinks for $1.49.
Create an application for Crispies Bagels and Bites. The interface should allow the salesclerk to enter the number of bagels, donuts, and cups of coffee a customer orders. Bagels are 99¢, donuts are
Create an application for Your Special Day Catering. The interface should allow the user to enter the customer ID, the bride’s name, the groom’s name, and the date of the wedding reception. It
Showing 1 - 100
of 831
1
2
3
4
5
6
7
8
9
Step by Step Answers