Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

VS 2010 Writing to file

$
0
0
Could anyone help me with the following tasks? It'd be much appreciated. It would have to be done using console.
Thanks!

1. There are 2000 tickets available for graduation. When given the number of people attending, calculate how many tickets each person can have. Write this information to file.


2. Ask a user for their name, age and address. Write this to file.


3. Alter task 2, to repeat 5 times, writing name, age, address for each person on its own line. (Eg: filewriter.writeline(strName & “ “ & age & “ “ & address…)


4. Create a loop which outputs the numbers 1 – 10,000. Write each value to file.


5. Ask the user to name the following five items:

Place, Day, an Item, some food, A scary monster name.

Place these in a sentence and write the items individually and the sentence to disk.


e.g.

London, Tuesday, Beach Ball, Burger, Rudolph
“In London, on Tuesday, I saw a beach-ball eating a burger when all of a sudden Rudolph flew down and popped the beach ball!”

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>