|
-
Oct 31st, 2007, 09:57 AM
#1
Thread Starter
New Member
Help with Loops
Hi i'm new to VB.net and i'm trying to figure out a way to do this question.
• Write a solution using Structured English and
• Using the Structured English develop a Visual Basic.Net program to solve it.:
• The program must include a decision statement and a loop structure;
for the following:
The student canteen runs a discount scheme for meals allowing a student to obtain 10 meals a week from the breakfast, lunch and teas it serves Mon – Fri. In any one day only two meals may be purchased i.e one day a student could have a breakfast and lunch but not a tea but another day they may decide to have a lunch and a tea but no breakfast. Write a program to obtain the meal plans of a student for one week. It should display error messages if the rules of the discount scheme are broken (e.g. more than 10 meals a week or more than 2 a day) but also indicates if a student is missing some meals e.g. only 9 taken in the week.
I'm thinking that doing checkboxes and then looping them for each day? i'm not sure where to start any help please!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|