Dec 6, 2008

IT 226-Data Struct & Algo Requirements

Class Requirements for the Month of December 2008

BSIT 2 – A----------------------> BSIT 2A

  1. Write a program using standard string functions that accepts a price of an item and display its coded value base on the following keys:

0 1 2 3 4 5 6 7 8 9

X O M A C H I N E S

Sample Output:

Enter price: 489.50

Code Value: CES.HX

  1. Write a program using string functions that will accept the name of the capital as input value and will display the corresponding country.

Capitals Countries

Manila Philippines

Rome Italy

Moscow U.S.S.R

Washington United States

NOTE: Answer the problems above using TC. Write your answers on “2-piece” plain papers, first page will be for Problem 1, second page for Problem2. Do not forget to write your name. No need to computerize it, hand written will be accepted. Submit your answers before Christmas Vacation. No answers will be marked ZERO for this undertaking. STRICTLY: Late papers will not be accepted. Stapled papers will be good enough; do not place it in folder. Make use of your 2-weeks time wisely. Please follow instructions (as stated line-by-line in this paragraph). God Bless.

LABORATORY CLASS

Laboratory Assignment #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:

· Account Number

· Balance at the beginning of the month

· Total of all items charged by this customer this month

· Total Amount of items

· Paid Amount/total credit applied

· Allowed credit limit

The program should input as integer each of these facts, calculate the new balance (equals beginning balance + charges this month – 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”, else, “Thank you for Shopping”.

Laboratory Assignment #2

Write a program that uses looping to print the following table of values:

N

10*N

100*N

1000*N

1

2

3

4

5

10

20

30

40

50

100

200

300

400

500

1000

2000

3000

4000

5000

NOTE: The above problems are some of the midterm laboratory requirements. The first thing to do is to create and compile it on your preferred basic compiler e.g. Turbo C. Next is to convert or translate the codes created using TC into CPP file. From CPP you should convert it into Visual Basic programs using Console Application. It is therefore assumed, that you will submit and present SIX types of “run able” programs. Checking will be done at the laboratory (next year-2009) for those who wish to create there. However, if you can be able to work and perform it outside the campus, we can have the evaluation at the eng’g office (if PC’s available).

BSIT 2 – B -------------------------------> BSIT 2B

  1. Write a program using standard string functions that accepts a coded value of an item and display its equivalent tag price base on the following keys:

X O M A C H I N E S

0 1 2 3 4 5 6 7 8 9

Sample Output:

Enter coded value: CES.HX

Tag Price: 489.50

  1. Write a program using string functions that will accept a place in CARAGA Region as input value and will display the corresponding Province.

Place Province

Bislig Surigao del Sur

Trento Agusan del Sur

Ampayon Agusan del Norte

Poblacion Surigao del Norte

NOTE: Answer the problems above using TC. Write your answers on “2-piece” plain papers, first page will be for Problem 1, second page for Problem2. Do not forget to write your name. No need to computerize it, hand written will be accepted. Submit your answers before Christmas Vacation. No answers will be marked ZERO for this undertaking. STRICTLY: Late papers will not be accepted. Stapled papers will be good enough; do not place it in folder. Make use of your 2-weeks time wisely. Please follow instructions (as stated line-by-line in this paragraph). God Bless.

LABORATORY CLASS

Laboratory Assignment #1

Develop a program that determines of a student could proceed to the next level of learning (4th year). For each student, the following facts are available:

    1. Student number/id
    2. English Grade
    3. Filipino Grade
    4. Math Grade
    5. Science Grade
    6. P.E. Grade

The program should calculate for the general average of a student, display the average and determine if he could proceed to the next level of learning. For students whose general average is below 85, the program should display the message “Sorry, you have to repeat this level of learning before you can proceed to 4th year”, else “Congrats, you’re qualified for the next level”

Laboratory Assignment #2

Write a program that calculates the squares and cubes of the number 0 to 5 and prints the resulting values in table format as follows:

Number

Square

Cube

0

1

2

3

4

5

0

1

4

9

16

25

0

1

8

27

64

125


NOTE: The above problems are some of the midterm laboratory requirements. The first thing to do is to create and compile it on your preferred basic compiler e.g. Turbo C. Next is to convert or translate the codes created using TC into CPP file. From CPP you should convert it into Visual Basic programs using Console Application. It is therefore assumed, that you will submit and present SIX types of “run able” programs. Checking will be done at the laboratory (next year-2009) for those who wish to create there. However, if you can be able to work and perform it outside the campus, we can have the evaluation at the eng’g office (if PC’s available).

No comments: