Capstone C++ and SQL
1. Hospital Patient Tracker – Conditions
Functional Requirements:
1. Patient Registration
o Name, age, gender, phone, illness, admission date.
o Store in SQL table patients.(Data’s should be 15-20)
2. Doctor Assignment
o Assign doctors based on specialization.
o C++ selects doctor using patient illness type.
o SQL table doctors: id, name, specialization.
3. Visit History
o Track all visits of a patient with date, treatment summary.
o SQL table visits: visit_id, patient_id, doctor_id, date, notes.
4. Search Functionality
o Search by patient name or ID and retrieve full record.
o Join across patients, doctors, visits.
5. Discharge Summary
o Update patient record with discharge date and final notes.
o UPDATE SQL on patients table.
6. Statistics View
o Number of active patients.
o Most common illness using GROUP BY illness.
2. Inventory Management System – Conditions
Functional Requirements:
1. Add New Item
o Item name, quantity, price, supplier.
o Store in table inventory: item_id, name, qty, price, supplier. .(Data’s should be 15-20)
2. Update Stock
o Increase or decrease quantity based on sales or restock.
3. Delete Item
o Remove obsolete or discontinued items.
4. Search Item
o By name or ID.
o Show quantity and price.
5. Low Stock Alert
o List items where quantity < 10 using WHERE qty < 10.
6. Sales History
o Table sales: sale_id, item_id, date, quantity_sold.
o Track all sales; auto-update inventory.qty.
7. Supplier Info
o Table suppliers: supplier_id, name, contact.
o Join with inventory for full supplier details.
3. Cinema Ticket Booking System – Conditions
Functional Requirements:
1. Movie Management
o Add/edit/delete movies with title, genre, duration, showtimes.
o Table: movies: movie_id, title, genre, duration. (Data’s should be 15-20)
2. Screen & Seat Layout
o Define screen number and seats per show.
o Table: screens: screen_id, movie_id, date, time.
3. Booking System
o Book seats for a show.
o Update seat status as booked (seat_status = 'booked').
o Table: bookings: booking_id, user_name, screen_id, seat_no.
4. Check Availability
o Show available seats using SQL WHERE seat_status = 'available'.
5. Cancel Booking
o Cancel a ticket and update seat status.
6. Reports
o Most popular movie (GROUP BY movie_id, COUNT(*)).
o Revenue from each movie (SUM(price)).
Email : [email protected] Website : www.navigatelabs.ai