H1. I want you to write a code in Java using just 2 structures and tell me what you used and follow these steps in ( blue j ) and Paste the picture of the output ande the code The steps: Start Program ask the user abut personal details 1) Enter your Name 2) Enter your age 3) Enter your number Ask the user Do you want to: 1) donation or 2) take a clothing if he choose 1)donation: Ask the user about donation type: 1)children : boys or girls 2)women 3) men Ask the user Enter item category : Ask the user Enter size of donated item: Ask the user Enter the quantity of donated item: Ask the user Do you want to 1)donate other pieces or 2)Exit: if he choose 1) Back to donation type if he choose 2) Confirm donation And Store donation information And Display all donation records End Program if he choose 2) take a clothing: ask the user abut personal details 1) Enter your Name 2) Enter your age 3) Enter your number Choose type of clothing: Choose size of clothing: Then Search if anyone donated the required piece or not. Ask the user Do you want another clothing ? If he choose yes Back to type if he choose no Confirm take a-clothing Store take a-clothing information Display all donation records that Matching the information that inter in Take a clothing and aske hem to choose one of them End program The code is a Java program that allows the user to either donate or take a clothing item. If the user chooses to donate, they are asked to enter details about the donation, including the type of donation (children, women, or men), item category, size, and quantity. They can then choose to donate additional items or exit. If they choose to exit, the program confirms the donation and displays all donation records. If the user chooses to take a clothing item, they are asked to enter their personal details and select the type and size of clothing they need. The program then searches the donation records for a matching item and asks the user if they want to select another item or confirm the selection. If they confirm the selection, the program stores the information and displays all donation records that match the selected item.
H1.
I want you to write a code in Java using just 2 structures and tell me what you used and follow these steps in ( blue j ) and
Paste the picture of the output ande the code
The steps:
Start
ask the user abut personal details
1) Enter your Name
2) Enter your age
3) Enter your number
Ask the user Do you want to: 1) donation or 2) take a clothing
if he choose 1)donation:
Ask the user about donation type:
1)children : boys or girls
2)women
3) men
Ask the user Enter item category :
Ask the user Enter size of donated item:
Ask the user Enter the quantity of donated item:
Ask the user Do you want to 1)donate other pieces or 2)Exit:
if he choose 1) Back to donation type
if he choose 2) Confirm donation
And Store donation information
And Display all donation records
End Program
if he choose 2) take a clothing:
ask the user abut personal details
1) Enter your Name
2) Enter your age
3) Enter your number
Choose type of clothing:
Choose size of clothing:
Then Search if anyone donated the required piece or not.
Ask the user Do you want another clothing ?
If he choose yes Back to type
if he choose no
Confirm take a-clothing
Store take a-clothing information
Display all donation records that Matching the information that inter in Take a clothing and aske hem to choose one of them
End program
The code is a Java program that allows the user to either donate or take a clothing item.
If the user chooses to donate, they are asked to enter details about the donation, including the type of donation (children, women, or men), item category, size, and quantity. They can then choose to donate additional items or exit. If they choose to exit, the program confirms the donation and displays all donation records.
If the user chooses to take a clothing item, they are asked to enter their personal details and select the type and size of clothing they need. The program then searches the donation records for a matching item and asks the user if they want to select another item or confirm the selection. If they confirm the selection, the program stores the information and displays all donation records that match the selected item.
Step by step
Solved in 4 steps with 6 images