Rao.K Reddy

Greenhorn
+ Follow
since Oct 18, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rao.K Reddy

hey Caren the code you mentioned isn't working ...m getting an error: " getValue() method doesn't exist " ...
9 years ago
I dont want to declare key and values as an object




instead i want to use scanner to input the values into hashmap...how to do it?
9 years ago
Hi guys, I need help regarding my assignment...i am beginner in Java....my query is like: "i want to create hashmaps where the inner hashmap contains the key as firstname and value as a Class Student which contains parameters firstname, lastname,etc. I need this hashmap to be accessed by other objects of different classes". Please, help me out?



Here I have a main class


As we give the values by Scanner, it should be Stored in Hashmap and how those values can be accessed by other object classes?
How does the Logic works? What my next step?
9 years ago
Exception in thread "main" java.lang.NullPointerException
at test.Test.main(Test.java:20)
9 years ago
Hi guys, i am trying to give input values from the scanner as a string values into ".txt" file , which should be stored in HashMap. How should i do it? I tried as below but i am getting error....plzz help


9 years ago
Hi Steve, I have no clue how it works and i am lacking in logic...
9 years ago
Well, I have created the book database structure which consists of name ,author and numofbooks as fields. that was the first part. coming to second part I need to define an interface where the three methods such as createAccount(), reserveBook() and getNonreturners() are placed and it is implemented by the another ImplClass where the methods can be defined. Where am i supposed to use Multi-threading here? Should i implement Runnable to the Implementation class? and how am i supposed to create students account where each institution has a students record separately accessing libraries and admin checks the student activities done on reserving a book from that library.
9 years ago
I should use multi-threading in this project. I donno how to implement it using threads. creating students account and storing them into hashmaps is a tricky! I have no idea how to do it. can you suggest me how to do it and help me with some links?
9 years ago
please, give me an idea how to do it. It looks a bit complicated for me to do it. any possible video links how to do it? I have searched everywhere in youtube and google. can't find any solutions. please, help me out guys!
9 years ago
Distributed Reservation Management System (DRMS) using Java RMI
In the assignments and project, you are going to implement a simple Distributed
Reservation Management System (DRMS) for libraries: a distributed system to manage a
group of library systems used by students and administrators to help them manage book
reservations. So you will need to implement both the student interface support and admin
interface support. That is, you need to implement the functionalities that will help the end
users (students and admin, in this case) make use of the reservation system to reserve
books available within the library systems.
Consider a group of libraries each associated with a unique educational institution. The
server for each library must maintain a collection of books. Each book object can be stored
in any container of your choice, but make sure the container gives the best efficiency for
the operations related to accessing the book object. The book structure should contain the
following fields:
• Name of the book
• Author of the book
• Number of copies available
Students who need to borrow a book from the library must have an account with the server
that supports the library. An account contains the following specific information about the
student:
• First Name
• Last Name
• Email Address
• Phone Number
• Unique Username (min 6 characters and max 15 characters)
• Password of at least 6 characters
• Reserved books and duration to return the books
• Fines accumulated
• Educational Institution
The accounts are placed in several lists that are stored in a hash table according to the first
character of the username indicated in the account. For example, all the accounts with the
username starting with an “A” will belong to the same list and will be stored in a hash
table (acting as the database) using the key “A”. Each server also maintains a log containing the history of all the operations that have been performed on that server. This
should be an external text file (one per server) and shall provide as much information as
possible about what operations are performed, at what time and who performed the
operation.
The system has two distinct types of users: Students and Administrators. Students can be
identified by their username, password and educational institution. Whenever a student
performs an operation, the system must identify the library that the student belongs to
based on his/her educational institution and thus direct all the operations to that specific
server. The students maintain a file (text file) of the actions they performed on the system
and the response from the system when available. For example, if you have 10 students
using your system, you should have a folder containing 10 files. Administrators can be
identified by their username, password and educational institution. For the sake of this
assignment all the administrators have the same username which is “Admin” and the
password is also “Admin”. The administrators also maintain a file.
The operations that can be performed are the following:
Operations performed by Students
• createAccount (FirstName, LastName, EmailAddress, PhoneNumber, Username,
Password, EducationalInstitution)
When a student invokes this method through a client program called StudentClient,
the server associated with the educational institution attempts to create an account
with the information passed if the username does not exist and that the passed
information is valid according to the problem description by inserting the account at
the appropriate location in the hash table. The server returns information to the
student whether the operation was successful or not and the student file is created
and updated on the server. For simplicity it is assumed that the student has access
to creating an account in the library only if he/she is enrolled in the educational
institution.
• reserveBook (Username, Password, BookName, AuthorName)
When a student invokes this method through the client program called the
StudentClient, the server associated with this student attempts to find if the book
exist (although the book entry is found, quantity should be greater than 0 to
successfully reserve). If it does, then the corresponding quantity is decremented
and the book is updated to the reserved book list of the student. Note that the
student has to provide valid credentials to reserve a book. The duration is set to 14
days by default. Student file is updated.
Operation performed by Administrators
• getNonRetuners (AdminUsername, AdminPassword, EducationalInstitution,NumDays)
When Admin runs the getNonReturners () though the client program AdminClient,
it lists all the students’ First Name, Last Name and Phone Number who have not
returned the books with “NumDays” past their loan date in all the three educational
institutions. The admin File is updated with this information. The admin can then pass that information to the customer care agent to place a call to all the customers
to remind them about the book loan.
For the sake of this assignment, you have to make sure the getNonReturners () functions
returns
Educational Institution 1 : FirstName1 LastName1 514xxxxxxx
FirstName2 LastName2 514xxxxxxx
FirstName3 LastName3 514xxxxxxx
……..
Educational Institution 2 : FirstName1 LastName1 514xxxxxxx
FirstName2 LastName2 514xxxxxxx
FirstName3 LastName3 514xxxxxxx
……..
Educational Institution 3 : FirstName1 LastName1 514xxxxxxx
FirstName2 LastName2 514xxxxxxx
FirstName3 LastName3 514xxxxxxx
……..


This function needs to be implemented by using UDP/IP sockets where the admin invoked
server communicates with other servers using UDP/IP messages to get their information,
once the information is received the admin invoked server sends the result string to the
admin. This function should never be static for obvious reasons.
9 years ago
hey Carey ,do you want me to post my assignment to refer and suggest me how to do it?
9 years ago

9 years ago