Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a menu driven application to maintain the student information using Java to

demonstrate the concept of inheritance. Assume that you are considering PG and UG

students, where the specialization details are maintained only for the PG students. Your

application must contain the following functionalities along with the use of method

overriding, and super keyword.


a. For each student your application must have the details such as name,

Register Number , department, specialization, cgpa, Hostel Name,

Mentor Name, Number of Arrears.

b. Get the student details from user(admin)

c. Display the student list with all details in a proper and neat format.

d. In the menu give option to display the PG and UG student list

separately.


rules that govern employee behaviour are as follows: Most employees work 37.5 hours per week. employees earn R50 000 per year. Managers earn R20 000 extra per year. employees get 15 workdays leaves a year. Managers get an extra 3 days leave per year. Secretaries must work 40 per week. Name is the only attribute you need. Required: 1. Code the classes Employee, Manager and Secretary. 2. Code an application with the main method. In this class you must code an array of type Employee with a maximum size of 20. a. Add a minimum of 10 objects to the array. You may hard-code these object values. The objects must be a mixture of Employee, Manager and Secretary. b. Display all the objects on the screen. c. Calculate, and then display, the average salary of all employees. Extra Calculate and display the cost of the leave for each employee.


In a bank there are two types of transactions: credit and debit. All transactions are assigned an alphabetical ID. Credit transactions are assigned a vowel and debit transactions are assigned a consonant. To track transactions over a year, all the transaction IDs are combined to form a string of IDs for each customer. A customer wishes to know the number of times he made a debit transaction immediately after a credit transaction.

Write an algorithm to print the count of debit transactions that were made immediately afte a credit transaction for that particular customer.

Input

The first line of the input consists of a string userString, representing the string of transaction IDs.

Output

Print an integer representing the count of det transactions made immediately after a credit

write 2 methods named descBubbleSort() and descInsertionSort() that take an array

of Strings as an argument and sort the string values in a descending order using

bubble sort and insertion sort respectively. 



Magazine


-name: String

-price: double

-editor: String

-email: String


+Magazine() <<constructor>>

+Magazine(String, double, String, String) <<constructor>>

+getters()

+setters()

+toString:() String


1. Code the Magazine class according to the class diagram.

2. Code a class MagazineApp.

a. This class have a main method.

b. Code an array that can hold 5 Magazine objects.

c. Add (hard-code) objects to this array.

d. Display the array on the screen. Use the toString().

e. Remember to code a heading for the report, as well as a ending message.


Distinguish among Multiprocessing, Multithreading, Multitasking and Multiprogramming. How do you ensure that N thread can access N resources without deadlock?


Why should we use event adapter class instead of event listener? Explain the following java terms- i) Event (ii) Listener (iii) Adapter iv) Action Listener


Design and implement a Java program to make a chat platform using synchronization between 3 threads.

create a bot that can create discord accounts bulk? the bot needs to be able to create lots of accounts fast, api integration for sms verification and imap/pop3 support for email verification


Design and implement a Java program to make a chat platform using synchronization between 3 threads. Design a flowchart of your design. Implement your design.


LATEST TUTORIALS
APPROVED BY CLIENTS