Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Create an application called Registrar that has the following classes:
A Student class that minimally stores the following data ?elds for a student:¦ name¦ student id number¦ number of credits¦ total grade points earnedThe following methods should also be provided:¦ A constructor that initializes the name and id ?elds ¦ A method that returns the student name ?eld¦ A method that returns the student ID ?eld¦ A method that determines if two student objects are equal if their student id numbers are the same (override equals from the class Obj ect)¦ Methods to set and retrieve the total number of credits¦ Methods to set and retrieve the total number of grade points earned¦ A method that returns the GPA (grade points divided by credits)An Instructor class that minimally stores the following data ?elds for an instructor:¦ name¦ faculty id number¦ departmentThe following methods should also be provided:¦ A constructor that initializes the name and id ?elds ¦ Methods to set and retrieve the instructor's departmentA Course class that minimally stores the following data for a course:¦ name of the course¦ course registration code¦ maximum number of 35 students¦ instructor¦ number of students¦ students registered in the course (an array)The following methods should also be provided:¦ A constructor that initializes the name, registration code, and maximum number of students¦ Methods to set and retrieve the instructor¦ A method to search for a student in the course; the search should be based on an ID number.¦ A method to add a student to the course. If the course is full, then an exception with an appropriate message should be raised (try creating your own exception class for this). Also, be sure that the student is not already registered in the course. The list of students should be in the order that they registered.¦ A method to remove a student from the course. If the student is not found, then an exception with an appropriate message should be raised (use the same exception class mentioned above).¦ A method that will allow Course objects to be output to a ?le using object serialization¦ A method that will allow Course objects to be read in from a ?le created with Object serializtionYou will note that the Student and Instructor classes described above have some commonality. Create a Person class that captures this commonality and uses it as a base class for Student and Instructor. This class should be responsible for the name and id ?elds and also provide a toString method that returns a string of the form name, id. This will be the inherited toString method for the Student and Instructor classes.a. Draw a UML diagram for this application.b. Implement the previous classes in Java. Write a main program that can serve as a test class that tests all of the methods created and demonstrates that they are working.c. Write a second main program that provides a menu to allow the user to i. create a course, prompting the user for all of the course information,ii. add students to the course,iii. check to see if a student is registered in the course, andiv. remove a student from the course.d. Add to the previous menu the ability to save a course using object serialization. Also add a menu choice to read in a course from a file given the course code. Come up with a system of naming the file so that the user need only be asked the course code to load the course information from a file.
Write a program that reads contents of two vectors, and then displays the sum of these two vectors. The program should prompt the user to enter the size of the vectors first.
Write a Java program which computes the Salary for a given number of employees. The program prompts user to enter n the number of employees.
What are the three types of errors that you can encounter in a Java program? Describe them, and explain how you would minimize the errors
Write a Java application using NetBeans Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson will earn a fixed salary of $35,750
implement a probability calculator for the standard normal distribution using GUI.
a software implementation of a Point of Sale terminal at a typical store. The users of the system are the cashiers sitting at the sales terminals of the store. The users can use the system to manage sales items in the store, customer details and of c..
Assume that word is a variable of type string that has been assigned a value. Write an expression whose value is a string consisting of the last three characters of the value word. So if if the value if word were "biggest" the expression's value w..
Write a class called Mortgage that calculates the cost of a mortgage. Prompt the user to enter the principal amount, the term in years, and the interest rate per year.
Draw the tree that would be formed by inserting the words in this question into a binary search tree and construct a Huffman code tree. Show the initial priority queue and all changes in its state as the tree is constructed.
Using Java write a program that creates a 4 x 6 two-dimensional array. The program should use loops to populate the array with random numbers between 1 and 100. After the values have populated the array, output the values of the array to the screen i..
Write down a java program which will input 1. Read present basic hourly wage. Read in workers fist name and socond name.
Write a graphical user interface class called SentenceCounterGUI. It should be able to manipulate the sentence of words and have the behaviour label.
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd