Question 2 Pentagonal Numbers Problem Statement (30 MARKS) Create a Java program that will display the first 40 pentagonal numbers. Hint: A pentagonal number is a figurate number that extends the concept of triangular and square numbers to the pentagon, but, unlike the first two, the patterns involved in the construction of pentagonal numbers are not rotationally symmetrical. Expected Output: 1 5 12 12 22 35 51 70 92 117 145 176 210 247 287 330 376 425 477 532 590 651 715 782 852 925 1001 1080 1162 1247 1335 1426 1520 1617 1717 1820 1926 2035 2147 2262 2380 2501 2625 2752 2882 3015 3151 3290 3432 3577 3725 Question 1: E-Hailing Bicycle Management System (40 MARKS) Case Study: An e-hailing company that rents out bicycles needs a system to manage its bicycles, users, and borrowing process. Each user can borrow up to 2 bicycles at a time, specifically for families with children 18 years or below. The system must track the bicycles (name, make, type, and availability) and users (name, ID, and borrowed bicycles). The company also wants to ensure that the system uses a multidimensional array to store information about the bicycles. Requirements: 1. Add and View Bicycles: 2. Borrow Bicycles: 3. Return Bicycles 4. Display Borrowed Bicycles and Search for a bicycle 5. Create a menu-driven program to implement the above. Sample Output: 1. Add Bicycle 2. View All Bicycles 3. Borrow Bicycle 4. Return Bicycle 5. View Borrowed Bicycles 6. Search Bicycle 7. Exit Enter your choice:
Question 2 Pentagonal Numbers Problem Statement (30 MARKS) Create a Java program that will display the first 40 pentagonal numbers. Hint: A pentagonal number is a figurate number that extends the concept of triangular and square numbers to the pentagon, but, unlike the first two, the patterns involved in the construction of pentagonal numbers are not rotationally symmetrical. Expected Output: 1 5 12 12 22 35 51 70 92 117 145 176 210 247 287 330 376 425 477 532 590 651 715 782 852 925 1001 1080 1162 1247 1335 1426 1520 1617 1717 1820 1926 2035 2147 2262 2380 2501 2625 2752 2882 3015 3151 3290 3432 3577 3725 Question 1: E-Hailing Bicycle Management System (40 MARKS) Case Study: An e-hailing company that rents out bicycles needs a system to manage its bicycles, users, and borrowing process. Each user can borrow up to 2 bicycles at a time, specifically for families with children 18 years or below. The system must track the bicycles (name, make, type, and availability) and users (name, ID, and borrowed bicycles). The company also wants to ensure that the system uses a multidimensional array to store information about the bicycles. Requirements: 1. Add and View Bicycles: 2. Borrow Bicycles: 3. Return Bicycles 4. Display Borrowed Bicycles and Search for a bicycle 5. Create a menu-driven program to implement the above. Sample Output: 1. Add Bicycle 2. View All Bicycles 3. Borrow Bicycle 4. Return Bicycle 5. View Borrowed Bicycles 6. Search Bicycle 7. Exit Enter your choice:
Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter4: Entity Relationship (er) Modeling
Section: Chapter Questions
Problem 10P
Related questions
Question
please answer my 2 java questions correctly , include all comments etc and layout and structure must be correct , follow the requirements

Transcribed Image Text:Question 2
Pentagonal Numbers
Problem Statement
(30 MARKS)
Create a Java program that will display the first 40 pentagonal numbers. Hint: A pentagonal number is a
figurate number that extends the concept of triangular and square numbers to the pentagon, but, unlike the
first two, the patterns involved in the construction of pentagonal numbers are not rotationally symmetrical.
Expected Output:
1
5
12
12
22
35
51
70
92
117
145
176
210
247
287
330
376
425
477
532
590
651
715
782
852
925
1001
1080
1162
1247
1335
1426
1520
1617
1717
1820
1926
2035
2147
2262
2380
2501
2625
2752
2882
3015
3151
3290
3432
3577
3725

Transcribed Image Text:Question 1:
E-Hailing Bicycle Management System
(40 MARKS)
Case Study:
An e-hailing company that rents out bicycles needs a system to manage its bicycles, users, and
borrowing process. Each user can borrow up to 2 bicycles at a time, specifically for families with
children 18 years or below. The system must track the bicycles (name, make, type, and availability)
and users (name, ID, and borrowed bicycles).
The company also wants to ensure that the system uses a multidimensional array to store
information about the bicycles.
Requirements:
1. Add and View Bicycles:
2. Borrow Bicycles:
3. Return Bicycles
4. Display Borrowed Bicycles and Search for a bicycle
5. Create a menu-driven program to implement the above.
Sample Output:
1. Add Bicycle
2. View All Bicycles
3. Borrow Bicycle
4. Return Bicycle
5. View Borrowed Bicycles
6. Search Bicycle
7. Exit
Enter your choice:
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning


Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning


Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning

Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L