Page 315 - IT-802_class_12
P. 315

total=ann_inc-tax;
                        System.out.println("Tax : "+ tax);
                        System.out.println("income after tax : "+total);
                    }
                }
            Practical Programs

              5.   Create a project which allows to enter a number in Decimal. It will convert the given number into Binary, Octal and
                 Hexadecimal and display the result.
              6.  Create a project which displays 2 options:

                 •  Create new user
                 •  Login
                   If clicked on “Create new user”, it will ask for 3 things – Name, Required Username, Password. On submit, these details
                 will be saved in a Database and a confirmation message will be displayed.
                   If clicked on “Login”, it will ask to enter username and password. If the entered details match with the stored details in
                 database, confirmation will be displayed – “Login Successful”, if details do not match, then “Login Failed” will be displayed.

              7.   Consider a shop selling electronic items. It allows to add new products to the inventory and update the inventory
                 when new stock is added. It allows to search for the availability of a desired product. The suggested modules can be:
                 •   Add and Update Items and Inventory: The shop can add new products to the system by entering the details of new
                   items and can even update the inventory and price details of existing items.
                 •   Enter sale of item: The shop can create sale record of items and simultaneously the quantity of the item will be
                   decremented.
                 •  View sales made: The shop can view records of sold items.
                 •  View current inventory: The shop can view records of current inventory in stock.
              8.   Consider a library management system. It allows to add new books and update the details. It allows to search for the
                 availability of a desired book. It allows to keep track of information such as issue date, last date to return the book and
                 information about applicable fine. The suggested modules can be:
                 •   Add and Update Books: The librarian can add new books to the system by entering the details of the books and can
                   even update the details of existing books.
                 •  Search option: Librarian can search for books by entering the name of the book.
                 •   Issue Book: The librarian can issue books to the students and simultaneously the quantity of the book issued will
                   be decremented.
                 •  View Issued Books: The librarian can view issued books.
                 •   Calculate Fine: The librarian can view the issue and expiry date for the book issued. The system can calculate fine if
                   the expiry date is over and inform the librarian.
              9.   Consider a Hotel management system. It allows the hotel management to add and update details about rooms such
                 as type of room, type of bed, tariff, occupancy status etc. It allows customers to check in to rooms and vacate rooms
                 as per fixed schedule.
                 The suggested modules can be:
                 •   Add and Update Booking: Guest can make new bookings, and can also modify and cancel the bookings. As per the
                   booking, the rooms will be shown as booked on the specified dates. If the booking is cancelled by the guest, the
                   room will be freed.
                 •   Update Room features and tariff: Hotel management can update the tariff of the rooms, the features of the rooms etc
                 •  Room allocation: The management can allocate rooms to the guests as per availability.
                 •   Room release and Bill calculation: When the guest vacates a room, the room will be released and an invoice will be
                   created for the room charges.
                                                                                                     Projects   313
   310   311   312   313   314   315   316   317   318   319   320