Find Jobs
Hire Freelancers

Building Complex Applications

$25-30 USD

Đang triển khai
Đã đăng vào hơn 19 năm trước

$25-30 USD

Thanh toán khi bàn giao
Design and develop a program that validates the value a user enters into a TextBox control to ensure that the entry is a valid telephone number. The application should accept a maximum of 12 characters. When the user clicks a button, the program should determine if the entry is of the form 999-999-9999, where the character 9 represents any number. If the entry is determined to be a telephone number, display an appropriate message, along with the separate substrings that compose the telephone number without the dashes. If the entry is not a telephone number, then display a message as to the reason why the entry is not a valid telephone number, clear the TextBox control and set focus to the TextBox control. Use String class methods to solve the problem. Here are a few hints to help you code the String methods: Check that the user has entered two dashes in the appropriate spaces. Break the string into 3 substrings, represented as 999,999, and 9999. Use the Visual Basic .NET IsNumeric() function to determine whether each substring is a valid number. The function accepts one parameter and returns a True or False value. ## Deliverables New key ideas of this assignment include: String variables Substring and Length() methods. See pp. 319-320 MsgBox(), see text p.72, p.136, and p.159 Focus(): syntax: [login to view URL]() , where control is the name of a control that will receive focus during run time. Example: [login to view URL]() The cmbCreditRating control receives focus when the above statement is executed IsNumeric() as explained in the assignment IsNumeric does not filter dash "-", comma "," or decimal point "." characters so your program must use IndexOf to filter for these characters in your substrings Logic: There are many ways to give user feedback on the correctness of the input. Some are more user friendly than others. However, it may require a lot of coding to account for various situations. The simple way is the following: First check the length of the input string: it must be exactly 12. Then check for Substring(3, 1) and Substring(7, 1),i.e. the fourth and eighth character must be “-“ Use the Substring method to separate the input string into 3 parts Check to see if each part is only numeric characters, using IsNumeric and IndexOf. If error, display error message box. You don’t have to use loops (you can if you want to), but you have to use the if-then-else statement ## Platform Window XP Professional
Mã dự án: 3399775

Về dự án

4 đề xuất
Dự án từ xa
Hoạt động 20 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
4 freelancer chào giá trung bình $9 USD cho công việc này
Avatar người dùng
See private message.
$12,75 USD trong 2 ngày
5,0 (31 nhận xét)
4,8
4,8
Avatar người dùng
See private message.
$8,50 USD trong 2 ngày
4,9 (42 nhận xét)
3,4
3,4
Avatar người dùng
See private message.
$10,20 USD trong 2 ngày
4,7 (12 nhận xét)
1,9
1,9
Avatar người dùng
See private message.
$5,95 USD trong 2 ngày
4,6 (2 nhận xét)
0,9
0,9

Về khách hàng

Cờ của UNITED STATES
United States
5,0
9
Thành viên từ thg 10 9, 2004

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.