Question

Give an example of a large size task required program for C++ and divide the task...

Give an example of a large size task required program for C++ and divide the task into multiple classes based on your decision with a detailed explanation. Also, explain what functions can be in each of the divided classes, and how the classes are divided in a way that multiple developers can work together.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

To demonstrate how we can divide a large-size task into smaller classes we can take the example of a banking application. From a very broad perspective, we can divide the tasks involved in the banking application into four different classes.

I Bank Front end Database Security | Backend Applications

The above taxonomy can be used while splitting the larger task into smaller classes.

The bank application mainly has to concern itself with the details of the customers and the online facilities that are provided to them. Additionally, the security aspects should also be taken care of so that no malicious identity can gain access to the system and in the process, loot the bank. To keep track of the customer details and their related application we create two classes one for Database and one that inherits the Database class to take care of the applications like getBalance().

To deal with the security aspect we declare the Security class which concerns itself with letting only authenticated users access the bank portal.

And finally, we also have a FrontEnd class to deal with how the application will look and feel, here this class is dedicated to designing the Graphical User Interface or the GUI of the bank application.

Functions that can be in each class:

FrontEnd: getscreenresolution(), designMenu() etc.

Database: inputCustomerDetails(), inputID() etc.

BackEnd: getBalance(), getTransactions(Date date) etc.

Security: authenticateUser(String Username, String Password) etc.

The classes are divided in such a manner that we can hide the unnecessary details and provide the developer with the specific information that he/she needs. For example, a frontend developer has no interest in the database as well as the security aspect of the program.

Also, the Database class has to be kept separate because it contains sensitive information that should not be made privy to the general public, this includes even the existing employees of the bank.

Multiple developers can work together to develop this program as the classes are designed to be mutually exclusive of each other. Here the frontend developers can work independently on their own module and the database, backend engineers can work separately on their own module. This results in modularity of the said program and multiple developers can work together to develop the application in a faster and better manner.   

Add a comment
Know the answer?
Add Answer to:
Give an example of a large size task required program for C++ and divide the task...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Find and explain an example of some programming processing task that demonstrates one of the common...

    Find and explain an example of some programming processing task that demonstrates one of the common growth rate functions. For example, the constant time function describes a task in which the work steps are the same regardless of the amount of input. The linear time function describes a task in which the work steps grow just as much as the input size does ('1 for 1'). The quadratic time function describes a task in which the work steps grow by...

  • In this homework, you will design a program to perform the following task: Write a program...

    In this homework, you will design a program to perform the following task: Write a program that would allow a user to enter student names and Final grades (e.g. A,B,C,D,F) from their courses. You do not know how many students need to be entered. You also do not know how many courses each of the students completed. Design your program to calculate the Grade Point Average (GPA) for each student based on each of their final grades. The program should...

  • While using python programming. If the program is broken into smaller modules where does execution begin?Can...

    While using python programming. If the program is broken into smaller modules where does execution begin?Can you Please explain? I think it is not a good idea to write a large program with only one function because creating a large program can have benefits on using modular programming than less code. Modular programming is the process of subdividing a computer program into separate sub-programs. A module is a separate software component. It can often be used in a variety of...

  • Explain Autonomy (Task, Time, Team, and Technique) that you have at your present job. What would...

    Explain Autonomy (Task, Time, Team, and Technique) that you have at your present job. What would you change? Based on book, Drive by Daniel Pink (but don't need book to answer Q) - Read below or explanation and definitions " Pink argues that for a person to be motivated completely, he or she must have autonomy over four things in his or her work environment: Task, Time, Technique, and Team. without reinventing the wheel, allow me to explain (you should...

  • In C++ Task 3: Use the stack and queue to simulate receiving and transforming data We are creating a system that will co...

    In C++ Task 3: Use the stack and queue to simulate receiving and transforming data We are creating a system that will convert strings sent over a serial bus one character at a time. The conversion will be from big to little endian or from little to big endian. To simplify this, each character will be considered a word. Little endian will have the lowest address first. Big endian will have the biggest address first. For example (for this lab),...

  • C++ program: The aim of this homework assignment is to practice writing hierarchy of classes. Design...

    C++ program: The aim of this homework assignment is to practice writing hierarchy of classes. Design a hierarchy of Files. You have two different kinds of Files, Text File and an Image File. The files are identified by their name and type, which is identified by either txt or gif extension. An Image file has dimensions of pixel rows and pixel columns. Each pixel has a color depth that can be represented by number of bits. (8 bits is one...

  • C++ Hangman (game) In this project, you are required to implement a program that can play...

    C++ Hangman (game) In this project, you are required to implement a program that can play the hangman game with the user. The hangman game is described in https://en.wikipedia.org/wiki/Hangman_(game) . Your program should support the following functionality: - Randomly select a word from a dictionary -- this dictionary should be stored in an ASCII text file (the format is up to you). The program then provides the information about the number of letters in this word for the user to...

  • Edit a C program based on the surface code(which is after the question's instruction.) that will...

    Edit a C program based on the surface code(which is after the question's instruction.) that will implement a customer waiting list that might be used by a restaurant. Use the base code to finish the project. When people want to be seated in the restaurant, they give their name and group size to the host/hostess and then wait until those in front of them have been seated. The program must use a linked list to implement the queue-like data structure....

  • How to solve this Problem in C++ . The Problem Write program that uses a class...

    How to solve this Problem in C++ . The Problem Write program that uses a class template to create a set of items. The program should: 1. add items to the set (there shouldn't be any duplicates) Example: if your codes is adding three integers, 10, 5, 10, then your program will add only two values 10 and 5 Hint: Use vectors and vector functions to store the set of items 2. Get the number of items in the set...

  • As you know, a numeric type in C is only an approximation to the mathematical entity...

    As you know, a numeric type in C is only an approximation to the mathematical entity due to bit-size limitations. The goal of this lab is to deal with real problems caused by such differences. Along the way, you will also get more practice using loops. Recall that n! (read n factorial) is defined to be (1)(2)(3)(4)...(n-1)(n). Many useful computer science problems require the computation of C(n,k) (read n choose k) which is defined as: n! / (k! * (n-k)!),...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT