Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

Define absenteeism.

Answered: 1 week ago