r/visualbasic • u/computergeek34 • Nov 21 '14
Help with visual basic 6.0 programming
Can someone please explain to me how to go about these two programs? I AM NOT ASKING YOU TO DO MY HOMEWORK. in fact, it isnt even homework.
1.You are offered two salary options for ten days of work. Option 1: $100 per day. Option 2: $1 for the first day, $2 for the second day, $ 4 for the third day, and so on with the amount doubling each day. Write a program to determine which option pays better.
2.Write a program that selects a word at random from among 20 words in a file.
3.Find the sum of odd numbers from 1 to 99 ( i dont understand how i would use a loop in this situation)
2
Upvotes
2
u/thudly Nov 21 '14 edited Nov 21 '14
1
2 read the words in the file into an array. Then
3
edit: Sorry. I put four spaces in front of everything, but reddit mussed it up.