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

Create a java program that would compute and display the total mobile services fee incurred by a customer. Mobile services include text messages, calls in minutes and mobile data usage in megabytes.

Each customer was given a customer ID that would indicate the type of mobile plan he/she availed.

PLAN A:

-Customer ID ending with 0. Loyal member has 5 digits and above ID number.

-monthly fixed rate of P500.00

-allows free text messaging up to 250 messages. Beyond that, each message is charged 90 centavos.

-All-net calls up to 60 mins. Exceeding minutes applies P5/min.

-P5/MB. Free use of mobile data up to 80MB.

-20% discount from the total charge for Loyal member.

PLAN B:

-Customer ID ending with 5. Loyal member has 5 digits and above ID number.

-monthly fixed rate of P750.00

-allows free text messaging of up to 500 messages. Beyond that, each message is charged 70 centavos.

-All-net calls up to 120 mins. Exceeding minutes applies P5/min.

-P5/MB. Free use of mobile data up to 100MB.

-40% discount from the total charge.

PLAN C:

-Customer ID ending with 2. Loyal member has 5 digits and above ID number.

-monthly fixed rate of P1,200.00

-allows free text messaging of up to 1,000 messages. Beyond that, each message is charged 50 centavos.

-All-net calls up to 240 mins. Exceeding minutes applies P5/min.

-P5/MB. Free use of mobile data up to 500MB.

-60% discount from the total charge.


Input:

The first line of the input file will contain a single integer N that represents the

Customer ID number. Next line consists of 3 integer T, C and D, separated by commas (,). T is the total number of text messages; C is the total number of calls in minutes and D is the total data usage in MB.


Output:

The total mobile fee of the customer applying all charges given in the description and discounts if applicable. In addition, the program must also display an offer to upgrade the plan type for customers who have exceeded their monthly fixed rate by 200%.

Ex. Plan A

–Total bill of P1,860.00 means the customer exceeded by P1,360.00 or 272% from his/her monthly fixed rate of P500 (P1,860-500=1,360).






Write a temperature conversion GUI that converts from farenheit to celsuis


Create a super class called car.

a. The car class has the following fields and methods.

- Intspeed:

-doubleregularPrice:

- stringcolor: doublegelSale Price()

b. Creote a sub class of car class and name It as pickup. The following fields and methods.

- intweight:

- doublegetSidePrice()

If weight is greater than 2000. 15% discount otherwise 25%

c. Create a sub class and name it as Nissan. The follwing fields and methods.

- Intyear;

-intmanufacturerDiscount:

-doublegetsdePrice()

From the sale price computed from car class. subtract the manufacturer discount

d. Create a sub class and name it is methods

-. Intlength:

-doublegetSalePrice()

If length is less than 20 feet. 10% discount. Otherwise, 15% discount.

e. Create a MyShop class which contains the main method. Perform the following within the main() method.



-Create an instance of Toyota class and initialize all the fields with appropriate values. Use super (...)method in the constructor for initializing the fields of the super class.

-Create two instances of the Nissan class and initialize all the fields with appropriate values. Use super(...) method in the constructor for initializing the fields of the super class.

-Create an instance of car class and initialize all the fields with appropriate values. Display the sale prices of all instance.


Write a JAVA Program that would: Allow user to enter the size and element of a string array. Display the longest string found in the array.



Write a JAVA Program that would: Allow user to enter the size and element of a string array. Then ask the user to give a string and display whether that string is present in array or not. (Letter case doesn’t matter)


create a program in java:

You have 8 circles of equal size and you want to pack them inside a square. You want to minimize the size of the square. The following figure illustrates the minimum way of packing 8 circles inside a square:

Given the radius, r, find the area of the minimum square into which 8 circles of that radius can be packed.


The Input:


A positive real number (between 0.001 and 1000, inclusive) in a single line denoting the radius, r.


The Output:


For each test case, output the area of the minimum square where 8 circles of radius r can be packed. Print 5 digits after the decimal.


Your output is considered correct if it is within ±0.00001 of the correct output.



Write a Java program to find a certain character in a string and replace it with a new character.

Allow user to enter a string, find character and the replace character.

Display the new string.



To do list 

This project will record an event which will be described by Title, Description, Date, Time. The events will be stored and retrieved from a text file called events.txt. The program should read a file at a start and should store and delete new and already present events from text file. This program should find events with respect to date as well as name. All search event description should be displayed. 


To do list 

This project will record an event which will be described by Title, Description, Date, Time. The events will be stored and retrieved from a text file called events.txt. The program should read a file at a start and should store and delete new and already present events from text file. This program should find events with respect to date as well as name. All search event description should be displayed. 



When should you consider using recursive algorithms when writing a program?

Discuss in terms of advantages and disadvantages


LATEST TUTORIALS
APPROVED BY CLIENTS