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

Implement Java code to compare two characters for a competition.

Attribute 1 of character 1 will be numeric, and attribute 2 will be textual 


At Mr. G school of Programming, the final school fees to be paid is calculated as follows.

  • Original Fees should be greater than or equal to R50 000
  • Minimum fixed deposit of R10 000
  • If deposit is greater than pr equal to half the original fees, you get a 5% discount from the original fees
  • Final total fees will also include the following
  1. School Levy is 10% of original fees
  2. Sports fee is 5% of original fees.

Write a program the calculates the final total fees to be paid.

Program must request user to enter original fees value greater then R50 000.

Program should also request user to enter amount to deposit before calculating final total fees.




create a class named course details that will contain get and set methods for the course name student and lecturer. in the course details class include a method called assign venue that will randomly generate a venue 1 to 3 only your method must include a static method to handle printing 

course code DISD, DIWD,DIDM 

student number 35,28,39 

lecturer mr jones , mrs smith, mr ntsinga


there should be a JoptionPane


you are required to create a console application that will capture the amount of votes that a student representative has received during the annual student body elections. the application must capture the student names and the amount of votes. in your solution, include a class called votes. the class must include the following:

*variables to store the student name and votes received.

* variables to store the total and average votes.

*use a constructor or method to set the variables.

* two methods to calculate the total and average votes.

* a method to print the report. the report must display good or poor voting attendance. if the total amount of student votes is greater than 150, display good voting attendance, otherwise display poor voting attendance


n 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. 

Sample Screenshot 1 

Sample Screenshot 2 

Sample Screenshot 3 

© The Independent Institute of Education (Pty) Ltd 2021 



Write a program that reads a file of numbers of type int and writes all the numbers to another file, but without any duplicate numbers.Assume that the numbers in the input file are already ordered from smallest to largest. After the program is run, the new file will contain all the numbers in the original file, but no number will appear more than once in the file. The numbers in the output file should also be sorted from smallest to largest. Your program should obtain both file names from the user

Create a class named 'Member' having the following members:

Data members

1 - Name

2 - Age

3 - Phone number

4 - Address

5 - Salary

It also has a method named 'printSalary' which prints the salary of the members.

Two classes 'Employee' and 'Manager' inherits the 'Member' class. The 'Employee' and 'Manager' classes have data members 'specialization' and 'department' respectively. Now, assign name, age, phone number, address and salary to an employee and a manager by making an object of both of these classes and print the same.


Design a method that determines whether or not a binary tree is fully balanced. This method takes no parameters, and returns a boolean value: true if the tree is fully balanced, and false if it is not.


Question 3 (Marks: 40)

The college that you attend requires an application that will print out a Course Report. You are 

required to create an application that will allocate the following course data:

COURSE CODE COURSE NAME STUDENT NUMBERS LECTURER

DISD Diploma in Software Development 35 Mr Jones

DIWD Diploma in Web Development 28 Mrs Smith

DIDM Diploma in Data Metrics 39 Mr Ntsinga

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.


Question 2 (Marks: 20)

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:

NETWORK PROVIDER START

Vodacom 072

MTN 083

Cell C 084

The remaining numbers of the phone number must be randomly generated.


LATEST TUTORIALS
APPROVED BY CLIENTS