Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey need help with this Windows forms visual studio project 1. Write a form that uses a regular expression to validate that the string provided

image text in transcribed

Hey need help with this Windows forms visual studio project

1. Write a form that uses a regular expression to validate that the string provided contains a number. A number is defined as: a. It must have at least one digit b. If it has a minus sign it must be the first character C. A decimal-place is optional but, if provided, there can only be one and it can be anywhere in the number 2. Write a program to validate if a given number is a prime number. A prime number is a positive integer greater than 1 that is not the product of two smaller numbers .... (can only be evenly divided by itself and 1). a. The input must be a number greater than 2 digits, less than 6 digits, and not negative. Validation is required. b. For example, 127 and 99989 are prime numbers and 1491 is not ... while 049, 123693 and 1,033 are not valid inputs, whether prime or not. 3. Write a form that stores information about truck weights in an array or a collection of arrays. a. Fields: recordid, truckld, date Measured, grossWeight, tareWeight b. Edits: i. recorded is an integer and must be unique ii. truckld is an integer greater than zero iii. date Measured cannot be in the future iv. grossWeight & tareWeight can have a decimal, must be zero or more v. tareWeight is not more than grossWeight C. Your form be able to store 5 truck records and permit updating the grossWeight of the vehicle with a given truckld d. Display the records in a rich text box, one line per record, separating the fields. 4. Write a regular expression to validate an Ontario health card number, which looks like this: XXXX-XXX-XXX-AA (AA can be any letter pair, but must be capitals) 5. Circle the strings that match the regular expression @"\s[A-Z]\w*(\s($) a. My dog's a pug named Tazz, short for Tasmanian devil. b. Mary, Mary, quite contrary ... how does your garden grow? C. That's not an eh, dear, that's an A d. I got an A? e. you need an M10 wrench f. Is that like a 10MM wrench? 1. Write a form that uses a regular expression to validate that the string provided contains a number. A number is defined as: a. It must have at least one digit b. If it has a minus sign it must be the first character C. A decimal-place is optional but, if provided, there can only be one and it can be anywhere in the number 2. Write a program to validate if a given number is a prime number. A prime number is a positive integer greater than 1 that is not the product of two smaller numbers .... (can only be evenly divided by itself and 1). a. The input must be a number greater than 2 digits, less than 6 digits, and not negative. Validation is required. b. For example, 127 and 99989 are prime numbers and 1491 is not ... while 049, 123693 and 1,033 are not valid inputs, whether prime or not. 3. Write a form that stores information about truck weights in an array or a collection of arrays. a. Fields: recordid, truckld, date Measured, grossWeight, tareWeight b. Edits: i. recorded is an integer and must be unique ii. truckld is an integer greater than zero iii. date Measured cannot be in the future iv. grossWeight & tareWeight can have a decimal, must be zero or more v. tareWeight is not more than grossWeight C. Your form be able to store 5 truck records and permit updating the grossWeight of the vehicle with a given truckld d. Display the records in a rich text box, one line per record, separating the fields. 4. Write a regular expression to validate an Ontario health card number, which looks like this: XXXX-XXX-XXX-AA (AA can be any letter pair, but must be capitals) 5. Circle the strings that match the regular expression @"\s[A-Z]\w*(\s($) a. My dog's a pug named Tazz, short for Tasmanian devil. b. Mary, Mary, quite contrary ... how does your garden grow? C. That's not an eh, dear, that's an A d. I got an A? e. you need an M10 wrench f. Is that like a 10MM wrench

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

1.Which are projected Teaching aids in advance learning system?

Answered: 1 week ago