Wednesday, November 17, 2010

IT5 - OOP (VB .Net) Lab Exer 1 and 2

Lab Exer 1
1. Develop a program that determines if a department store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available:
a) Account number
b) Balance at the beginning of the month
c) Total of all items charged by this customer this month
d) Total of all credits applied to this customer's account this month
e) Allowed credit limit
The program should input as Integers each of these facts, calculate the new balance
( = beginning balance + charges – credits)
display the new balance and determine if the new balance
exceeds the customer's credit limit. For those customers whose credit limit is exceeded, the program
should display the message, “Credit limit exceeded.”

Lab Exer 2

2.A palindrome is a number or a text phrase that reads the same backwards as forwards. For example, each of the following five- digit Integers are palindromes: 12321, 55555, 45554 and
11611. Write an application that reads in a five-digit Integer and determines whether it is a palindrome.
[Hint: Check if 1st digit equals 5th, 2nd digit equals 4th.]

0 comments:

About

My photo
Hi! Mabuhay everyone! I am Mark Van M. Buladaco! I am from Davao City! Hope you enjoy my blog!

Contact me

476 alley Malvar St., Davao City, Philippines
celticguardiandancingelf@yahoo.com
Web Marketingdrive recovery software