Workshop 1. OOP With Java
Workshop 1. OOP With Java
INFORMATION
Workshop 1. OOP with Java
For the delivery of the developed files, create a folder with the structure: T1JavaPOO-
NameSurname. Inside this folder include the Netbeans project that contains the exercises.
developed.
This workshop will not use any GUI apart from the JOptionPane class to capture and display messages.
what was seen in previous Workshops.
Products to Deliver: This workshop will be developed individually, develop it consciously. The delivery deadline
The workshop will be announced by the instructor.
1. A party was attended by people of different ages and sexes. Build an application that given the
ages and genders of the people calculated:
How many people attended the party?
How many men and how many women
average_ages_by_gender
The age of the youngest person who attended
No minors allowed at the party
Enter data until an age of zero is entered.
Generate the respective class diagram and create the application in Java that provides a solution to the
requirements.
2. Create a vector of numbers and another of String where we will insert grades between 0 and 10 (we must control that
insert a valid grade), which may be decimal the grade in the array of numbers, in the array of Strings will be inserted
the names of the students. The students will be inserted until the user wishes.
Then, we will create an array of Strings where we will insert the result of the grade in words.
Generate the respective class diagram and create the application in Java that provides a solution to the
requirements.
A savings and credit cooperative establishes the following conditions to determine the maximum value to
to lend for each line of credit.
up to three times the value of the
member's savings.
It is required to develop an algorithm that allows the registration of clients and calculates the maximum amount to be lent to a
partner according to the requested credit line and the value of the partner's savings.
Credit lines are coded as 1= Education, 2 = Vacation, 3= Vehicle, 4= Housing. Send a
message in case one of the previous codes is not registered. The information that will be requested from
Member is the name, type of labor link (contractor, permanent) and value of the savings.
Once the information is entered, the application should display a message on the screen:
and for
plant employees have a 3% discount on the value of the housing loan.
The application must allow the user to inquire about another different credit until they wish to exit.
The client and the queried line must be stored in a vector or an array. At the end, it will be displayed.
a report that includes:
Number of inquiries made by type of credit.
Number of contractor clients
Average savings that plant customers have.
Generate the respective class diagram and create the application in Java that provides a solution to the
requirements