IDNetters Forums

Technical News & Discussion => Windows News & Discussion => Topic started by: mrapoc on Oct 08, 2007, 09:22:04

Title: Ill guy needs help programming
Post by: mrapoc on Oct 08, 2007, 09:22:04
I've been off for 6 days with suspected meningitis but has luckily turned out to be a really strong flu virus variant (kinda scared me when I had a massive rash but it turned out to be non harmful). I've found out my event-driven programming course has been given homework to investigate on.

I would appreciate it if someone gave a bit of time just to write it (only needs to be simple like this is our fourth week doing it) plus to comment on each major part so I can understand whats going on ('insert comment)

I'm still not 100% so I'm goin to have to start looking at it from now even if i dont go back till later in the week.

Much appreciated (its visual basic express/studio that we use)

Quote
Week 4 Example Questions (using IFs and Loops)
You are expected to show these to your tutor at your next lesson. It is advisable that you have a go
at these questions, and try and work them out by yourself, as it will aid your learning of the subject.
If you don't complete these in your lesson, complete them at home.
• Remember to add comments throughout your programs.
• Concentrate on the algorithms (the steps needed to solve the problem) - don't be overly
fussy about the interface.
• Be prepared to use pencil and paper to work out how a problem might be solved.
• Test your program thoroughly.
1. Write a program that will input 3 whole numbers from a user, and multiply them together.
Output the result to the console.
2. Write a program that will ask the user for their name and year of birth, and will then output
a suitable greeting message, telling the person their calculated age.
3. Add to the age program above, where different output is given depending on the users
calculated age. For example, if they are 17 or over, tell them they can drive, if they are 18 or
older also tell them they can drink and vote etc. But if they are less than 1 or older than 130
tell them they may be mistaken, and ask them to input their age again.
4. Write a program to print the numbers from 1 to 10 and their squares:
1 1
2 4
3 9
...
10 100
5. Write a program to print this triangle (don't just use a set of print statements, program it!):
*
**
***
****
*****
******
*******
********
*********
**********
I'm going back to bed, will check soon...thanks
Title: Re: Ill guy needs help programming
Post by: cavillas on Oct 08, 2007, 10:07:14
Stop feeling sorry for yourself.  >:D Get out of bed and work, it's the best medicine for illness. >:D ::) ;D

Sorry couldn't resist. ;D


Hope you get better soon. :angel: :coffee: :pray:

Title: Re: Ill guy needs help programming
Post by: mrapoc on Oct 08, 2007, 10:12:23
Yeh so do i lol

Mind you i can always look forward to my next dosage of lemsip night and day pills...good stuff
Title: Re: Ill guy needs help programming
Post by: Rik on Oct 08, 2007, 10:14:23
Slippery slope, Sam. Next you'll be on Vick's Night Nurse and then...  :o