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...
-
Economic details are set out below for the manufacture of several grades of the same chemical. Higher purities command a premium price, but costs are higher. Process Item A B Purity 95 99.5 Plant...
-
Explain the positive classification criterion.
-
A little exchange economy has just two consumers, named Kenand Barbie, and two commodities, quiche and wine. Kens initial endowment is 3 units of quiche and 2 units of wine. Barbies initial endowment...
-
a Suppose that ABC Co. were to issue a 5-year $101.000 bond that had a coupon rate of 5% and paid interest annually under each of the following alternatives: (a) yield rate=4%, assuming the issue...
-
A real estate developer is considering investing in a shopping mall on the outskirts of Atlanta, Georgia. Three parcels of land are being evaluated. Of particular importance is the income in the area...
-
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...
-
In Problems 4550, use Venn diagrams to prove or disprove each statement. Remember to draw a diagram for the left side of the equation and another for the right side. If the final shaded portions are...
-
The manager of a division that produces add-on products for the automobile industry had just been presented the opportunity to invest in two independent projects. The first is an air conditioner for...
-
Ook ht nces Case 5-2 (Algo) Shouldice Hospital in Canada is widely known for one thing-hernia repair! In fact, that is the only operation it performs, and it performs a great many of them. Over the...
-
A trunk of cone made of Aluminum (E = 70 GPa) and fixed between two rigid walls and without any preloading or thermal input is uniaxially loaded with a force of magnitude of 100 N at point C (300 mm...
-
Honeyville Company had sales for the year of $ 1 0 0 , 0 0 0 . Of these sales, only $ 3 0 , 0 0 0 were collected in cash. The other $ 7 0 , 0 0 0 is expected to be collected in cash next year. For...
-
The company does not have a license for Dynamics 365. If you decide to use a Portal Template how many choices will you have
-
What exactly is the operation of the spaceship operator?
-
Walker, Inc., is an all-equity firm. The cost of the company's equity is currently 11.4 percent and the risk-free.rate is 3.3 percent. The company is currently considering a project that will cost...
-
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...
-
Cash from Operating Activities: ______________ Cash from Investing Activities: ______________ Cash from Financing Activities: ______________ Problem 2: Financial Ratios The GAP Macys 1 Current Ratio...
-
On January 1, 2021, Winky Enterprises issued 12% bonds dated January 1, 2021, with a face amount of $2,800,000. The bonds mature in 2030 (10 years). For bonds of similar risk and maturity, the market...
-
Using the following accounts and balances, prepare the stockholders' equity vection of the balance sheet. Pilty thousand shares of common stock are authorised, and 1,000 shares have been recoured,...
Study smarter with the SolutionInn App