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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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.

Expert Solution
steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education