0% found this document useful (0 votes)
5 views2 pages

Java Projects with Conditional Statements

This Java Programming assignment consists of three projects focused on using conditional statements to solve real-life scenarios. Students are required to create flowcharts and Java programs for an Employee Salary Management System, a Hotel Reservation Billing System, and a Car Agency Recruitment System, each with specific input requirements and calculations. The assignment must be submitted by 9:00 AM on MON 12/01/2026, in a printed format with all necessary documentation.

Uploaded by

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

Java Projects with Conditional Statements

This Java Programming assignment consists of three projects focused on using conditional statements to solve real-life scenarios. Students are required to create flowcharts and Java programs for an Employee Salary Management System, a Hotel Reservation Billing System, and a Car Agency Recruitment System, each with specific input requirements and calculations. The assignment must be submitted by 9:00 AM on MON 12/01/2026, in a printed format with all necessary documentation.

Uploaded by

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

Java Programming Assignment Sheet

Course: Java Programming


Assignment Title: Java Projects Using Conditional Statements

Total Marks: 30 Degree

Objective:
The purpose of this assignment is to help students practice decision-making using multiple if / if-
else statements, apply computations, and improve problem-solving skills through real-life
programming scenarios.

General Instructions for Students


1 This assignment contains three programming projects.
2 For each project, students must draw a flowchart and write a Java program.
3 Use multiple if or if-else statements (loops are not required).
4 Programs must be well-structured, properly indented, and commented.
5 Use Scanner class for input.
6 Output should be clear and well-formatted.

Project 1: Employee Salary Management System


Design a Java program to calculate the net salary of an employee based on their basic salary and
job role.

Inputs: Employee ID, Employee Name, Basic Salary, Job Role (Manager, Developer, Clerk).
Allowances:
- Manager: 30% of basic salary
- Developer: 20% of basic salary
- Clerk: 10% of basic salaryTax Rules:
- Salary ≥ 1,000,000 → 15% tax
- Salary < 1,000,000 → 10% tax
Compute: Gross Salary, Tax Amount, Net Salary.

Project 2: Hotel Reservation Billing System


Create a Java program to calculate the total hotel reservation cost based on room type and number
of nights.

Inputs: Customer Name, Room Type (Single, Double, Suite), Number of Nights.
Room Prices:
- Single Room: 50,000 IQD per night
- Double Room: 80,000 IQD per night
- Suite: 150,000 IQD per night
Discount Rules:
- Nights ≥ 7 → 20% discount
- Nights 3–6 → 10% discount
- Otherwise → No discount
Compute: Total cost, Discount amount, Final bill.

Project 3: Car Agency Recruitment System


Design a Java program to decide applicant acceptance based on qualifications and test score.

Inputs: Applicant Name, Age, Years of Experience, Driving Test Score (out of 100).
Rules:
- Age must be 21 or above
- Experience must be at least 2 years
- Test Score ≥ 80 → Excellent
- Test Score 60–79 → Good
- Test Score < 60 → Fail
Decision: Accept the candidate if all conditions are satisfied; otherwise, reject.

Submission Requirements
Students must submit one document (in printed hard copy and coated in a file cover) containing:
1. Flowchart for each project
2. Java source code for each project

3. Submission deadline (9:00 AM, MON 12/01/2026).

You might also like