![]() |
Calling ALL Programmers This is a call for anyone who has done Intro to Visual Basic. You can see the full assignment in the spoiler: Spoiler! Coding: Spoiler! Issues: 'Invoice ID: to display last 3 digits of customer number and Initals of Name. Eg. EL725 'Customer Name "Last Name, First Name" while Customer Name txt box remains "First Name Last Name" 'Reservation Date = system date but in mm/dd/yyyy 'Sail Date = show sail date 7 days from reservation date 'Restaurant Charge = how to have seperate charges for adults and kids 'Total Amount Due = add everything together. ANY HELP IS GREATLY APPRECIATED AS THIS IS DUE TOMORROW AT MIDNIGHT.. P.S. If you can help me figure this shit out. Coffee and donuts are on me at a n00b/RS meet. |
Quote:
I'm not going to put the code in here because I don't have any IDE to test the code, but I'll explain the steps required to achieve your objective. 1. Store their name in a variable, lets call this name. 2. Use Split method of String class to break name into two chunks INTO an array. (Tips: Space is the default Delimiter, and set the appropriate number for Limit to ensure you're only getting two letters.) 3. Use a for loop, use the GetChar method of String class to take the first indexed character of each string in your array. Store each char to a variable 4. Use the Right method of String class to grab the 3 numbers of your customer number. 5. Concatenate everything together to form XXnnn. Hope this helps. I would code it if I had an IDE for VB, but I don't. |
By the way, what are the content inside the second spoiler? Are those your work in progress? Or given by instructor? |
Current work in progress. |
|
All times are GMT -8. The time now is 10:35 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
SEO by vBSEO ©2011, Crawlability, Inc.
Revscene.net cannot be held accountable for the actions of its members nor does the opinions of the members represent that of Revscene.net