Java | JSP | JSF Answers

Questions answered by Experts: 3 611

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

This assignment is to write a program using machine learning that will try to determine the political leanings of the user based on a survey.
You will be tasked to write this program in either C++ or Java, whichever you feel more comfortable
with.

2. The last question should ask which political party they affiliate with. This way you will be able to gather and store data corresponding to the results you acquire. Create at least 4 political party storage.
You will be tasked to write this program in either C++ or Java, whichever you feel more comfortable with.
The goal is for the program to be able to guess the user's political party before they reach the end
of the survey. This will require your program to gather a substantial amount of data before it can
make accurate guesses. In particular:
1. You should begin by presenting the user with questions that contain answer options that dier based on their political beliefs.
Ex. What should the government do to help the poor?

A. Make it easier to apply for assistance.
B. Put more money into schools.
C. Incentivize welfare.
D. Nothing.
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.
Write an algorithm to calculate the total
number of advertisements that will be
displayed from the batch.
Input
The input consists of an integer batch,
representing the batch of advertisements
Output
Print an integer representing the total number
of advertisements that will be displayed by the
media company
Constraints
0 < batchs 109​

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

2) Design a flowchart of your design

3) Implement your your design

4) Put your code and screenshot output in your pdf file.


Develop a java application using Inheritance as per the following. Create a class

Worker and derive two classes DailyWorker and SalariedWorker from it. Every

worker has name, salary rate. Provide a method ComPay(int hours) to compute the

week pay of every worker. A DailyWorker is paid on the basis of number of days

he/she works. The SalariedWorker gets paid the wage for 40 hours a week no

matter what actual hours is. Implement this scenario to calculate the pay of workers.

You are expected to use the concept of Inheritance with proper run time

polymorphism


Develop a java application using Inheritance as per the following. Create a super class called

CashTree which demonstrate any ATM Machine. Have attributes like name, codeno, location,

etc. Add functionalities like ViewBalance, WithDraw and Deposit in super class. Derive two

sub classes SBI_Bank, and HDFC_Bank with additional properties such as customer_name,

balance and redefine those super class functionalities according to the nature of specified

bank (differenciate via service_charges, interest rate, and maximum withdraw limit etc).

Complete the above scenario using Inheritance, Run Time Polymorphism with Menu driven

options.


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. 



LATEST TUTORIALS
APPROVED BY CLIENTS