1. Write a simple information system that will store and display the complete information of a student, faculty, or employee.
2. Create four no-modifier classes named Person, Student, Faculty, and Employee.
3. Create a public class named CollegeList. This class shall contain the main method.
4. Refer to the UML Class Diagram for the names of the variables and methods. The (-) symbol represents private variables, while (+) represents public method. This should be the sequence of the program upon execution:
a. Prompt the user to select among Employee, Faculty, or Student, by pressing E, F, or S.
b. Ask the user to type the name and contact number.
c. For Employee, ask the user to type the employee's monthly salary and the department where he/she belongs to. Then, display name, contact number, salary, and department.
For Faculty, ask the user to press Y if the faculty member is regular/tenured or N if not. Then, display name, contact number, salary, department, and status.
Create a program that can record the name, gender, and grades of a student in a certain subject. The grades consist of 1st, 2nd, 3rd, and 4th quarters.
The program should be able to do the following:
The program should use the following features:
create a banking console java application
Implement the following java concept in your solution and highlight in your documentation or code where you did it: and explain the steps
1. Class and Object
2. File and Stream
3. Exception Handling
LOOPS
If diff is 0, then guess is correct and the program outputs a message indicating that the user guessed the correct number. if not
1. If diff is greater than or equal to 50, the program outputs the message indicating that the guess is very high (if guess is greater than num) or very low (if guess is less than num).
2. If diff is greater than or equal to 30 and less than 50, the program outputs the message indicating that the guess is high (if guess is greater than num) or low (if guess is less than num).
3. If diff is greater than or equal to 15 and less than 30, the program outputs the message indicating that the guess is moderately high (if guess is greater than num) or moderately low (if guess is less than num).
4. If diff is greater than 0 and less than 15, the program outputs the message indicating that the guess is somewhat high (if guess is greater than num) or somewhat low (if guess is less than num).
Give the user no more than five tries to guess the number.
benefits of using implementation independent data structures related in stacks
benefits of using implementation independent data structures related to stacks
Write a program that reads a string and returns a table of the letters of the alphabet in alphabetical order which occur in the string together with the number of times each letter
occurs. Case should be ignored. A sample output of the program when the user enters the data“ThiS is String with Upper and lower case Letters”, would look this this:
a 2
c 1
d 1
e 5
g 1
h 2
i 4
l 2
n 2
o 1
p 2
r 4
s 5
t 5
u 1
w 2
I WANT VERY SIMPLE CODE
1 Context Singleton pattern is one of the simplest design patterns in Java. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object. This pattern involves a single class which is responsible to create an object while making sure that only single object gets created. This class provides a way to access its only object which can be accessed directly without need to instantiate the object of the class.
2 Problem description In this study, you need to develop a program that will calculate coins using the ’Singleton Pattern’. Adding coins will be increased by 10 points, but decreasing by one point will be reduced. You should try 3 approaches of Singleton while developing this program. ∗ Eager initialization ∗ Lazy Initialization ∗ Thread Safe Singleton
Write a function in this file called nine_lines that uses the function three_lines to print a total of nine lines
How do i make the circuit for the above code?