subject

Design and implement the class PostType which is composed of class textType of the previous homework (i. e. using composition). In addition to the main text which represents the Post part of the postType, the class has a dynamic list of comments ( each element of type text represents the certain comment). Also, the class has the variable postID that represents the number associated with the post. The length of the comments list represents the number of comments and stored in the NumComments integer variable. In addition to the constructor with default parameters and the necessary functions, the function Show() or Print() will print the name of the person that write the post then the post itself followed by the comments of persons on the post (proceeded by the name of person write the comment). You can use the print of textType to print each post and each comment on the post after doing the following modification in Note 1. Also, you need a public function addComment to add comments to the Post with all necessary parameters such as the name the comment. Note 1: modify the class textType such that another variable of type string called Name represents the person who creates or said the text. This new variable must be printed with text in the print function and initiated in the constructor and any necessary modification. Note 2: the design of the class consists of design the UML Class diagram while the implementation consists of the class definition and class implementation (functions definition). Both should be submitted until next Monday during the lecture *

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:30, SKYBLUE1015
What percentage of companies is projected to use social media to locate new employees in 2012
Answers: 2
image
Computers and Technology, 22.06.2019 16:20, Aleja9
It policy compliance and emerging technologies respond to the following: propose at least three control measures that organizations need to put in place to ensure that they remain complaint with emerging technologies and in a continually changing it environment. examine the correlation of effective configuration management and change control procedures to remain compliant with emerging technologies and it security changes.
Answers: 2
image
Computers and Technology, 22.06.2019 23:30, riah133
Creating "smart interfaces" in all sectors of industry, government, and the public arena is one of the fastest growing hct areas. these interfaces model, interpret, and analyze such human characteristics as speech, gesture, and vision. the field of biometrics, in which humans authenticate themselves to machines, is an area of considerable interest to hct practitioners. fingerprint scans are one of the most frequently used biometric options, and this article, biometric student identification: practical solutions for accountability & security in schools, makes a case for the implementation of fingerprint scans in schools. critique the article, and answer the following questions: according to the author, what are the main benefits of adopting fingerprint scans in schools for student identification? according to the author, what are the main drawbacks of adopting fingerprint scans in schools for student identification? do you agree with the author's assessment of the pl
Answers: 2
image
Computers and Technology, 24.06.2019 16:50, bella7524
7.23 main lab 7 - online shopping cart background this main lab extends the earlier prep lab "online shopping cart part 1". (you should save this as a separate project from the earlier prep lab). you will create an on-line shopping cart like you might use for your on-line purchases. the goal is to become comfortable with setting up classes and using objects. requirements this lab can be done individually or as pair programming. expanded itemtopurchase class (15 points) extend the itemtopurchase class as follows. we will not do unit testing in this lab so we will not be giving you the names of the member functions. create good ones on your own. create a parameterized constructor to assign item name, item description, item price, and item quantity (default values of "none" for name and description, and 0 for price and quantity). additional public member functions set an item description get an item description print the cost of an item - outputs the item name followed by the quantity, price, and subtotal (see example) print the description of an item - outputs the item name and description (see example) additional private data members a string for the description of the item. example output of the function which prints the cost of an item: bottled water 10 @ $1.50 = $15.00 example output of the function which prints the item description:
Answers: 1
You know the right answer?
Design and implement the class PostType which is composed of class textType of the previous homework...

Questions in other subjects: