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

Initialize two (2) variables to hold the employee name and the gross pay (amount before deductions). See sample output below.


Employee Name: Jess Diaz

Gross Pay: 25000.0

_________________________

Deductions Amount

Witholding Tax 3750.0

SSS Contributions: 907.5

Medicare: 312.5

Pagibig Contribution: 100.0

__________________________

Net Pay: 19930.0




Write a Java program that calculates and prints the monthly pay for an employee. The net pay is calculated after taking the following deductions:




Withholding Tax 15%



SSS Contribution 3.63%



Medicare 1.25%



Pag-IBIG PHP 100.00

Create interface Car: two methods getName () returns the car name, getPrice () method returns the car price

Create class BMW to implementation interface Car returns the name and price of BMW

Create class Maruti car to implement the interface Car returns the name and price of Maruti.

Create CarShop class: private member variable money is used to store the total income. 

 The member method sellCar has no return value and has a parameter, and the parameter is the Car interface. 

The member method completes the function: 

1. Output model: car name , get car price; 

2. Cumulative total revenue money value



Create the main class: create an automobile sales shop object. Create BMW objects, Maruti objects

 Call the sellCar method to sell the car. Output the total revenue of the sales shop.



create a parent class "Account" with three variables num, title and bal with two functions withdraw and deposit. Create a child class "Saving Account" with a function calculate Profit (that applies 7.5% profit on current balance). Finally create the class "TestApp" that creates the object of saving account and call withdraw, deposit functions and public data memebers of account clas. Override withdraw function in savingAccount to deduct Rs:250 if the balance after withdrawal of amount is less than 10000. In javascript


Develop a system by using Java programming language and object-oriented programming concepts for a hotel room reservation system. It should be a menu-driven stand-alone console application (No GUI required). No need to connect any database as well, but you may use file operations if required (not mandatory). Your system must have the following functionalities

o Register guests

o View available rooms

o Allocate a room for a guest

o Change/ delete room allocation for a guest

o Check-in to a room

o Checkout from a room

o Generate the bill


  •  Create a public class Student that has: o three private attributes:
  • name (String)
  •  an array of grades (array of integers).
  • finalGrade (float) which contains the average of the grades

entered in the array

  • The following public methods:
  •  A constructor allowing only to initialize the name of the student.
  •  A setter for the attribute name
  •  A method void addGrade(int nbr) in which nbr is the size
  • of the array. The method should ask the user to enter the grades and then computes the average (finalGrade) without displaying it.
  •  A method String toString() that returns the a String in the following format:
  • Name of the student: name Final grade: finalGrade
  •  Create a test class Test in which you:
  •  Create an instance of the class Student
  •  Change the name of your Student instance o Invoke the addGrade(int nbr) method
  •  Invoke the toString() method.

Using the ternary operator ( ? : ), write a Java program that prompts the user to input an integer and then checks if the number is positive or negative or equal to zero.



Write a Java program that asks the user to enter an integer number N and successively display all the odd numbers that are less than or equal to N.

 Improve the program so that it also displays the number of odd numbers

less than or equal to N.



Solution in java ONLY plz... FULL question can be found on the following link http://ntci.on.ca/compsci/java/ch5/5_9.html ---> question 14

I cannot put full question here as its too long... so full question is on the link

The requirement is for it to NOT be done with import java.io.*; etc..... just directly

Thanks, appreciate it

----------------------------------------------------------------------------------

Write a program that prints portions of Pascal's triangle. The program should repeatedly ask the user to supply the number of rows in the triangle, terminating when the user supplies the value zero. In printing a triangle, the first value in the last row should appear in the first column and each preceding row should start printing three spaces further right........



Retail store has preferred Customer plan. The amount of customer discount is determined by amount of customercumulative purchases in store. When preferred customer spends $500, he gets 5% discount on future purchases. When preferred customer spends $1,000, he gets 6% discount on future purchases. When preferred customer spends $1,500, he gets 7% discount on future purchases. When preferred customer spends $2,000, he gets 10% discount on all future purchases. Design class named PreferredCustomer which is derived from CustomerData class. PreferredCustomer class have:purchasesAmount (a double) ,discountLevel (a double).The purchasesAmount variable holds total of customer’s purchases to date. The discountLevel variable should be set to correct discount percentage according to store preferred customer plan. Also calculate discount Amount based on discount. Now in Main class create ArrayList and add customers into it and display the customers details purchase of each customer along with discount he gets


LATEST TUTORIALS
APPROVED BY CLIENTS