Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

Ability to work comfortably in a team environment

Answered: 1 week ago

Question

Exposure to SQL desirable but not required

Answered: 1 week ago