Question

C++ Intro Class Design a class that models the two main entities involved in the following...

C++ Intro Class

Design a class that models the two main entities involved in the following scenario: You are a software developer at a major technology company. You are designing an OOP program that helps patients with dementia remember their daily activities and information about people. The program helps the user keep track of the time, description, and location of each daily activity. It also helps the user maintain a list of important contacts, including their names, contact information, and pictures. The program provides easy ways to retrieve, record, and update the information. It automatically provides reminders about activities based on the user’s current location. It also provides information about people that the user encounters, where available, based on images captured in real-time (for example, the user could be wearing a wearable camera that automatically captures pictures of people with whom the user is interacting).

What are two main entities that you would implement with a class? For each entity, determine the data members and member functions and record them in the following tables. Provide both the variable/function declarations as well as their descriptions.

Entity 1 | Description

-

Member Variables | Description

-

-

-

-

-

-

Member Methods | Description

-

-

-

-

-

-

Entity 2 | Description

-

Member Variables | Description

-

-

-

-

-

-

Member Methods | Description

-

-

-

-

-

-

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

The concept here is to track user activities based on his actions.

The main two classes here includes ,

Enitity 1 : User : this entity is used to maintain all the information that is related to a user.

Member variables :  

i)Time : used to track time for a user

ii)ActivityName : name of an activity

iii)DurationOfAcitivity : Duration of an activity

iv)LocationName :Name of Location

v)Name : Name of the user

Member Mehthods :

i)CaptureActivities() : this method captures all activities that are performed by an user

ii)GetTimeOfEachActivity() : get time for each activity

iii)CapturePhotos() : capture photos for all activities

iv)UpdateLocationBasedOnActivities() : based on user current Location update location like google

map does.

Entity 2 : RecordManagementSystem : this entity is used to store and retrieve all the details about a user.In any record management system, it is very important to maintain the records, so for that we use database to store the data.

Member Variables :

TimeInterval : stores the time interval to store the data in database

UserName : name of the user to retrieve the data from database

DatabaseConnection : connection details to connect to database.

Member Methods :

getConnection(): used to get the connection details

setConnection(): used to set the connection

getTimeActivity(Time) : used to get the activity based on time passed to the method.

Add a comment
Know the answer?
Add Answer to:
C++ Intro Class Design a class that models the two main entities involved in the following...
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
  • In c++ Write a program that contains a class called Player. This class should contain two...

    In c++ Write a program that contains a class called Player. This class should contain two member variables: name, score. Here are the specifications: You should write get/set methods for all member variables. You should write a default constructor initializes the member variables to appropriate default values. Create an instance of Player in main. You should set the values on the instance and then print them out on the console. In Main Declare a variable that can hold a dynamcially...

  • Design a class for python named PersonData with the following member variables: lastName firstName address city...

    Design a class for python named PersonData with the following member variables: lastName firstName address city state zip phone Write the appropriate accessor and mutator functions for these member variables. Next, design a class named CustomerData , which is derived from the PersonData class. The CustomerData class should have the following member variables: customerNumber mailingList The customerNumber variable will be used to hold a unique integer for each customer. The mailingList variable should be a bool . It will be...

  • In C++, Step 1: Implement the Student Class and write a simple main() driver program to...

    In C++, Step 1: Implement the Student Class and write a simple main() driver program to instantiate several objects of this class, populate each object, and display the information for each object. The defintion of the student class should be written in an individual header (i.e. student.h) file and the implementation of the methods of the student class should be written in a corresponding source (i.e. student.cpp) file. Student class - The name of the class should be Student. -...

  • In this assignment you will create two Java programs: The first program will be a class...

    In this assignment you will create two Java programs: The first program will be a class that holds information (variables) about an object of your choice and provides the relevant behavior (methods) The second program will be the main program which will instantiate several objects using the class above, and will test all the functions (methods) of the class above. You cannot use any of the home assignments as your submitted assignment. Your programs must meet the following qualitative and...

  • About Classes and OOP in C++ Part 1 Task 1: Create a class called Person, which...

    About Classes and OOP in C++ Part 1 Task 1: Create a class called Person, which has private data members for name, age, gender, and height. You MUST use this pointer when any of the member functions are using the member variables. Implement a constructor that initializes the strings with an empty string, characters with a null character and the numbers with zero. Create getters and setters for each member variable. Ensure that you identify correctly which member functions should...

  • C++ Programing In this exercise, you will design a class memberType. The class has the following...

    C++ Programing In this exercise, you will design a class memberType. The class has the following data members: memberName. A string that holds the name of a person memberID. A string that holds the member identification number numBooks. An int that holds the number of books bought purchaseAmt. A double that holds the amount spent on books In addition, the class should have the following constructor and other member functions. Constructor. The constructor should accept the person’s name and member...

  • import java.util.Scanner; public class MPGMain {    public static void main(String[] args)    {       ...

    import java.util.Scanner; public class MPGMain {    public static void main(String[] args)    {        Scanner input = new Scanner(System.in);               Mileage mileage = new Mileage();               System.out.println("Enter your miles: ");        mileage.setMiles(input.nextDouble());               System.out.println("Enter your gallons: ");        mileage.setGallons(input.nextDouble());               System.out.printf("MPG : %.2f",mileage.getMPG());           } } public class Mileage {    private double miles;    private double gallons;    public double getMiles()...

  • i need help making this C++ code. Lab #2 Assignments: Numbers Class that translate whole dollar...

    i need help making this C++ code. Lab #2 Assignments: Numbers Class that translate whole dollar amounts in the range 0 through 9999 into an English description of the number. Numbers Class Design a class numbers that can be used to translate whole dollar amounts in the range 0 through 9999 into an English description of the number. For example, the number 713 would be translated into the string seven hundred thirteen, and 8203 would be translated into eight thousand...

  • C++ Design a class bankAccount that defines a bank account as an ADT and implements the...

    C++ Design a class bankAccount that defines a bank account as an ADT and implements the basic properties of a bank account. The program will be an interactive, menu-driven program. a. Each object of the class bankAccount will hold the following information about an account: account holder’s name account number balance interest rate The data members MUST be private. Create an array of the bankAccount class that can hold up to 20 class objects. b. Include the member functions to...

  • Code the following Program in C++ Define a class named Payment that contains a member variable...

    Code the following Program in C++ Define a class named Payment that contains a member variable of type float that stores the amount of the payment and appropriate accessor and mutator methods.    Also create a member function named paymentDetails that outputs an English sentence that describes the amount of the payment. Next define a class named CashPayment that is derived from Payment. This class should redefine the paymentDetails function to indicate that the payment is in cash. Include appropriate constructor(s)....

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