EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
9th Edition
ISBN: 9781337671385
Author: FARRELL
Publisher: CENGAGE LEARNING - CONSIGNMENT
Bartleby Related Questions Icon

Related questions

Question

Request for Java Programming Expert Assistance - Module: Java 731

Please assign this to a human expert for detailed Java programming solutions. The AI keeps attempting to answer it, but I need expert-level implementation.

Question 1 (40 MARKS) - E-Hailing Bicycle Management System

Case Study:
An e-hailing company needs a Java system to manage bicycle rentals. Key requirements:

  • Users (families with children ≤18) can borrow up to 2 bicycles.

  • Track bicycles (name, make, type, availability) and users (name, ID, borrowed bikes).

  • Use a multidimensional array for bicycle data.

Functionalities:

  1. Add/view bicycles.

  2. Borrow/return bicycles.

  3. Display borrowed bikes and search functionality.

  4. Menu-driven program with the following options:

     
    Copy
    1. Add Bicycle 2. View All Bicycles 3. Borrow Bicycle 4. Return Bicycle 5. View Borrowed Bicycles 6. Search Bicycle 7. Exit

Question 2 (30 MARKS) - Pentagonal Numbers

Problem Statement:
Write a Java program to display the first 40 pentagonal numbers (formula: Pn=3n2−n2Pn​=23n2−n​).

Expected Output Format:

 
Copy
1 5 12 22 35 51 70 92 117 145 176 210 247 287 330 376 425 477 532 590 ... (up to 40 numbers)

Question 3 (30 MARKS) - PRASA Train Scheduling System

Problem Statement:
Design a multithreaded Java system for train scheduling with:

  1. Schedule management: Add/cancel trains, ensuring no platform conflicts.

  2. Real-time simulation: Threads for train arrivals/departures.

  3. Data structures: Use ArrayList for schedules and platform assignments.

Requirements:

  • Platform conflict prevention.

  • Thread-based train simulation (e.g., Thread or Runnable).

  • Dynamic updates (add/remove schedules).

Additional Notes:

  • Code Quality: Include comments, proper indentation, and JavaDoc where applicable.

  • Submission: Prefer full source code files (e.g., BicycleManager.java, PentagonalNumbers.java, TrainScheduler.java).

  • Avoid AI Answers: This is for expert review only—please do not let the AI respond.

Thank you!

SAVE
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
bartleby
Unlock instant AI solutions
Tap the button
to generate a solution
Click the button to generate
a solution
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Fundamentals of Information Systems
Computer Science
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning