Write a program that simulates the movement of an elevator. Create class called button that abstracts a push button located in the elevator. Use an numerated type to represent its state either pressed or not pressed. Write functions to change the state,to retrieve the state. If button is pressed that is already in the pressed state, then display error message. Write a class called elevator that contains the data members: An array of button objects, An integer representing which floor the elevator is currently on, A constant integer representing the top floor for the elevator. Its value comes from the one formal argument in the elevator constructor function. Assume that the button floor is always number 1.Write a member function for the elevator class that allows the user to press any number of valid buttons. Assume that button number means that it is time to close the elevator doors. When this happens, the elevator must move to a floor that has a corresponding button pressed.
Create a two-dimensional array of type double to contain the three different SD Marks (JD521, PRG521, and IP521) for six different students. A single array of type String must be used to store the student names (Maxwell, Carl, Gerhard, Paul, James, and Cena).
Allow a user to enter in a number, ranging from 1 to 6, which will represent the student position in the table MCSD max and present the marks for each respecting module. The program can only stop when the user enter a number greater than 6.
Printout the student name including the JD521, PRG521, and IP521 max, the total of marks and the average of all marks. Use a condition statement to decide that the student has passed or not (Pass rate is 70).
Student name JD521 PRG521 IPG521
Maxwell 80 65 70
Carl 95 70 65
Gerhard 87 80 73
Paul 65 45 60
James 45 87 65
I used Netbeans to do my project
Student can Update, Add, Remove a issue
The added issue need to notify admin to send a reply ,notification either can be shown in database(mysql) with student name and nic , or send a notification to email but if send email is not good because student can modify update anytime so,i think its easy to use db because admin can look for messagers with name ,nic message. can anyone code for this requirement.
Thank you
Write a java program to throw an exception (checked) for an employee
details
a If an employee name is a number, a name exception must be
thrown
b If an employee age is greater than 50, an age exception must be
thrown. Or else an object must be created for the entered employee details.
Create an array of characters which will be initialized during run time with vowels.
If user enters any consonant, your code should generate a user-defined checked
exception, InvalidVowelException. The description or message of
InvalidVowelException is "character is consonant". Handle the exception by using
try, catch, finally, throw and throws.
Develop an application in Java for automating the Hostel Management
System using packages. Create Hostel class in pkg1, Student class, and
SRA class in pkg2. Perform menu driven operations like SRA Allocation,
List of SRA’s in a Hostel, List of Students under a particular SRA, and
View Student Details from a Test class by importing these two packages.
Create an interface “Academic” with methods: calAcademicCredit(), registerSub(),
assignFaculty(). Create another interface “NonAcademic” with method:
calNonAcademicCredit(), registerClub().
Create an abstract class called “Course” with details such as name, reg_no, subjects,
faculty, non_acad_club etc. Add necessary constructors.
Implement these interfaces and inherit the class in “Student” class to perform the specific
operations.
Demonstrate the operations in a menu driven fashion from a Main class. Write logics in
the corresponding methods.
Develop an interface called “Event” which contains Expenditure (), Prizes () are unimplemented
methods. Also include few specifications given below,
A default method called welcome_msg(),
A static method called Thank_you msg(),
Create another interface called invitation that extends Event which contains design_invitation()
as private member and display_invitation() as public method
create two customized classes called Birthday and Symposium utilize the above structure;