0% found this document useful (0 votes)
115 views

Hard Activity On Java

1. The document describes an input screen that collects passenger information including name, gender, address, date and time of flight, and luggage weight. It also describes an output screen that displays the booked flight details, passenger info, origin and destination, and total fare calculated from rate and luggage charge. 2. The input requires name as a 2-20 character string, gender as 1 or 2, address as a 4-50 character string, date in mm/dd/yyyy format, time as 1 (am) or 2 (pm), and luggage weight in kg. 3. The output displays the passenger name and details, origin as "Roxas City, Philippines", destination as "Manila, Philippines",

Uploaded by

Milbert
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views

Hard Activity On Java

1. The document describes an input screen that collects passenger information including name, gender, address, date and time of flight, and luggage weight. It also describes an output screen that displays the booked flight details, passenger info, origin and destination, and total fare calculated from rate and luggage charge. 2. The input requires name as a 2-20 character string, gender as 1 or 2, address as a 4-50 character string, date in mm/dd/yyyy format, time as 1 (am) or 2 (pm), and luggage weight in kg. 3. The output displays the passenger name and details, origin as "Roxas City, Philippines", destination as "Manila, Philippines",

Uploaded by

Milbert
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

c.

Required
a. Input Screen 1. Name – assume a string from 2 to 20 chars

2. Session Code Session


Student Name : 1 Morning
Session Code (1/2) : 2 Afternoon
Course Code (50-52) :
Registration Fee : 3. Course Code Course Desc Course Fee
50 C++ 7000.00
51 Java 8000.00
52 Visual Basic 9000.00

b. Output Screen 4. Registration Fee – assume a float from 3500.00 up to Course Fee

Registration Fee Pot Disc


Student Name : Below 4499.99 0
Session : 4500.00 to 5499.99 2
Course Desc : 5500.00 to 6499.99 4
Total Balance : 6500.00 & above 6

5. Disc Amount = Course Fee*Pot Disc/100

6. Total Balance = Course Fee – (Registration Fee + Disc Amount)


c. Requirements
a. Input Screen
1. Name – assume a string from 2 to 25 chars

Purchaser Name : 2. Item Code Item Type Unit price


Item Code (15-65) : below 36 Hakata Printer 6560.50
Quantity Purchased (2-50) : 36 to 50 Atami System Unit 9365.50
Payment Code (1/2) : 51 to 58 Hakata Monitor 5500.43
59 & above Hakone Keyboard 3679.99

3. Quantity Purchased – assume an integer from 2 to 50.

b. Output Screen 4. Payment Code Payment Type Pot Charge


1 Cash 0
2 Check 10
Purchaser Name :
Item Type : 5. Gross Bill = Quantity Purchased * Unit Price
Payment Type :
Net Bill : 6. Added Charge = Gross Bill * Pot Charge/100

7. Net Bill = Gross Bill + Added CHarge


c. Requirements
a. Input Screen
1. Employee Name – assume a string from 2 to 25 chars

Employee Name : 2. Dept Code Department Pot Bonus


Dept Code (1-4) : 1 Accounting 85
Month Code (1-12) : 2 Sales 72
Monthly Income : 3 Personnel 50
4 Finance 90

4. Monthly Code Month of Release 1 Januar

b. Output Screen 2 February


: :
Incentive Statement 12 December

Employee Name : 5. Monthly Income is from 1000.00 to 120000.00


Department :
Month of Release : 6. Bonus Amount = Monthly Income * Pot Bonus/100
Bonus Amount :
7. Use DO-While loops
c. Requirements
a. Input Screen
1. Tourist Name – assume a string from 2 to 20 chars

Tourist Name : 2. Hotel Code Hotel Name


Hotel Code (1-3) : 1 InSugar Hotel
Guide Code (1-4) : 2 Butong Hotel
Tour Days (3-9) : 3 Panay Inn

3. Guide Code Guide Name Rate/Day 1 Jane


Bond 1106.00
2 Sylvie Rambo 930.90
b. Output Screen 3 Diega Silang 920.30
4 Sabel Lopez 1107.00
Tourist Name :
Hotel : 4. Tour Days – assume an integer from 3 to 9.
Guide Name :
Tour Days : 5. Total Fee = Rate * Tour Days
Rate Per Day :
Total Fee :
c. Requirements
a. Input Screen
1. Name of Passenger – assume a string from 2 to 20 chars
Passenger Personal Info
Name of Passenger : 2. Gender Distinction Name Prefix
Gender 1 / 2 (1-male 2-female) : 1 male Mr.
Address : 2 female Ms.
Date of Flight (mm/dd/yyyy : 3. Address – assume a string from 4 to 50 chars
Time of Flight 1 / 2 (1-am 2-pm) : 4.Date of Flight – assume a string in format of mm/dd/yyyy
Passenger’s Load (7kg, 10kg, 15kg, 20kg): 5. Time of Flight Description Rate 1 am
2800.50
2 pm 1900.00
b. Output Screen 6. Passenger’s Load Charge
7 500.30
Flight Booked 10 760.00
Passenger : 15 950.60
Gender : 20 1165.00
Address : 7. Origin - “Roxas City, Philippines”
Origin : 8. Destination – “Manila, Philippines”
Destination : 9. Total fare = rate+charge
Total Fare :

You might also like