Project in Tech 143

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

FINAL REQUIREMENT: TECH 143 PROGRAMMING I

March 5, 2015
General Instruction:
below.

Create a TC programs that will perform the required outputs

1. Design and develop a TC program to display the high school level of a student,
based on its year-entry number. For example, the year-entry 1 means the student is
freshman, 2 for sophomore, and so on.
Here are the given criteria:
Year-entry number High-School Level
1- Freshman
2- Sophomore
3- Junior
4- Senior
5- Out-Of-Range

Enter Year Level:

You are a sophomore student!

2. Design and develop a TC program for a jack n poy game. Two players will input
the first equivalent letter. Given S for scissors, R for rock and P for paper. Then
display the winner and the basis of winning such as: paper covers rock, rock
breaks scissors, and scissors cut paper, or nobody wins. Capital or small letters
should be accepted by the program.

JACK N POY
Player 1:

Player 2:

Paper covers rock!


Player 1 wins!

3. Design and develop a TC program so that when the user chooses the
Economy accommodation, the amenities available are Toilet and Meals and the
fare is 1,500. When the user chooses the Tourist accommodation, the Toilet, Aircon,
Bed sheets, and Meals amenities are available and the fare is 1,700. When the user
chooses the Cabin accommodation, all amenities should be available and the fare is
2,000.

ACCOMODATION:
[E] Economy
[C] Cabin

[T] Tourist

Type the letter of your choice: T


Tourist Accomodation
Fare: 1700
Amenities: [/] Toilet
[/] Aircon
[ ] Television
[/] Bed sheets
[/] Meals
[ ] VIP Lounge

4. Design and develop a TC program that should display the following series of
numbers in pyramid formation. Use For statement or While or Do-While
statement/s in solving the problem.

9
11 11
13 13 13
15 15 15 15

7
9
11
13
15

5
7
9
11
13
15

3
5
7
9
11
13
15

1
3
5
7
9
11
13
15

3
5
7
9
11
13
15

5
7
9
11
13
15

7
9
11
13
15

9
11 11
13 13 13
15 15 15 15

Sample Output
FINAL REQUIREMENT: TECH 143 PROGRAMMING I
March 12, 2015
Juan M. Dela Cruz
2C-G1
General Instruction:
below.

Create a TC programs that will perform the required outputs

1. Design and develop a TC program to display the high school level of a student,
based on its year-entry number. For example, the year-entry 1 means the student is
freshman, 2 for sophomore, and so on.
Here are the given criteria:
Year-entry number High-School Level
1- Freshman
2- Sophomore
3- Junior
4- Senior
5- Out-Of-Range
SOURCE CODE:

OUTPUT:

You might also like