Computer Science
A programmer has the task of maintaining a
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 3 images
- Write a C#program that uses a class called ClassRegistration as outlined below: The ClassRegistration class is responsible for keeping track of the student id numbers for students that register for a particular class. Each class has a maximum number of students that it can accommodate. Responsibilities of the ClassRegistration class: It is responsible for storing the student id numbers for a particular class (in an array of integers) It is responsible for adding new student id numbers to this list (returns boolean) It is responsible for checking if a student id is in the list (returns a boolean) It is responsible for getting a list of all students in the class (returns a string). It is responsible for returning the number of students registered for the class (returns an integer) It is responsible for returning the maximum number of students the class is allowed (returns an integer) It is responsible for returning the name of the class. (returns a string) ClassRegistration -…arrow_forwardWritten in Python It should have an init method that takes two values and uses them to initialize the data members. It should have a get_age method. Docstrings for modules, functions, classes, and methodsarrow_forwardFor this problem you are to join the following classes into a hierarchy (use the UML diagrams from Module 2 to get started): Player - Super Class Archer - Subclass Barbarian - Subclass Cleric - Subclass Rogue - Subclass Warlock - Subclass If the parent class has the same attributes as the sub class then you can remove those attributes from the subclass. If the class is new for this module, please come up with 2 unique attributes of your choice, and 1 piece of functionality. If the sub classes are shown on the same level, then they share a parent class.arrow_forward
- Write a java This class must implement the model in the following UML class diagram. Account -balance: double +Account(init_balance : double) +getBalance( ): double +deposit(amount : double) Diagram object’s description: balance holds the current balance of the bank account Account sets balance to init_balance get balance retrieves the current balance deposit adds the amount parameter to the current balance (Hint: “-“ indicates private and “+“ indicates public)arrow_forwardhow can i provide an alirentive for the inheritance/genralization here ?arrow_forwardImplement a nested class composition relationship between any two class types from the following list: Advisor Вook Classroom Department Friend Grade School Student Teacher Tutor Write all necessary code for both classes to demonstrate a nested composition relationship including the following: a. one encapsulated data member for each class b. inline default constructor using constructor delegation for each class c. inline one-parameter constructor for each class d. inline accessors for all data members e. inline mutators for all data membersarrow_forward
- C++ Problem!! Sort A List Of Integers Given a file of 100,000 unsorted integers, write a program that first prompt user to enter file name and reads those integers into an array and sorts the integers in the array. The program should then prompt the user for an index, and then display the integer at that index. For example, if the array contains ten integers and the contents are 79 4 42 51 12 22 33 17 91 10 after sorting, the integer at index 6 is 42 Download the "List of 100,000 Unsorted Integers" from below link and sort that list, then enter the value at index 10000 (ten thousand) for a screenshot. https://1drv.ms/t/s!AuFS4mkcuYyBjHZ_SIudb93bq2uy?e=CsyvZjarrow_forwardModify and rewrite the Food class to an abstract class, so that no instance of Food class can be createdarrow_forwardCreate a UML Class Model based on the requirements . Your Class Model is to include: All classes Attributes and Attribute Types Associations Multiplicity Primary and Foreign keys Any Inheritance, Composition or Aggregation. Building Maintenance system. A rental property management company wants to develop a ‘Building Maintenance System.’ This system will be used by the company to manage maintenance requests from tenants in the several rental buildings that it manages in the city. Each building has a maintenance manager. The maintenance manager is responsible for creating accounts in the system for each tenant in their building. A tenant can rent multiple apartments within the same building. Tenants can submit maintenance requests using this system. Each maintenance request will have a request ID, category, and description. The maintenance manager manages a maintenance crew in their building. Maintenance crew members can be members of more than one maintenance team. Maintenance crew…arrow_forward
- You will define three objects class Person, BookAuthor, and Book. Class Person involves a person's identity. Class BookAuthor involves a collection of books or book titles. Class Book involves the number of books in stock , book title and price. Design the three classes: The classes must use an appropriate inheritance relationship. Each class must have a constructor. Each class has at least two private data members and you must include accessors. You must test your classes by creating a BookAuthor object and printing the Person, Book and BookAuthor values from a function you create inside of BookAuthor. Make sure you use the book object correctly and put it inside of BookAuthor. in pytgiarrow_forwardPTHYON: BASIC INHERITANCE Set course_student's last_name to Smith, age_years to 20, and id_num to 9999.Sample output for the given program:Name: Smith, Age: 20, ID: 9999arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY