Concept explainers
Soft Skills
44. Your company’s software is a market leader but is proving difficult to maintain because it was written in C without using object-oriented concepts. Customers have identified problems with the software that must be fixed immediately and have pointed out features in competitors’ products that they want you to support. The best solution will require a complete OOP redesign and subsequent implementation but will take three years. Write a memo to company management outlining your recommendation for the course of action the company should pursue.
Want to see the full answer?
Check out a sample textbook solutionChapter 11 Solutions
Starting Out with C++: Early Objects
Additional Engineering Textbook Solutions
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
Java How To Program (Early Objects)
Starting Out With Visual Basic (7th Edition)
Starting Out with Python (3rd Edition)
Artificial Intelligence: A Modern Approach
Starting Out with Java: Early Objects (6th Edition)
- THIS NEEDS TO BE DONE IN C#! Instructions For your first task as a newly formed team of developers, you will design, develop, test, and deliver a small software application to a client. You will first take the requirements for the project and implement a UML and function design for each of the classes you need to create. This MUST be achieved first. You will need to read and understand the requirements and choose good classes that need to be created in the development phase of this project. After you are finished with the design, you will use Visual Studio, C#, and GitHub to develop and test the project. Teams will need to determine who will write what parts of the system before development proceeds. Members will need to create branches to work in, which should be used to work in. Commits should be made often and contain details on changes made in the code. Once intended work for a branch is made, a pull request should be made to its parent branch to merge work. The team leader or…arrow_forwardExplain the concept of object-oriented programming (OOP) and discuss its advantages in software development. Choose the correct statement regarding the advantages of object-oriented programming: A) OOP promotes code reusability and modularity but does not support encapsulation. B) OOP encourages procedural programming techniques and reduces code organization complexity. C) OOP facilitates code maintenance and enhances scalability by allowing easier modification and extension. D) OOP primarily focuses on optimizing memory usage and does not offer support for inheritance.arrow_forwardA manager of a department at Google wants to schedule 15-min coffee chat between two employees every week for his 6 employees. Design and write a program to help this manager. Each employee should have a meeting with a new person. So, no meeting with the same person until they meet all the other colleagues. Use functional programming or object-oriented programing. You can have your own design to cover the requirements but you should consider a design with better time complexity. You can use any data structures (lists, dictionaries, stacks, queues, ...) The number 6 here is an example and imaging there are "n" (an even number) employees in the group (for this example n =6) Every week each employee should have a meeting and just one meeting with one person. Every week they should have a meeting with a new person. Until week 5 ( n-1 weeks) they should have a meeting with the same person. employees = [ employee_1, employee_2, employee_3, employee_4, employee_5, employee_6] It means…arrow_forward
- IN C++ Create a parent class for Student class. Parent class should be named HUMAN. Add at least 2 attributes to HUMAN class. Test your code by creating an instance of Student filling all attributes (including attributes in parent class). Print all the information using the proper function (as in previous activities). A screenshot showing the code in Visual Studio and the output (on the console screen).arrow_forwardcan I get help writing this in c++ It is your job to create an object-oriented application that will allow the financial advisor to maintain the portfolios for his/her clients. You will need to create several classes to maintain this information: Security, Stock, Bond, Portfolio, and Date. The characteristics of stocks and bonds in a portfolio are shown below: Stocks: Bonds: Purchase date (Date) Purchase date (Date) Purchase price (double) Purchase price (double) Quantity purchased (int) Quantity purchased (int) Ticker symbol (string) Issuer (string) Par value (int) Face value (int) Stock type (i.e. Common or Preferred) (enum) Stated interest rate…arrow_forwardCreate a c ++ program taking into account the concepts of Object-Oriented Design. Instructions: Create a class called Account that could be used by a bank to represent the bank accounts of its customers. Include a data member of type int to represent the account balance. Provide a constructor that receives a beginning balance and uses it to initialize the data member. The builder must validate the beginning balance to ensure that it is greater than or equal to 0. If not, set the balance to 0 and display an error message, stating that the beginning balance was invalid. Provide three member roles. The credit member role must add an amount to the current balance. The load member function should withdraw money from the Account object and ensure that the amount to load does not exceed the Account balance. If you do, the balance should remain unchanged and the function should print a message stating "The amount to be loaded exceeds the account balance." The getBalance member function…arrow_forward
- 68. Which characteristic specifically describes an object-oriented language? A.Can be run on any machine that has an interpreter B.Requires a compiler to convert to machine code C.Supports creating programs as items that have data plus operations D.Supports creating programs as a set of functionsarrow_forwardWrite C++ code (perhaps around 10-20 lines of code) and make it compile and run showing how to use it. It can be a single code example, or multiple code examples to demonstrate the concepts below: 1. Write a function that takes one argument and calls this function from another class.arrow_forwardHello I want the solutions for this questions Method and constructor overloading are also a common concept in object orientedprogramming. Explain what method and constructor overloading are and how they areexecuted in object oriented programs.arrow_forward
- Do it in C++ (The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two derived classes named Student and Employee. Make Faculty and Staff derived classes of Employee. A person has a name, address, phone number, and e-mail address. A student has a class status (freshman, sophomore, junior, or senior). An employee has an office, salary, and date-hired. Define a class named MyDate that contains the field year, month, and day. A faculty member has office hours and a rank. A staff member has a title. Define a constant virtual toString function in the Person class and override it in each class to display the class name and the person’s name.Draw the UML diagram for the classes. Implement the classes. Write a test program that creates a Person, Student, Employee, Faculty, and Staff, and invokes their toString() functions.arrow_forwardCreate a program in C++ language. Using classes, design an online address book to keep track of the names, addresses, phone numbers, and dates of birth of family members, close friends, and certain business associates. Your program should be able to handle a maximum of 500 entries. Define a class addressType that can store a street address, city, state, and ZIP code. Use the appropriate functions to print and store the address. Also, use constructors to automatically initialize the member variables. Define a class extPersonType using the class personType (as defined in Example 10-10, Chapter 10), the class dateType (as designed in this chapter’s Programming Exercise 2), and the class addressType. Add a member variable to this class to classify the person as a family member, friend, or business associate. Also, add a member variable to store the phone number. Add (or override) the functions to print and store the appropriate information. Use constructors to automatically initialize…arrow_forwardThe Issues: Bad pointers, writing to the end of allotted memory, and memory leaks are all possibilities.When it comes to memory management, C++ provides a great deal of freedom. You can allocate and deallocate memory as well as directly manage pointers. Flexibility comes at a price. Because the language permits you to allocate memory, you can make mistakes. Similarly, you may mess up deallocation and pointer usage. What do you do to secure your code in C++ when there are no built-in safety checks?arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education