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

Code the classes Employee, Manager and Secretary. 2. Extra Code an application with a main method. In this class you must code an array o Employee with a maximum size of 20. a. b. c. Add a minimum of 10 objects to the array. You may hard The objects must be a mixture of Employee, Manager and Secretary. Display all the objects on the screen. Calculate, and then display, the average salary of all employees. Calculate and display the cost of the leave to the company for each employee. f type code these object values.
Code the classes Employee, Manager and Secretary. 2. Extra Code an application with a main method. In this class you must code an array o Employee with a maximum size of 20. a. b. c. Add a minimum of 10 objects to the array. You may hard The objects must be a mixture of Employee, Manager and Secretary. Display all the objects on the screen. Calculate, and then display, the average salary of all employees. Calculate and display the cost of the leave to the company for each employee. f type code these object values.
Program 6 – Employee rules Code the following program in Java. Only submit the source files. There will be many source files. Do not zip your project as it increases the marking time significantly. As a programmer, you must be able to follow precise instructions. You will also not always get precise instructions. You must learn to ask questions and make valid deductions of what is expected. In this problem, you must think about the problem and ways to represent the rules in Java classes. The coding is very simple and a repeat if what you have done before. The class diagram for the bases classes are depicted in the following diagram. Problem discussion Some of the rules that govern employee behaviour are as follows:  Most employees work 37.5 hours per week.  Most employees earn R50 000 per year. Managers earn R20 000 extra per year.  Most employees get 15 workdays leaves a year. Managers get an extra 3 days leave per year.  Secretaries must work 40 per week.  Everybody must apply for leave online.

Design an implementable routing and bridging solution for the network. Your

solution must address the following design and operation aspect of all routers.

Q.4.1.1 Functionality of the network layer. (5)

Q.4.1.2 Design and implementation of data plane. (5)

Q.4.1.3 Design and implementation of control plane. (5)

Q.4.1.4 Interconnection of networks using bridging systems. (5)

Q.4.2 Draw a detail diagram showing the design and implementation of Q.4.1 above. (15)


Study the adapter structure in the diagram below and then answer the questions that follow.

Diagram:


Q.3.1 Using suitable examples, briefly explain functions of the five components of this

network adapter.

(10)

Q.3.2 Provide a detailed operation analysis of this network adapter. (10)


Course Server


QUESTION


Test Cases & Qu


#include


int main


chat


scan


pris


ret


10


11


13 "1


14


15


16


17


18


19


20


21


22


23


// Warn


#includ


The current selected programming language is C. We emphasize the submission of a fully working code over partially correct but efficient code. Once submitted, you cannot review this problem again. You can use printf() to debug your code. The printf may not work in case of syntax/runtime error. The version of GCC being used is 5.5.0. The media company "GlobalAd" has received a batch of advertisements from different product brands. The batch of advertisements is a numeric value where each digit represents the number of advertisements the media company has received from different product brands. Since the company banners permit only even numbers of advertisements to be displayed, the media company needs to know the total number of advertisements it will be able to display from the given batch.


int


Write a simulation java program for the fruit market. The farmer will be able to

produce different types of fruits (apple, orange, grape, and watermelon), and

put them in the market to sell. The market has limited capacity and farmers

have to stand in a queue if the capacity is exceeded to sell their fruits.

Consumers can come to the market any time and purchase their desired fruits;

and if the fruits they want to buy runs out, they are willing to wait until the

supply of that kind is ready. (Hint: implementing this market will encounter

the producer and consumer problem, and it probably needs multiple buffers

for different kinds of fruits).
Write a Java program to implement the Library Information System using
packages with the following instructions
a) Create a Books class in pkg1.
b) Create an Admin class in pkg2.
c) Create a User class in pkg3.
d) Import all packages in Test class and do the following operations in a menu-driven
fashion. Add books, Search books, and List books.
Develop an application in Java for automating the Banking Operations using interfaces.
Create an interface called “Transaction” which contains the functions such as deposit,
withdraw, and viewBalance. Create another interface called “Displayable” which
contains the Display () function to display the account details.
Create an abstract class called “Account” with bank account details such as acc_name,
acc_no, and balance. Add necessary constructors.
Create a “Bank” class which implements the “Transaction”, “Displayable” interfaces
and inherits “Account” class.
Perform menu driven operations like Deposit, Withdraw and Balance Enquiry, View
Account Details from a Main class. Write logics in the corresponding methods.

3. A method to calculate overtime pay. This method should be called from calculatePay if and when

required.

public static double calculateOverTimePay(int OverTimeHours, double

basePay)


4. A method to display information

public static void displayInfo(String empName, int workingHours, double

totalPay)


LATEST TUTORIALS
APPROVED BY CLIENTS