r/visualbasic • u/Softiboy • May 17 '22
VB.NET Help Can someone help with my Homework my Prof sucks. :(
My Prof just gave me Homework and i never coded. So i got no idea what to do i tryed to google for a answer but ism not really finding something.
So if somebody could help me out that what be huge.
The Problem is:
A sequence of numbers is to be read. The end of the sequence of numbers is marked by entering the character „*“. After all numbers have been read in, the number of all read numbers should be output.
0
Upvotes
3
u/Softiboy May 17 '22
There also was a Pic maybe it helps its in german but u propaly understand it better then me xD Pic
1
u/RoboNerdOK May 17 '22
Try breaking down the problem without thinking in terms of programming languages first. Often that gets you 90% of the way there.
What character is used to separate the numbers? (AKA a “delimiter”) You could count the number of times that character appears and base your answer on that.
For instance: 1,2,3,4,5*
Four commas means there are five numbers in the list. (Assuming that is what the assignment wants.)
1
u/Distinct-Employee-22 May 17 '22
Hi there, let me understand it. Your input can be : 2,6,3,9,6,*,7,9,3... And your output : 5 Thats right?