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

During the time of the Coronavirus pandemic, the Lancet Laboratories had to do many COVID‐19 tests.



The details of these test is captures on a weekly basis for 4 months and stored in 3 parallel arrays as can be seen



below. String[] batchCodes = {"M1W1", "M1W2", "M1W3", "M1W4",



"M2W1", "M2W2", "M2W3", "M2W4",



"M3W1", "M3W2", "M3W3", "M3W4",



"M4W1", "M4W2", "M4W3", "M4W4"};



int[] testsDone = {467, 587, 987, 787, 878, 888, 936, 1002, 1005, 768, 887, 963, 789, 1008, 888, 687};



int[] positiveResults = {23, 87, 88, 99, 87, 105, 222, 138, 333, 258, 408, 444, 259, 236, 408, 258};



Follow the UML class diagram (Table 1.1) and description table (Table 1.2) and complete the TheTestStats application.



TheTestStats



+ main(String[]): void



+ testsDoneInWeek(String[], int[], int, int): int



+ percentagePositives(int[], int[]): double[]



+ highestPercentage(String[], double[]): String

Code about leather company it expected of you create an application for company that will allow them to view the list of lounge suite, update the price of a lounge suite , as well finding the cheapest 3 seater lounge suite

Build app for icecream parlor using file handling to record daily sales. Icecream parlor offers 10 flavours icecreams. Each has different price per scoop. Different flavours rates, description and rate/scoop are stored in file named flavors.txt. Also for each flavor sugarfree version also exists. It has same flavor and description but rate is 20% more than original per scoop price . There is no separate file or record for sugar free types. Build an interface by yourself.

A sale is done by selecting flavor from the list. Customer specifies the number of scoops & bill is calculated. If sugar free checkbox is selected then price is recalculated as mentioned above and bill is adjusted accordingly. Upon finishing a sale, sale record is saved in file named sales.txt. This file will contain record of all the sales of the day. Also create a separate file named total.txt. This file will contain just one number which is grand total of all the sales done


Bob employs a painting company that wants to use your services to help create an invoice generating system. The painters submit an invoice weekly. They charge $30 per hour worked. They also charge tax – 15%. Bob likes to see an invoice that displays all the information – number of hours, the charge per hour, the total BEFORE tax and the total AFTER tax. Since this is an invoice, we also need to display the name of the company (Painting Xperts) at the top of the invoice. Display all of the information on the screen.


Class Name : Worker







Name : To store the name of the worker




Basic : To store the basic pay in decimals









Worker (…) : Parametrized constructor to assign values to the instance variables




void display() : Display the workers details





Class Name : Wages






hrs : Stores the hours worked




rate : Stores rate per hour




wage : Stores the overall wage of the worker








Wages (…) : Parametrized constructor to assign values to the instance variables of both the classes




double overtime() : Calculates and returns the overtime amount as (hours*rate)




void display() : Calculates the wage using the formula wage = overtime amount + Basic pay and displays it along with the other details





Specify the class Worker giving details of the constructor () and void display ( ). Using the concept of inheritance, specify the class Wages giving details of constructor ( ), double overtime( ) and void display(). The main ( ) function must be written to perform the task.





Write a program that has a method commonPre (String str1, String str2) that


returns the common prefix of two strings. For example, the common prefix of “distance” and


“disinfection” is “dis”. If the two strings have no common prefix, the method displays “No


common prefix”. The user should be prompted to enter two strings in JOptionPane and


display their common prefix, if any. Use JOptionPane for all inputs and outputs.

Create a simple 5-question quiz with three choices that will display the score of the user. the quiz should be about your favorite game/series. Make use of control structures, arrays and functions in your Java program. Make sure the Interactive option is enabled to allow user input


Write a program to make a normal mathematics calculator.

For example:

Enter the numbers along with +, -, *, /, %, ^ symbols you want to be calculated:

1+2-3*4/5%6^7

Your calculation:

0.6

Remember to do using mathematics operator precedence(BODMAS) not java operator precedence.


Write a program to make a normal mathematics calculator.

For example:

Enter the numbers along with +, -, *, /, %, ^ symbols you want to be calculated:

5 + 4 - 7

Your calculation:

2

Remember to do using mathematics operator precedence not java operator precedence.


Java socket related classes to create a dictionary client To get familiar with the socket library in Java,


·    Requesting, receiving, parsing and returning a list of matching strategies supported by the server. The protocol allows a client to retrieve a list of matches (suggestions) based on a keyword, and the strategy is used to indicate how these keywords are used to present actual dictionary entries. Examples include prefix matches (all words that start with a prefix), regular expressions, entries with similar sounding words, etc. In the interface, the user will have the option of selecting a specific strategy for matching, with prefix match being the default.

·    Requesting, receiving, parsing and returning a list of matches based on a keyword, a matching strategy and a database. This list of matches will be used in the interface to suggest entries as they type a word.



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS