Create an application that displays a persons maximum heart rate, given his or her age. The maximum
Question:
Create an application that displays a person’s maximum heart rate, given his or her age. The maximum heart rate is calculated by subtracting the person’s age from the number 220. The application should also display the person’s target heart rate zone, which is 50% to 85% of the maximum heart rate. Use the following names for the solution and project, respectively: Heart Solution and Heart Project. Save the application in the VB2015\Chap04 folder. Create the interface shown in Figure 4-55. The image of the heart is stored in the VB2015\Chap04\Heart.png file. The Age text box should accept only numbers and the Backspace key. When the Age text box receives the focus, its existing text should be selected. Test the application with both valid data (numbers and the Backspace key) and invalid data (letters and special characters).
Heart Rate Chart Age: Max HR (100%): Calculate Exit Target heart rate zone 50%: 85%:
Step by Step Answer:
Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140220131 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F Heart Project Hear...View the full answer
Students also viewed these Computer science questions
-
In this exercise, you create an application that displays the ZIP code (or codes) corresponding to the city name selected in a list box. The city names and ZIP codes are shown in Figure 6-51. Create...
-
Create an application that displays a salespersons annual bonus amount, given his or her annual sales amount. The bonus rate is 10% when the sales amount is at least $25,000; otherwise, the bonus...
-
Create an application that displays a salespersons monthly commission amount, given his or her monthly sales amount and commission ID. Salespeople who have one of the following commission IDs receive...
-
Sketch the trace and compute the arc length of each of the following. a) (0 = (et sin/, et cost, et), t [0, 2] b) y3 = x2from(-l, 1) to (1,1) c) (t) = (t2, t2, t2), t [0, 2] d) The astroid of...
-
The following cost data pertain to the operations of Montgomery Department Stores, Incorporated, for the month of July. Corporate legal office salaries Apparel Department cost of sales-Evendale Store...
-
In flowing from section (1) to section (2) along an open channel, the water depth decreases by a factor of 2 and the Froude number changes from a subcritical value of 0.5 to a supercritical value of...
-
Grant Company purchased the net assets of Harding Company on January 1, 2015, and made the following entry to record the purchase: Provide the correct title for the $40,000 credit account above and...
-
For DFAs, swapping the accept states produces a machine which recognizes the complement language. But this is not always true for NFAs. a) Find an NFA M for which swapping accept states produces an...
-
Solve the ODE by integration or by remembering a differentiation formula. y' = cosh 5.13x
-
Create an application that converts American dollars to the three currencies indicated in Figure 4-47. Use the following names for the solution and project, respectively: Converter Solution and...
-
An If...Then...Else statement in the btnCalc_Click procedure declares a variable in its false path. Where can the variable be used? a. in the entire Code Editor window b. in the entire btnCalc_Click...
-
Inspect several household products and sketch and describe the manner in which they have been assembled. Comment on any design changes you would make so that their assembly, disassembly, and...
-
Write a brief description of some ways in which you think that the science of statistics can be used in your major field of study. (If you have not yet selected a major, answer the question for a...
-
A clinical trial involved the use of a nicotine gum as an aid to help smokers stop smoking. The clinical trial involved 1,000 college students who were paid for their participation, and the results...
-
Wind with a speed of 40 mi/h moves four times as fast as wind with a speed of 10 mi/h. Determine whether the given statement represents a meaningful ratio, so that the ratio level of measurement...
-
What is the margin of error in a statistical study, and why is it important? Does It make Sense?
-
Choose a sport and describe at least three different statistics commonly tracked by participants in or spectators of the sport. In each case, briefly describe the importance of the statistic to the...
-
Absent any special elections, what effect does a sale of partnership interest have on the partnership?
-
The time to assemble the first unit on a production line is 10 hours. The learning rate is 0.94. Approximately how long will it take for the seventh unit to be assembled? The number of hours needed...
-
Which of the following returns the highest column subscript in a two-dimensional array named decPays? a. decPays.GetUpperBound(1) b. decPays.GetUpperBound(0) c. decPays.GetUpperSubscript(0) d....
-
Open the Gross Pay Solution.sln file contained in the VB2017\Chap08\Gross Pay Solution folder. The interface provides a text box for entering the number of hours an employee worked. It also provides...
-
Open the Professor Juarez Solution.sln file contained in the VB2017\Chap08\Professor Juarez Solution folder. a. Open the Code Editor window and locate the btnDisplay_Click procedure. The procedure...
-
The accounts of Grand Pool Service, Inc., follow with their normal balances at April 30, 2021. The accounts are listed in no particular order. (Click the icon to view the accounts.) Read the...
-
What kind of leader do you aspire to be and what are the traits? Explain.
-
10. Create the following row vector A where it has 18 elements (1 to 18). 1 4 7 10 13 16. 11 14 17 a. Use the reshape function to obtain B: == 2 5 8 3 6 9 12 15 18 b. Create a 7 element row vector...
Study smarter with the SolutionInn App