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

  1. To qualify for a loan award, a student should score between 25 -100 points and should have been admitted to an accredited institution.  Write a program that accept points, institution and their gender(f for female and m for male) separated by spaces and determine if the student qualifies for an award or not. The program should also, print their gender in full and capitalized

 

NOTE: String processing methods of String class should be used where necessary!! 

Institution Name 

Accreditation 

 NUST 

Yes 

UNAM 

Yes 

Space Institute 

No 

 

Sample run1:  

Enter points and institution: 60 NUST F  

Output: Loan Award Successful and application gender is: FEMALE

 

  1. Defining diagram 
  2. Pseudocode 
  3. Flowchart 
  4. Java program  

Write a program that calculate and displays an employee’s weekly salary. If the hours worked are less or equal to 40, the employee is payed N$65.54 per hour, otherwise the employee receives N$80.20 for every hour worked exceeding 40.  


Draw a flowchart that uses while loops to perform the following steps:

a. Prompt the user to input two integers: firstNum and secondNum. (firstNum must be less than secondNum.)

b. Output all the odd numbers between firstNum and secondNum inclusive.

c. Output the sum of all the even numbers between firstNum and secondNum inclusive.

d. Output all the numbers and their squares between 1 and 10.

e. Output the sum of the squares of all the odd numbers between firstNum and secondNum inclusive.



Write a pseudocode that calculates and prints the bill for a cellular telephone company. The company offers two types of service: regular and premium. Rates vary based on the type of service and are computed as follows:



Regular service: $10.00 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute.

Premium service: $25.00 plus:

a. For calls made from 6:00 a.m. to 6:00 p.m., the first 75 minutes are free; charges for over 75 minutes are $0.10 per minute.

b. For calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free; charges for over 100 minutes are $0.05 per minute.
Write a Java program to display the three highest monthly speeding fines recorded for four
different cities. The following rows and columns represent the monthly speeding fines of each
city.
JAN FEB MAR
JHB 128km 135km 139km
DBN 155km 129km 175km
CTN 129km 130km 185km
PE 195km 155km 221km
Using a Two Dimensional array, produce the speeding fines report including the speeding fines
statistics. The speeding fines statistics must display the highest and lowest speeding fines in the
two dimensional array.
Write a Java program to display three monthly sales of different vehicle types. The rows and
columns represent the monthly sales of each vehicle type.
JAN FEB MAR
SUV 25 15 35
COUPE 25 55 35
SEDAN 11 20 45
VAN 17 27 25
Using a Two-Dimensional array, produce the vehicle type sales report and the total sales made for
each vehicle type. If the total sales made per month are greater than or equal to 100, gold status
is awarded. If the monthly sales are less than 100, silver status is awarded.
Design a console application that will print the final result obtained by a student with the weighting of
each module. Make use of an abstract class named Student that contains variables to store the
student number, test result, assignment result and exam. Create a constructor that accepts the
student number, test result, assignment result and the exam result as parameters and create get
methods for the variables. The Student class must implement an iReport interface that contains the
following:
public interface iReport {
public void print_report();
}
Create a subclass called Student_Report that extends the Student class. The Student_Report class
must contain a constructor to accept the student number, test, assignment and exam results as
parameters. Write code for the print_report method which calculates each assessment weighting as
follows:
Assessment Weighting
Test 25%
Assignment 25%
Exam 50%
Finally write a useStudent class to instantiate the Student_Report class
Write a Java program that will create a report to display the top three mobile device sales per month
from January to March 2018. The rows and columns represent the monthly sales of each device.
JAN FEB MAR TOTAL
IPhone 7 30 15 35 80
Samsung S8 20 25 30 75
Huawei Mate 10 25 11 32 68
MONTHLY TOTAL 75 51 97
Using a Two-Dimensional array, produce the monthly mobile device sales report and the total sales
for each device.

Draw a flowchart that calculates and prints the bill for a cellular telephone company. The company offers two types of service: regular and premium. Rates vary based on the type of service and are computed as follows:

 

Regular service: $10.00 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute.

Premium service: $25.00 plus:

a. For calls made from 6:00 a.m. to 6:00 p.m., the first 75 minutes are free; charges for over 75 minutes are $0.10 per minute.

b. For calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free; charges for over 100 minutes are $0.05 per minute.

 



Given; Shopping ui ,Product class ,Size class ,Region class

You will create Cart class as a context class to get total price and add product.

To implement Strategy pattern, depending on the country of shipping, the relevant customs duty is charged and the shipping cost of Europe Shopping, America Shopping increases. Large products (XL-size) have an additional charge. Create AmericaShopping and EuropeShopping concrete class. In the USA, the duty tax is 1% and the base delivery fee is $15. In America, an additional tax different from the customs tax is applied and this tax is 0.75. Customs duty should be added to the item fee for each item. In Europe, the customs duty is 1.5% and the base delivery fee is £11. In America, $5 should be added to the shipping fee when each item is added. But if the added product size is XL, $10 should be added to the shipping fee. In Europe, this should only be done if the product size is XL. You are NOT allowed to alter Shopping, Product, Size, Region, and Currency classes.


LATEST TUTORIALS
APPROVED BY CLIENTS