Question: C++ hw utr D https://mycourses.utr x-D https://mycourses.utr , D https://mycourses.utr , D Homework1.p webdav/pid-4051601-dt-content-rid-58447392 1/courses/12402.201910/Homework1.pdf Homework 1 Due data: Thursday Sep 6th 2018, 11:59 pm

 C++ hw utr D https://mycourses.utr x-D https://mycourses.utr , D https://mycourses.utr ,
D Homework1.p webdav/pid-4051601-dt-content-rid-58447392 1/courses/12402.201910/Homework1.pdf Homework 1 Due data: Thursday Sep 6th 2018,
11:59 pm In this assignment, you implement a framework that a user
C++ hw

utr D https://mycourses.utr x-D https://mycourses.utr , D https://mycourses.utr , D Homework1.p webdav/pid-4051601-dt-content-rid-58447392 1/courses/12402.201910/Homework1.pdf Homework 1 Due data: Thursday Sep 6th 2018, 11:59 pm In this assignment, you implement a framework that a user can store up to 10 posts (these are text posts). For each user, you should be able to add a post and show all the psts that the user have written. To implement this code, use your knowledge of class to implement two classes: Post and User. Read Burrito and Rectangle examples to review the classes. Class User: Fields: name ,SSN , array of posts , number of current posts cints Constructor : You can create an instance of a user by its name and Methods: addPost input: a String which is the content of the post: output: you do not need any output function: Create a Post, add it to the array of posts, update number of current posts showPosts input: you do not need any input output: you do not need any output function: write all the posts to the command prompt with details, for example Jose wrote Lam a great programmer at Thu Aug 30 14:23 2018 User name content of Jose's post The time Jose created this Class Post: Fields: content , creationDate Constructor : You can create an instance of a post just by its content, initialize the creation date of the post in the constructor (you do not need the input variable for this, just generate the current time, read the footer) Methods showPost innut: nothing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!