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 Rent-A-Dent car rental company allows its customers to pick up a rental car at one location and return it to any of its locations. Currently, two locations (1 and 2) have 16 and 18 surplus cars,...
-
A solar system is to be installed in Phoenix, Arizona. The estimated amounts of energy from the system as a function of collector area are shown in the following tabulation. If the solar system costs...
-
You have the following information for Vincent Inc. for the month ended October 31, 2014. Vincent uses a periodic method for inventory. Instructions (a) Calculate (i) ending inventory , (ii) cost of...
-
Picking a past or present issue that affects Indian Country and write short 6 sentenc RAC statement. - List the players of each side. Did you clearly define the key points of the issue? - What laws...
-
Consider the following pep9 trap: DECI number,d What 'd' refers in the above instruction? a) direct mode b) read(or input) decimal number c) read(or input) integer d) print( or output) decimal number
-
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...
-
Find the limits of , g, and g as xc. (a) (b) (c) (d) (e) Suppose that lim xc (x) = 0 and lim xc g(x) = . Based on your observations in parts (a)-(d), what can you say about lim xc ( (x) g(x))? f(x)...
-
A. In 2015, the Canadian province of British Columbia enacted regulations applicable to the sale of wine. Only wine produced in British Columbia could be sold on grocery store shelves. Wine produced...
-
What proposals are being made to reform the Copyright Act?
-
a. Solve the linear system \(\mathbf{A x}=\mathbf{b}\) by using Cramer's rule. b. \(\uparrow\) Repeat (a) in MATLAB. \(\mathbf{A}=\left[\begin{array}{ccc}1 & 5 & 0 \\ -1 & 2 & 1 \\ -2 & 5 &...
-
While you are standing on your balcony \(8 \mathrm{~m}\) above the ground, your friend tosses a \(0.4-\mathrm{kg}\) book at you from the ground at \(14 \mathrm{~m} / \mathrm{s}\). The book barely...
-
When the University of Maryland Medical System Corporation learned that one of its surgeons was HIV positive, the university offered him transfers to positions that did not involve surgery. The...
-
William, a high school teacher, earns about $50,000 each year. In December 2015, he won $1 million in the state lottery. William plans to donate $100,000 to his church. He has asked you, his tax...
-
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...
-
ow do synergistic dynamics emerge within high-performance teams, and what role do diverse skill sets, complementary roles, and shared goals play in fostering collaborative innovation and collective...
-
Pietro Frozen Foods, Inc., produces frozen pizzas. For next year, Pietro predicts that 50,000 units will be produced, with the following total costs: Direct materials Direct labor Variable overhead...
-
You will complete two case studies over the course of the semester. These are to be completed individually. Each case study is found in the textbook and there are questions there to help guide your...
Study smarter with the SolutionInn App