Docsity

Lab 9: Creating a Rating Application with Select Case Statement - Prof. Nancy Mccracken, Lab Reports of Information Technology

Toggle sidebar
bg1
IST 256
Lab 9 โ€“ February 13, 2008
1. Writing a program with a Select Case statement
For this application, you are going to create an application that allows the user to rate
some small number of things from 1 to 10, by typing the numbers into textboxes. The
user should also say which dining hall they are rating by clicking on a Radio Button.
Then the user can click a button and get the average rating with a message that is selected
by a select case statement based on the average rating.
You can pick anything you like, but here is an example of rating types of food items in
the dining hall. The form should look something like this:
Rate each item from 1 to 10:
Main dishes: |______________| (textboxes)
Vegetables: |______________|
Fruits: |______________|
Desserts: |______________|
Which Dining Hall: * Kimmel * Student Center * Goldstein
(radio buttons)
| Compute Average Rating| (button)
Average Rating:
Dining Hall:
Message:
For this example, the messages for the average rating can be something like:
10 โ€“ Great
8-9 โ€“ Really good
6-7 โ€“ Pretty good
4-5 โ€“ Wellโ€ฆ
2-3 โ€“ Eeeeeeeeeuuuuuuuuu
0-1 โ€“ Really Grody

Partial preview of the text

Download Lab 9: Creating a Rating Application with Select Case Statement - Prof. Nancy Mccracken and more Lab Reports Information Technology in PDF only on Docsity!

IST 256

Lab 9 โ€“ February 13, 2008

1. Writing a program with a Select Case statement

For this application, you are going to create an application that allows the user to rate some small number of things from 1 to 10, by typing the numbers into textboxes. The user should also say which dining hall they are rating by clicking on a Radio Button. Then the user can click a button and get the average rating with a message that is selected by a select case statement based on the average rating.

You can pick anything you like, but here is an example of rating types of food items in the dining hall. The form should look something like this:

Rate each item from 1 to 10:

Main dishes: |______________| (textboxes) Vegetables: |______________| Fruits: |______________| Desserts: |______________|

Which Dining Hall: * Kimmel * Student Center * Goldstein (radio buttons)

| Compute Average Rating| (button)

Average Rating: Dining Hall: Message:

For this example, the messages for the average rating can be something like: 10 โ€“ Great 8-9 โ€“ Really good 6-7 โ€“ Pretty good 4-5 โ€“ Wellโ€ฆ 2-3 โ€“ Eeeeeeeeeuuuuuuuuu 0-1 โ€“ Really Grody