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