
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

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