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

Draw a flowchart (cellphone) so that it uses the following methods to calculate the billing amount. (In this programming, do not output the number of minutes during which the service is used.)

a. regularBill: This method calculates and returns the billing amount for regular

service.

b. premiumBill: This method calculates and returns the billing amount for premium

service.



An applicant will accepted to the Jedi Knight Military Academy if he is least 200 cm. tall; age is between 21 and 25, inclusive; and a citizen of the Planet Endor. However, if the applicant is a recommendee of Jedi Master Obi Wan, he is accepted automatically regardless of his height, age and citizenship. Write a program that would input the applicant’s height, age, citizenship code(“C” for citizen of Endor, “N” for non-citizen), and recommendee code (“R” for recommendee, “N” for non-recommendee) and then output whether the applicant is accepted or rejected.
Using a while loop create a program that calculates the monthly salary of N employees[where N is the number of employees that's entered by the user]. If the employee worked less or equal to 160 hours, the employee will be paid N$240.00 per hour. For any hours greater than 160, the employee is paid N$320.00 per hour. Sample Run1 Enter number of employees(N):3 Hours worked 1: 160 Hours worked 2: 200 Hours worked 3: 80 Output1: Salary 1: N$38400.00 Salary 2: N$51200.00 Salary 3: N$19200.00 Sample Run 2 Enter number of employees(N):0 Output2: No employees provided to do calculations Sample Run 3 Enter number of employees(N):-4 Output 3: Number of employees cannot be negative

Given two stacks with their standard operations (pop, push, isEmpty, size), implement a queue with its standard operations (enqueue, dequeue, isEmpty, size).


There should be two versions of the solution.


Version A: The queue should be efficient when enqueuing an item; and Version B: The queue should be efficient when dequeuing an item.


1. Suppose you have been working with an organization called 'Money Traders' for the past few years. The organization is into the money trading business. Your manager assigned you a task. For a given array of stock's prices for N days, find the stock's span for each day.


The span of the stock's price today is defined as the maximum number of consecutive days(starting from today and going backwards) for which the price of the stock was less than today's price.


For example, if the price of a stock over a period of 7 days are [100, 80, 60, 70, 60, 75, 85], then the stock spans will be [1, 1, 1, 2, 1, 4, 6].


Explanation:


On the sixth day when the price of the stock was 75, the span came out to be 4, because the last prices (including the current price of 75) were less than the current or the sixth day's price.


Similarly, we can deduce the remaining results.


You have to return an array of spans corresponding to each day's stock's price.




  1. Give an implementation of the size() method for the DoublyLinkedList class, assuming that we did not maintain size as an instance variable.
Class named RectanglePerimeter with the following methods: +perimeterCalculator(double length,double breadth) : double - Should take two numbers and return a number as result - The logic for finding perimeter should be implemented in this method Use Main method class and display the output using object of RectanglePerimeter
Class named BankCustomer Create the following properties.  -customerid : int  -name : String  -baseamount : double -accounttype : String Use parameterized constructor for initializing values Methods . withdrawAmount(int amount) - reduce amount from baseamount . addAmount(int amount)  add amount with baseamount
While using a computer, a user uses the ALT TAB key to sch between applications. The ALT-TAB window works on the principle of holding the ALT key for MRU listing.Hence the applications arrange themselves in such a way that the most Recently used application will be the first item in the ALT TAB window and so forth. You are given the list of opened applications and the number of the that the user presses the Tab key switch between applicate the final arrangement of application in the ALT-TAB window Example In the given picture, Libraries application in focused which means that holding the ALT key,the user presses the Tab key twice internet.Explore being the most recently used application followed by libraries and so on. Output specification input1: An array representing the percentage of numbers in each city Input2: Number of cities in the country Output Specification: Return the favorable city index'i'. Example 1: input1: {1,1,3,6,7,3} input2: 6 Output: 4 Please give the java coding solution for this question

Using a while loop create a program that will prompt the user for a positive number and then print out a multiplication list of all the between the given number and one(inclusive), These are referred to as the factorial and it is only applicable for positive numbers, see link for more


LATEST TUTORIALS
APPROVED BY CLIENTS