0% found this document useful (0 votes)
8 views6 pages

Java Activity Worksheet 2

The document outlines a Java programming activity to create a Student Billing Statement program. It includes detailed instructions for displaying student information, calculating fees, and formatting the output using System.out.println. The program must compute tuition fees, total bills, installment breakdowns, and provide student instructions in a structured format.

Uploaded by

ykwlibs
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views6 pages

Java Activity Worksheet 2

The document outlines a Java programming activity to create a Student Billing Statement program. It includes detailed instructions for displaying student information, calculating fees, and formatting the output using System.out.println. The program must compute tuition fees, total bills, installment breakdowns, and provide student instructions in a structured format.

Uploaded by

ykwlibs
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Activity No: 2 Date:

Name Liberty Faith Dusaban Prepared by: Prof. Ryan M. Agsaluna


Instructions:
1. Answer the following questions. You may use AI tools like Google Search to assist you in finding information.
However, remember to rephrase the information in your own words to demonstrate your understanding of
the topic.
2. Save the file in PDF format as much as possible attach the java file and submit it to Google Classroom under
Activity 2.
Student Instructions: Java Programming Activity Objective:
Create a Student Billing Statement program in Java using only [Link] to display details in a neat and
organized format.
Instructions: Sample Output

1. Create a Java program named [Link].


2. The program should display a Student Billing Statement using
[Link]() only.
3. Use variables and data types (e.g., String, int, double) to store the
following information:

● University name, college, and course


● Student name, ID, semester, and school year
● Subjects enrolled, number of units, and unit cost
● Tuition fee and other fees (library, laboratory, athletic,
miscellaneous)
● Total bill and installment breakdown (1st, 2nd, 3rd payments)

4. Compute the total tuition fee based on total units × unit cost.
5. Compute the grand total bill by adding tuition and other fees.
6. Compute the installment breakdown:

● First payment = 40% of total bill


● Second payment = 30% of total bill
● Third payment = 30% of total bill

7. Display the billing statement in a well-formatted layout, similar to an


official receipt.
8. At the bottom of the statement, include at least five (5) student
instructions (e.g., payment deadlines, cashier’s office location,
penalties for late payment).
9. Use the Peso sign (₱) for all amounts.

10. Output must look neat, aligned, and readable.


Source code:

Public class Studentbillingstatement {


Public static void main(String[] args) {
[Link](“=” .repeat (60));
[Link](“ILOILO STATE UNIVERSITY OF FISHERIES SCIENCE AND TECHNOLOGY”);
[Link](“%37s%n”, “Dumangas Campus”);
[Link](“-“ .repeat (60));

String collage = “Collage of Technology”;


String course = “Bachelor of Science in Information Technology”;
String studentName = “Liberty Faith Dusaban”;
String studentId = “06034-035”;
Int semester = 2;
String schoolYear = “2025-2026”;

[Link](“College: %-25s%n”, collage);


[Link](“Course: %-25s%n”, course);

[Link](“-“ .repeat (60));


[Link](“STUDENT BILLING SYSTEM”);
[Link](“=” .repeat (60));

[Link](“\nStudent Name: %-25s%n”, studentName);


[Link](“Student ID: %-25s%n”, studentId);
[Link](“Semester: %-25d%n”, semester);
[Link](“School Year: %-25s%n”, schoolYear);

[Link](“-“ .repeat (60));


[Link](“SUBJECTS ENROLLED: “);

String subj1 = “Programming 1”;


Int units1 = 3;
String subj2 = “Data Structures”;
Int units2 = 3;
String subj3 = “Computer Organization”;
Int units3 = 3;
String subj4 = “Web Development”;
Int units4 = 3;
String subj5 = “Discrete Mathematics”;
Int units5 = 3;
Int totalUnits = units1 + units2 + units3 + units4 + units5;
Double unitCost = 1000.00;
Double tuitionFee = totalUnits * unitCost;

[Link](“Programming 1 : “ + units1 + “ units”);


[Link](“Data Structures : “ + units2 + “ units”);
[Link](“Computer Organization : “ + units3 + “ units”);
[Link](“Web Development : “ + units4 + “ units”);
[Link](“Discrete Mathematics : “ + units5 + “ units”);
[Link](“-“ .repeat (60));
[Link](“Total Units : “ + totalUnits);
[Link](“Unit Cost : ₱%.2f%n”, unitCost);
[Link](“Tuition fee(unit x cost) : ₱%.2f%n”, tuitionFee);
[Link](“-“ .repeat (60));

Double library_fee = 2000.00;


Double lab_fee = 3500.00;
Double ath_fee = 1500.00;
Double misc_fee = 1000.00;
Double totalfee = library_fee + lab_fee + ath_fee + misc_fee;
Double totalbill = tuitionFee + totalfee;
Double firstPayment = totalbill * 0.40;
Double secondPayment = totalbill * 0.30;
Double thirdPayment = totalbill * 0.30;

[Link] (“Library Fee : %.2f%n”, library_fee);


[Link] (“Laboratory Fee : %.2f%n”, lab_fee);
[Link] (“Athletic Fee : %.2f%n”, ath_fee);
[Link] (“Miscellaneous Fee : %.2f%n”, library_fee);
[Link](“-“ .repeat (60));
[Link](“TOTAL BILL: ₱%.2f%n “, tuitionFee + totalfee);
[Link](“\n”+”=” .repeat (60));

[Link](“\nINSTALLMENT BREAKDOWN:”);
[Link](“-“.repeat(60));
[Link](“1st Payment (40%%): %.2f | Due Date: July 15, 2025%n”, firstPayment);
[Link](“2nd Payment (30%%): %.2f | Due Date: August 15, 2025%n”,secondPayment);
[Link](“3rd Payment (30%%): %.2f | Due Date: September 15, 2025%n”, thirdPayment);
[Link](“-“.repeat(60));

[Link](“\nSTUDENT INSTRUCTIONS:”);
[Link](“-“.repeat(60));
[Link](“1. Payments may be made at the University Cashier’s Office.”);
[Link](“2. Keep your Official Receipt (O.R.) for validation.”);
[Link](“3. Late payments may incur penalties and restrict exam access.”);
[Link](“4. Installment payments must be paid on or before the due dates.”);
[Link](“5. Report bank deposits to the Accounting Office with proof of payment.”);
[Link](“-“.repeat(60));
}
}

Output:

============================================================
ILOILO STATE UNIVERSITY OF FISHERIES SCIENCE AND TECHNOLOGY
Dumangas Campus
College: Collage of Technology
Course: Bachelor of Science in Information Technology
STUDENT BILLING SYSTEM
Student Name: Liberty Faith Dusaban
Student ID: 06034-035
Semester: 2
School Year: 2025-2026
SUBJECTS ENROLLED:
Programming 1 : 3 units
Data Structures : 3 units
Computer Organization : 3 units
Web Development : 3 units
Discrete Mathematics : 3 units
Total Units : 15
Unit Cost : ₱1000.00
Tuition fee(unit x cost) : ₱15000.00
Library Fee : 2000.00
Laboratory Fee : 3500.00
Athletic Fee : 1500.00
Miscellaneous Fee : 2000.00
TOTAL BILL: ₱23000.00

INSTALLMENT BREAKDOWN:
1st Payment (40%): 9200.00 | Due Date: July 15, 2025
2nd Payment (30%): 6900.00 | Due Date: August 15, 2025
3rd Payment (30%): 6900.00 | Due Date: September 15, 2025
STUDENT INSTRUCTIONS:
1. Payments may be made at the University Cashier’s Office.
2. Keep your Official Receipt (O.R.) for validation.
3. Late payments may incur penalties and restrict exam access.
4. Installment payments must be paid on or before the due dates.
5. Report bank deposits to the Accounting Office with proof of payment.
[Program finished]

You might also like