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

Question 1 (Marks: 40)

Sam runs a local musical equipment store in your neighbourhood. He has contracted you to create 

an interactive application that will assist him with customer purchases. Create a class named 

Customer Purchases that will contain get and set methods for a customer number, first name, 

surname, product, price and quantity. Create a separate class called Printing that will include a 

method called Print Details, that will print the Customer Invoice. In the Printing class include 

another method called Customer Purchase Report which will display the following information:

REPORT OPTION PERCENTAGE

TAX 15%

COMMISSION 8.5%

DISCOUNT 10%

TOTAL (Price + Tax) – (Discount + Commission)

In your main class, capture all the customer purchase details required to produce the reports.


Example of Insertion in Red Black Trees in Data Structures.


(with GUI) developed with Java programming language.Use NetBeans Application.

Create a project named “FavoriteBooks” which keeps a list of the books that a user has read and liked.

Book id, Title, Category, First Author Name and Surname, Award Winner, Rating, Year, Number of Pages, and Short Description.

Functions:

1. Add a Book to the list with the given book id from a JTextField.

a) Data to be entered using JTextField components are: Title, Category, Author Name and Surname, Award Winner, Rating, Year, Number of Pages and short Description. This task should add the book to the text document.

b) Rating option can be selected from a JComboBox.

c) JTextArea can be used to enter a short description of the book.

d) Do not create a JTextField to enter the book id. Instead, the book id should be incremented automatically by checking the last book id in the text document.


1 Write the pseudocode that will accurately represent the application you are designing.


You have been tasked to design a COVID-19 screening application for your campus. The guards at each gate will screen the students and enter their details on the application. The capabilities and features of the application should include a choice between the following functions: 1. A screening survey which will allow guards to record the students’ screening data. 2. Searching for a student’s details and status. Technical Requirements: 1. The application should make use of Parallel arrays that will hold the details of the student as it is entered along with their status (admitted/not admitted). No more than 300 students will be allowed on a campus at any given day and time. 2. No student should be allowed access to the campus after 12h00 in the afternoons regardless of whether capacity has been reached or not. 3. If a student’s temperature is 38 degrees or more, they will not be allowed entry into the campus.


What is heap. Create maximum heap using built in function or using array list. Use any one method for creation max heap.


What are Red Black Trees? Explain Insertion in a Red Black Tree with a suitable example.


Write a program that's define two binary trees to be identical if either both are empty, or their roots are

equal, their left subtrees are identical, and their right subtrees are identical.


The organisation you work for has asked you to create an interactive application that will assist with the allocation of employees to a cell phone network provider and phone number generation. You are required to prompt a user for three employee names which will randomly assign the employee to either the Vodacom, MTN or Cell C network. The employees also require a randomly generated phone number. The start of each phone number will begin with the following, depending on the network provider:


Create a class named Course_Details that will contain get and set methods for the course name,

student numbers and lecturer. In the Course_Details class include a method called Assign Venue

that will randomly generate a Venue/Class for the course. Venues can be from 1 to 3 only. Your

main class must include a static method to handle the printing of the course report.




LATEST TUTORIALS
APPROVED BY CLIENTS