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

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.


Create a program that takes in two words, check for equality ignoring the cases, if the words are equal the print the word in upper case with an appropriate message however if the words are different then print the two words in lower case with an appropriate message.




  1. Suppose you have ten students in the programming-1 class; you are tasked to check which one of these students is vegetarian. Suppose five students are vegetarian. Write pseudocode, algorithms, flowchart to solve this problem 

consider an array MARKS [20] [5] which stores the marks obtained by 20 students in 5 subjects. now write a program.

(a.) find the average marks obtained in each subject.

(b.)find the average marks obtained by every student

(c.) find the number of students who have scored below 50 in their average.

(d.) display the scores obtained by every student.


Create a class named 'Rectangle' with two datamembers 'length' and 'breadth' andtwo methods to print the area and perimeter of the rectangle respectively. Its constructorhaving parameters for length and breadth is used to initialize length and breadth of therectangle. Let class 'Square' inherit the 'Rectangle' class with its constructor having a

parameter for its side (suppose s) calling the constructor of its parent class as'super(s,s)'. Print the area and perimeter of a rectangle and a square.


Create A Class Named 'Rectangle' With Two Data Members 'Length' And 'Breadth' And Two Methods To Print The Area And Perimeter Of The Rectangle Respectively. Its Constructor Having Parameters For Length And Breadth Is Used

LATEST TUTORIALS
APPROVED BY CLIENTS