Question: I need a C# script with a multidimentional array to validata data in the form. It has to be a simple function, no classes are

I need a C# script with a multidimentional array to validata data in the form. It has to be a simple function, no classes are necessary. The form must have ideal levels of vitamins (A, B, C) for each gender and age range. C# script will make sure that each submitted form had at least one values for all three vitamins, genders (male, female or both) and age range (18-100). Age ranges for the same vitamin and gender cannot overlap but must cover a range of 18 to 100 years. A query (error message) must be issued for any vitamin, age or gender is missing (example: Please enter data for Vitamin A, Male, age 45 - 65). Please see the example of this form and data:

I need a C# script with a multidimentional array to validata data

In this example, Vitamin B has a value for both genders, age range 18 -99. But it must cover a range of 18 -100. The age of 100 is missing, therefore a query must fire to ask user to enter data for the age of 100.

Vitamins Vitamin A Vitamin A Vitamin A Vitamin B Vitamin C Vitamin C Vitamin C Vitamin C Gender Both Female Male Both Male Male Male Female Lowest Age Highest Age Level 18 51 51 18 18 31 51 18 0.5 1.0 0.8 1,2 0.10 1,5 2,0 3,5 50 100 100 30 50 100 100 Add Vitamins Vitamin A Vitamin A Vitamin A Vitamin B Vitamin C Vitamin C Vitamin C Vitamin C Gender Both Female Male Both Male Male Male Female Lowest Age Highest Age Level 18 51 51 18 18 31 51 18 0.5 1.0 0.8 1,2 0.10 1,5 2,0 3,5 50 100 100 30 50 100 100 Add

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!