Ass Final Project
Ass Final Project
1. Calculate either the Future Value or Monthly Payment depending on the option
button clicked
a)Use Formulas
b)Use Functions
c)Use a Class and Functions
4.Write a program that prompts the user to enter the length in miles, converts the
length in miles to other units such as meters,feet,yards,inches depending on the
choice(use Combo Box) and displays the result in :Text Box ,Picture Box,Label
a)Use Formulas
b)Use Functions
c)Use a Class and Functions
7. Lets calculate the new bacteria population after 2 days in a medium with a time
coefficient of 1.380. Lets asume that initial bacteria population in the colony was 15.
Ynew = Yold * [Exp (coef. * Time)]
New population will be:
Ynew = (15) * [Exp (1.380 * 2)]
Ynew = 237
a)Use Formulas
b)Use Functions
c)Use a Class and Functions
8. Write a program for student grades. The program prompts the user to enter his/her
name, social security number (ssn), the scores for a midterm and a final. The midterm
is 47% of the grade and the final is 53%. Grades are calculated on a 90–80–70–60-50
scale. The program returns the output in picture box as shown in figure below.
Use a class and function.
9. A furniture manufacturer makes two types of furniture—chairs and sofas. The cost
per chair is $301.25, the cost per sofa is $990 and the sales tax rate is 5% of the
cost.Write a program to create an invoice form for an order. After the data on the left
side of Figure are entered, you can display an invoice in a list box by pressing the
Process Order button. You can press the Clear Order Form button to clear all text
boxes and the list box, and you can press the Quit button to exit the program. The
invoice number consists of the capitalized first two letters of the customer’s last name,
followed by the last four digits of the zip code. The customer name is input with the
last name first, followed by a comma, a space, and the first name. However, the name
is displayed in the invoice in the proper order. The generation of the invoice number
and the reordering of the first and last names should be carried out by Function
procedures.
10. Write a program that accepts the temperature in degrees Celsius and converts it
Fahrenheit, Rankin or Kelvin depending on the scale selected in combo box and
display the results in Text box.
13. The campus restaurant at university sells the meal made of breakfast, lunch and
dinner. The student can select one, two or all of them. The price is calculated based on
the faculty of the student, gender and age. The price for breakfast, lunch and dinner
are $ 2.5, $ 4.8 and $3.9, respectively. When the student is a male $ 0.15 is added
while $ 0.12 is added for female. For student with age less than 18 years, $ 0.2 is
added,$0.3 for student with age between 19 and 24 years,$ 0.4 for student between 25
and 30 years and $0.5 for student over 30 years. The total price is the sum of the types
of meal ordered plus the charges (age and gender) multiplied by 1.4 for management
student, 1.6 for science student, 1.7 for engineering student and 1.9 for medical
student.(A male management student who ordered three meals: Total
Price=(Breakfast+ Lunch+ Dinner+ Charge for Male+ Charge for Age)*1.4. Write a
program that accepts the names of the student and display the information related to
the student including names, age, gender, type of meal and total price of the meal
bought at campus restaurant.
a) Display in picture box
b) Display in list box
14. A. Design and Develop a Form for demonstrating different shapes and colors.
B. a)If you click on one of the Option Buttons on the form on the left, a picture is
displayed on the form on the right. The picture changes depending on which sport you
select. If you want to choose some other picture file, click on the Browse Option
Button. This displays an open file dialog which allows you to search through the files
on your system and select a picture file which is then displayed. If you want to print
the picture click on the Print button. Clicking on the Exit button closes the application
b) Select one of the sports shown in the combo box; the corresponding picture is
displayed in an Image control and a Label control displays the name of the sport
selected.