Question: 2. Custom Functions/Subroutines: Define a function or a subroutine (NOr an event handler) based on the requirement specificd in each question, Piease make sure to

 2. Custom Functions/Subroutines: Define a function or a subroutine (NOr an

2. Custom Functions/Subroutines: Define a function or a subroutine (NOr an event handler) based on the requirement specificd in each question, Piease make sure to define the input value(s) as the parameter variables in the function/sub statement. No Visual Studio projects are needed. Just a custom function/subroutine like what we discussed in the lecture, Your procedures will be graded primarily based on its logic. Each logic error costs 2 points. (1) According to Plato, a man should marry a woman whose age is half his age plus seven years. Define a function that takes a woman's age as input and returns the ideal age of her husband. (10 Points) (2) The federal government developed the body mass index (BMi) to determine ideal weights. Body mass index is cakulated as 703 times the weight in pounds, divided by the square of the height in inches, and then round to the nearest whole number. Define a function that accepts a person's weight and height as inputs and returns the person's health status (A BMI of 19 to 25 corresponds to a healthy status). (10 Points) (3) Define a subroutine that takes an integer array as its input and display the array elements in a sorted order (separated by commas) in a message box. DO NOT DEFINE AN EVENT HANDLER, (10 Points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!