Tag: Homework Solution

  • [Solved] Principles of Phycology

    ✓ Verified Academic Solution Available

    Executive Solution Overview

    see attachment – 2 years ago **files (1)** – ## PPmodule2vocabulary.docx **## PPmodule2vocabulary.docx** Define the following terms, include academic references, and use APA format. · Mood disorder · Suicide · Anxiety disorders · Depressive disorders · Bipolar Disorder · Biological Theory. · Superna…

    Instant Solution Download

    $6.99

    Immediate access to the full model answer, formatted citations, and rubric breakdown.

    Need a Fresh Custom Paper?

    Have this question answered from scratch according to your specific instructions and deadline.

    Order on TutorsGallery →

    Assignment Prompt & Instructions

    see attachment

    – 2 years ago

    **files (1)**

    – ## PPmodule2vocabulary.docx

    **## PPmodule2vocabulary.docx**

    Define the following terms, include academic references, and use APA format.

    · Mood disorder

    · Suicide

    · Anxiety disorders

    · Depressive disorders

    · Bipolar Disorder

    · Biological Theory.

    · Supernatural theory

    · Psychological theory

    · Sociocultural theory

    · DSM-V (5) -TR

    · Obsessive-compulsive disorders

    · Personality disorders

    Contribute a minimum of 2 pages. It should include at least two academic sources, formatted and cited in APA.

    Be sure to review the
    [academic expectations](https://agmu.instructure.com/courses/1876/pages/expectations-and-best-practices-for-assignments) for your submission.

    **Submission Instructions:**

    · Submit your assignment by 11:59 PM Eastern on Sunday.

    · Review the rubric to determine how your assignment will be graded.

    · Your assignment will be run through Turnitin to check for plagiarism.

    **## PPmodule2vocabulary.docx**

    Define the following terms, include academic references, and use APA format.

    · Mood disorder

    · Suicide

    · Anxiety disorders

    · Depressive disorders

    · Bipolar Disorder

    · Biological Theory.

    · Supernatural theory

    · Psychological theory

    · Sociocultural theory

    · DSM-V (5) -TR

    · Obsessive-compulsive disorders

    · Personality disorders

    Contribute a minimum of 2 pages. It should include at least two academic sources, formatted and cited in APA.

    Be sure to review the
    [academic expectations](https://agmu.instructure.com/courses/1876/pages/expectations-and-best-practices-for-assignments) for your submission.

    **Submission Instructions:**

    · Submit your assignment by 11:59 PM Eastern on Sunday.

    · Review the rubric to determine how your assignment will be graded.

    · Your assignment will be run through Turnitin to check for plagiarism.

  • [Solved] Prof Double R

    ✓ Verified Academic Solution Available

    Executive Solution Overview

    [>Management homework help](https://www.sweetstudy.com/fields/business-finance-management) For this assessment, consider how a company's social responsibility can affect the workplace, stakeholders, clients, and other outside parties. In your paper, address these questions: – How can a company's soc…

    Instant Solution Download

    $6.99

    Immediate access to the full model answer, formatted citations, and rubric breakdown.

    Need a Fresh Custom Paper?

    Have this question answered from scratch according to your specific instructions and deadline.

    Order on TutorsGallery →

    Assignment Prompt & Instructions

    [>Management homework help](https://www.sweetstudy.com/fields/business-finance-management)

    For this assessment, consider how a company's social responsibility can affect the workplace, stakeholders, clients, and other outside parties. In your paper, address these questions:

    – How can a company's social responsibility policy complement its obligation to maximize profits for shareholders?
    – How does the ethical issue itself affect employees, stakeholders, clients, and other outside parties, considering the specific company issue? What are the positive and negative outcomes?
    – What ethical decision-making approaches would you incorporate into your policy? How would your policy solve the ethical issue?

    Follow these steps to complete the assessment. For all of these steps, make sure you provide examples and information from credible sources to support your writing and claims.

    – Step 1: Analyze how corporate social responsibility policies can both complement and conflict with profit-maximizing goals.
    – Explain how robust corporate social responsibility policies can enhance a company's reputation and public perception.
    – Examine how having responsible corporate social responsibility policies support a company's sales and marketing efforts, and ultimately, the bottom line.
    – Step 2: Assess how an organization-wide ethical dilemma impacts the organization internally and other outside parties.
    – Describe, in detail, the organization-wide ethical issue.
    – Describe these impacts and how they affect each category:
    – Employees.
    – Stakeholders.
    – Clients.
    – Other outside parties.
    – Explain how these different categories are interrelated and why an organization needs to address the ethical dilemma through corporate policy.
    – Discuss the ramifications or outcomes that might occur if the ethical dilemma is addressed or not addressed.
    – Step 3: Explain how a selected ethical approach is suitable to address the organization-wide issue.
    – Describe, in detail, the selected ethical approach that you would incorporate into your policy.
    – Connect the approach to the ethical issue and describe how the approach is suitable to address the issue with multiple stakeholders. Provide examples and possibly data from other organizations with similar ethical issues.
    – Step 4: Create a corporate policy that can help resolve an ethical issue.
    – Identify the essential parts of a corporate policy, then explain how these parts address the impacts from these perspectives:
    – Employees.
    – Stakeholders.
    – Clients.
    – Other outside parties.
    – Create an actual corporate policy that addresses the ethical issue.

    Your submission should meet the following requirements:

    – **Written communication**: Write in complete sentences free from errors that detract from the overall message. Communicate in an exemplary and professional manner through clear, concise, well-organized, and grammatically correct writing.
    – **Font**: Arial, 12-point.
    – **Page length**: 4–5 pages.
    – **Citations**: Include complete citations of your sources.

    – 2 years ago

  • [Solved] Medical assessment

    ✓ Verified Academic Solution Available

    Executive Solution Overview

    – **Discussion Topic:** What are the goals of a patient interview? – Discuss ways to enhance a successful patient interview process. – • **Discussion Topic:** What are the 4 Cs of communication? – Please elaborate on how can the Family Nurse Practitioner meet the 4 Cs of communication based on cultu…

    Instant Solution Download

    $6.99

    Immediate access to the full model answer, formatted citations, and rubric breakdown.

    Need a Fresh Custom Paper?

    Have this question answered from scratch according to your specific instructions and deadline.

    Order on TutorsGallery →

    Assignment Prompt & Instructions

    – **Discussion Topic:** What are the goals of a patient interview?
    – Discuss ways to enhance a successful patient interview process.
    – • **Discussion Topic:** What are the 4 Cs of communication?
    – Please elaborate on how can the Family Nurse Practitioner meet the 4 Cs of communication based on culturally competent care.

    – 2 years ago

  • [Solved] Discussion 1

    ✓ Verified Academic Solution Available

    Executive Solution Overview

    1. Describe the roles and responsibilities of the APRN when prescribing medication. 2. Describe the method used to determine what drug therapy to prescribe? 3. Discuss responsibilities for patient education and teaching based on the prescribed therapy. 4. Discuss Schedule drugs and prescribing restr…

    Instant Solution Download

    $6.99

    Immediate access to the full model answer, formatted citations, and rubric breakdown.

    Need a Fresh Custom Paper?

    Have this question answered from scratch according to your specific instructions and deadline.

    Order on TutorsGallery →

    Assignment Prompt & Instructions

    1. Describe the roles and responsibilities of the APRN when prescribing medication.
    2. Describe the method used to determine what drug therapy to prescribe?
    3. Discuss responsibilities for patient education and teaching based on the prescribed therapy.
    4. Discuss Schedule drugs and prescribing restrictions for each scheduled drug.

    – **500 words**
    – APA style
    – 2 academic sources
    – Each question **must be answered individually** as in bullet points

    – 2 years ago

  • [Solved] pica in pregnancy

    ✓ Verified Academic Solution Available

    Executive Solution Overview

    Find and read a **scholarly article** Were you familiar with Pica before? How did you know about it? What are some nursing interventions (at least four) that would apply to a pregnant woman who is being affected by this condition? Provide a summary of your scholarly article, and be sure to explain a…

    Instant Solution Download

    $6.99

    Immediate access to the full model answer, formatted citations, and rubric breakdown.

    Need a Fresh Custom Paper?

    Have this question answered from scratch according to your specific instructions and deadline.

    Order on TutorsGallery →

    Assignment Prompt & Instructions

    Find and read a **scholarly article** Were you familiar with Pica before? How did you know about it? What are some nursing interventions (at least four) that would apply to a pregnant woman who is being affected by this condition? Provide a summary of your scholarly article, and be sure to explain at least one overall conclusion about Pica from the study, that you think is important to state from the author's research.

    – [\
    \
    EBSCO-FullText-01_09_2025.pdf](https://www.sweetstudy.com/files/ebsco-fulltext-01-09-2025-pdf-10151335 "EBSCO-FullText-01_09_2025.pdf")

    – 2 years ago

  • [Solved] Evidence-Based Project, Part 3: Critical Appraisal of Research

    ✓ Verified Academic Solution Available

    Executive Solution Overview

    Suggest a best practice that emerges from the research you reviewed. Briefly explain the best practice, – 2 years ago

    Instant Solution Download

    $6.99

    Immediate access to the full model answer, formatted citations, and rubric breakdown.

    Need a Fresh Custom Paper?

    Have this question answered from scratch according to your specific instructions and deadline.

    Order on TutorsGallery →

    Assignment Prompt & Instructions

    Suggest a best practice that emerges from the research you reviewed. Briefly explain the best practice,

    – 2 years ago

  • [Solved] Computer Science Assignment

    ✓ Verified Academic Solution Available

    Executive Solution Overview

    4 pages – 2 years ago **files (1)** – ## OperationalExcellence_Week_2.docx **## OperationalExcellence_Week_2.docx** **Operational Excellence** [**Week 2 Assignment**](https://ucumberlands.blackboard.com/webapps/assignment/uploadAssignment?content_id=_7177684_1&course_id=_173585_1&group_id=&mode=…

    Instant Solution Download

    $6.99

    Immediate access to the full model answer, formatted citations, and rubric breakdown.

    Need a Fresh Custom Paper?

    Have this question answered from scratch according to your specific instructions and deadline.

    Order on TutorsGallery →

    Assignment Prompt & Instructions

    4 pages

    – 2 years ago

    **files (1)**

    – ## OperationalExcellence_Week_2.docx

    **## OperationalExcellence_Week_2.docx**

    **Operational Excellence**

    [**Week 2 Assignment**](https://ucumberlands.blackboard.com/webapps/assignment/uploadAssignment?content_id=_7177684_1&course_id=_173585_1&group_id=&mode=view)

    1)
    **Information Systems for Business and Beyond Questions:**

    · Chapter 2 – study questions 1-10, Exercise 2 – 2 Pages – (only one or 2 line answers)

    1. Write your own description of what the term
    _information systems hardware_ means.

    2. What has lead to the shift toward mobility in computing?

    3. What is the impact of Moore’s Law on the various hardware components described in this chapter?

    4. Write a one page summary of one of the items linked to in the “Integrated Computing” section.

    5. Explain why the personal computer is now considered a commodity.

    6. The CPU can also be thought of as the _____________ of the computer.

    7. List the units of measure for data storage in increasing order from smallest to largest, kilobyte to yottabyte.

    8. What is the bus of a computer?

    9. Name two differences between RAM and a hard disk.

    10. What are the advantages of solid-state drives over hard disks?

    **Exercise –**

    1. Re-read the section on IoT, then find at least two scholarly articles about IoT. Prepare a minimum of three slides that address issues related to IoT. Be sure to give attribution to your sources.

    **2) Information Technology and Organizational Learning Questions**

    · Chapter 2 – Note why the IT organizational structure is an important concept to understand.  Also, note the role of IT in the overall business strategy.

    The above submission should be one page in length and adhere to APA formatting standards.

    **Remember the page length does not include the APA cover page or any references**

    Note the first assignment should be in one section and the second section should have the information from the Information Technology and Organizational Learning assignment.  The paper requirements for the two-pages applies to the second part of the assignment directly related to the Information Technology and Organizational Learning assignment.

    Text Book –

    1) Information Systems for Business and Beyond Questions:

    [**https://opentextbook.site/informationsystems2019/**](https://opentextbook.site/informationsystems2019/)

    2) Text book attached to this.

    **## OperationalExcellence_Week_2.docx**

    **Operational Excellence**

    [**Week 2 Assignment**](https://ucumberlands.blackboard.com/webapps/assignment/uploadAssignment?content_id=_7177684_1&course_id=_173585_1&group_id=&mode=view)

    1)
    **Information Systems for Business and Beyond Questions:**

    · Chapter 2 – study questions 1-10, Exercise 2 – 2 Pages – (only one or 2 line answers)

    1. Write your own description of what the term
    _information systems hardware_ means.

    2. What has lead to the shift toward mobility in computing?

    3. What is the impact of Moore’s Law on the various hardware components described in this chapter?

    4. Write a one page summary of one of the items linked to in the “Integrated Computing” section.

    5. Explain why the personal computer is now considered a commodity.

    6. The CPU can also be thought of as the _____________ of the computer.

    7. List the units of measure for data storage in increasing order from smallest to largest, kilobyte to yottabyte.

    8. What is the bus of a computer?

    9. Name two differences between RAM and a hard disk.

    10. What are the advantages of solid-state drives over hard disks?

    **Exercise –**

    1. Re-read the section on IoT, then find at least two scholarly articles about IoT. Prepare a minimum of three slides that address issues related to IoT. Be sure to give attribution to your sources.

    **2) Information Technology and Organizational Learning Questions**

    · Chapter 2 – Note why the IT organizational structure is an important concept to understand.  Also, note the role of IT in the overall business strategy.

    The above submission should be one page in length and adhere to APA formatting standards.

    **Remember the page length does not include the APA cover page or any references**

    Note the first assignment should be in one section and the second section should have the information from the Information Technology and Organizational Learning assignment.  The paper requirements for the two-pages applies to the second part of the assignment directly related to the Information Technology and Organizational Learning assignment.

    Text Book –

    1) Information Systems for Business and Beyond Questions:

    [**https://opentextbook.site/informationsystems2019/**](https://opentextbook.site/informationsystems2019/)

    2) Text book attached to this.

  • [Solved] Module 1

    ✓ Verified Academic Solution Available

    Executive Solution Overview

    [>World history homework help](https://www.sweetstudy.com/fields/history-world-history) See Attached – 2 years ago

    Instant Solution Download

    $6.99

    Immediate access to the full model answer, formatted citations, and rubric breakdown.

    Need a Fresh Custom Paper?

    Have this question answered from scratch according to your specific instructions and deadline.

    Order on TutorsGallery →

    Assignment Prompt & Instructions

    [>World history homework help](https://www.sweetstudy.com/fields/history-world-history)

    See Attached

    – 2 years ago

  • [Solved] Questions

    ✓ Verified Academic Solution Available

    Executive Solution Overview

    In-depth study guidance and analytical solution covering Questions.

    Instant Solution Download

    $6.99

    Immediate access to the full model answer, formatted citations, and rubric breakdown.

    Need a Fresh Custom Paper?

    Have this question answered from scratch according to your specific instructions and deadline.

    Order on TutorsGallery →

    Assignment Prompt & Instructions

    Full assignment prompt and step-by-step guidance are included in the downloadable solution file.

  • [Solved] c++ social media platform

    ✓ Verified Academic Solution Available

    Executive Solution Overview

    attached – 2 years ago **files (2)** – ## CAssignment2.pdf – Assignment2-20250111.zip **## CAssignment2.pdf** CE221 – C++ Programming Assignment 2 – 24/25 Dr Michael Barros (m.barros@essex.ac.uk) Deadline: 13:59:59, Monday 13th January 2025 Notice You should refer to sections 5 and 7 of the Undergra…

    Instant Solution Download

    $6.99

    Immediate access to the full model answer, formatted citations, and rubric breakdown.

    Need a Fresh Custom Paper?

    Have this question answered from scratch according to your specific instructions and deadline.

    Order on TutorsGallery →

    Assignment Prompt & Instructions

    attached

    – 2 years ago

    **files (2)**

    – ## CAssignment2.pdf

    – Assignment2-20250111.zip

    **## CAssignment2.pdf**

    CE221 – C++ Programming Assignment 2 – 24/25
    Dr Michael Barros (m.barros@essex.ac.uk)

    Deadline: 13:59:59, Monday 13th January 2025

    Notice

    You should refer to sections 5 and 7 of the Undergraduate Students’ Handbook for details of the University policy
    regarding late submission and plagiarism; the work handed in must be entirely your own. Your programs will be
    checked by an intelligent plagiarism detection system that looks for similarities between the submitted programs.
    (Since some of the code has been supplied on Moodle, there will inevitably be similarities, so I will examine any
    submissions flagged by the checker to determine whether the similarities that have been detected are reasonable.)

    This assignment comprises a single exercise. The files for use in this assignment are available in Moodle as a zip file.
    Submission of this assignment will be via FASER.

    Introduction

    In this assignment, you will develop a basic social media content management platform (e.g. think of it as X (twitter) or
    Reddit). The platform simulates a discussion of people and their posts with two types of distinct users:

    1. Users: Individuals who read and write posts.

    2. Managers: Individuals responsible for moderating the platform by setting and updating the content restrictions
    (i.e., blocked words or phrases). They also moderate who can become a manager.

    Your program will needs to display statistics about users reputation and help identify the top 10 most problematic
    users based on their reputation scores.

    Key Objectives

    1. Provide a system where Users can read and write posts.

    2. Provide a system where Managers can set and manage blocked content.

    3. Display the top 10 most problematic users who have accumulated the lowest reputation scores (or are tied at zero
    and have multiple moderated posts).

    4. Allow Users to view their statistics (accumulated or average scores).

    5. Implement a moderation engine that censors blocked content within posts.

    User and Manager Options

    User Options

    1. Read/Write Post:

    • Read a post : Randomly select a post from the platform’s database and present it to the user. After reading,
    the user can choose to read another post, report the post (which lowers the post’s author’s reputation), or exit.

    • Write a post : Prompt the user to write a post (up to 140 characters) and append it to the platform’s post file.

    2. View Your Statistics: Show the user’s accumulated reputation score and average reputation per post. These
    scores should be updated frequently and should use STL algorithms (of your choice).

    3. Display Top 10 Most Problematic Users: Sort the users by their reputation score (lowest first using a class
    operator overload). If there’s a tie at zero, break it by the number of moderated posts they have triggered. Display
    the bottom 10. Use STL sorting and iterators.

    4. Exit the Program

    1

    Manager Options

    1. Reset Moderation Content: Clear all previously added banned words or phrases.

    2. Add Blocked Content: Add new words or phrases that should be censored.

    3. Add Another Manager: Only an existing manager can add a new manager by specifying their name and regis-
    tration number.

    4. Set the Sample File: Set or change the name of the text file that contains the platform posts.

    5. Exit the Program

    Content Moderation Engine

    The engine must censor posts that contain blocked words or phrases. Every censored word or phrase should be replaced
    by a series of ‘X’s of the same length, and every post that has been censored should include the #moderatedpost tag at
    the end.

    • Consider a “word” as a sequence of non-whitespace characters containing more than one letter.

    • Remove punctuation at the start or end of words, but leave punctuation and digits that appear in the middle of
    words.

    • Convert all input to lowercase before checking for blocked content.

    Examples:

    • If “hate” is blocked: Original: “They truly hate her ideas.” Moderated: “They truly XXXX her ideas. #moderat-
    edpost”

    • If “cried all night” is blocked (a phrase): Original: “He cried all night after the announcement.” Moderated: “He
    XXXXX XXX XXXXX after the announcement. #moderatedpost”

    Classes and Files

    You will be provided with files in the Assignment2files folder, including:

    • Person.h and Person.cpp: A complete Person class (you may add extra members but do not alter existing ones
    except where noted).

    • User.h and Manager.h: Declarations for derived classes of Person. You must implement these in User.cpp and
    Manager.cpp, respectively, following the specifications in the comments.

    You may add extra member functions to these classes, but only define them in the .cpp files.

    Additional Class: ReadPosts

    You will have a ReadPosts class that:

    • Reads a large text file of platform posts.

    • Each record in the file may look like: userID postID post content date/time

    • You will be given a partial implementation and a header file. Use these as provided.

    • Implement a findPost function to select a random post from a multimap or similar container.

    • If any file cannot be opened, terminate gracefully with an error message.

    2

    Main Program Requirements

    1. Prompt for a username (or manager name) and determine their role.

    2. If a User does not exist yet, create a new one and inform them using a try-catch statement.

    3. If a Manager line is found, load their details. Only an existing Manager can add another.

    4. Use a template function login to read from a user/manager file. For Users: Read registration, name, and scores,
    and create User objects. For Managers: Read registration number and name, then create a Manager object.

    5. After login, provide the respective menu options as described earlier.

    6. You MUST use STL algorithms (for each, sort, etc.) and iterators, where pointed, but do not stop there.

    7. Handle file I/O errors gracefully.

    Challenge

    Make the ReadPosts class behave like a custom iterable container (similar to a linked list). Use this custom iterator in
    the top 10 calculation and in displaying the top 10 most problematic users.

    Deliverables

    Submit a single zip file containing a single folder. Acceptable formats: .zip, .7z, or a gzipped tar file. Other formats
    lose 10%.

    Include:

    • All source files (.cpp, .h)

    • A MAKE file for compilation

    • Any required files for the program to run

    Marking Scheme

    Marking Criteria Marks
    Style/Efficiency/Commenting 25
    Implementation of all classes (User and Manager) 5
    Main: User and manager options 20
    Top 10 most problematic users 5
    ReadPosts Class 15
    Find post with find function 5
    Requested usage of STL functions 10
    MAKE file for compilation 5
    Challenge 10
    Total 100

    Notes

    Avoid unnecessary copying or repetitive code. Comments should clearly describe what each function does and what each
    non-local variable represents. Within function bodies, use brief comments for groups of lines rather than every single
    statement. Use the STL wisely.

    Compile using the MAKE file and execute the application for testing.

    Good luck!

    3

    Detailed Marking Scheme (Deductions)

    Criteria for Mark Deductions Deduction (Marks)
    S
    ty
    le
    /

    E
    ffi
    ci
    en
    cy
    /

    C
    o
    m
    m
    en
    ti
    n
    g

    M
    ax

    2
    5
    d
    ed
    u
    c.

    Poor code readability (inconsistent indentation, messy formatting). Up to -5
    Unclear or non-descriptive variable/function names Up to -3
    Redundant or duplicate variables/objects in memory Up to -5
    Lack of or insufficient commenting Up to -5
    Code not compiling fully Up to -10
    Abrupt runtime interruption (crashes) Up to -10
    Extra code unrelated to requirements Up to -10
    Wrong submission format (not following instructions) Up to -10
    Missing or incorrect implementation of required members in
    User/Manager classes

    Up to -5

    Not using Template Function for login Up to -5
    User/Manager registration not storing data correctly Up to -3
    Authentication system failing to validate users properly Up to -2

    P
    la
    tf
    o
    rm

    D
    ed
    u
    ct
    io
    n
    s Required user/manager menu options not implemented (e.g., read/write

    tweet, add blocked content)
    Up to -10

    User statistics (accumulative/average score) and top 10 wrong results Up to -5
    Tie-breaking rules (e.g., #moderatedtweet count) not implemented Up to -5
    ReadPosts class incomplete or non-functional Up to -10
    Incorrect parsing or processing of platform posts Up to -5
    Not using required STL functions (e.g., for each, sort) Up to -5
    Not using iterators where specified Up to -5
    No MAKE file or MAKE file not building correctly Up to -3
    MAKE file does not compile all required sources Up to -2
    Not implementing the custom iterable container as required Up to -5
    Not integrating the custom iterator with sorting/iteration tasks Up to -5

    Total Possible Deductions -100

    4

    **Assignment2-20250111.zip**

    This file is too large to display. [View in new window](https://www.sweetstudy.com/files/assignment2-20250111-zip-10151695)

    **Assignment2-20250111.zip**

    This file is too large to display. [View in new window](https://www.sweetstudy.com/files/assignment2-20250111-zip-10151695)

    **## CAssignment2.pdf**

    CE221 – C++ Programming Assignment 2 – 24/25
    Dr Michael Barros (m.barros@essex.ac.uk)

    Deadline: 13:59:59, Monday 13th January 2025

    Notice

    You should refer to sections 5 and 7 of the Undergraduate Students’ Handbook for details of the University policy
    regarding late submission and plagiarism; the work handed in must be entirely your own. Your programs will be
    checked by an intelligent plagiarism detection system that looks for similarities between the submitted programs.
    (Since some of the code has been supplied on Moodle, there will inevitably be similarities, so I will examine any
    submissions flagged by the checker to determine whether the similarities that have been detected are reasonable.)

    This assignment comprises a single exercise. The files for use in this assignment are available in Moodle as a zip file.
    Submission of this assignment will be via FASER.

    Introduction

    In this assignment, you will develop a basic social media content management platform (e.g. think of it as X (twitter) or
    Reddit). The platform simulates a discussion of people and their posts with two types of distinct users:

    1. Users: Individuals who read and write posts.

    2. Managers: Individuals responsible for moderating the platform by setting and updating the content restrictions
    (i.e., blocked words or phrases). They also moderate who can become a manager.

    Your program will needs to display statistics about users reputation and help identify the top 10 most problematic
    users based on their reputation scores.

    Key Objectives

    1. Provide a system where Users can read and write posts.

    2. Provide a system where Managers can set and manage blocked content.

    3. Display the top 10 most problematic users who have accumulated the lowest reputation scores (or are tied at zero
    and have multiple moderated posts).

    4. Allow Users to view their statistics (accumulated or average scores).

    5. Implement a moderation engine that censors blocked content within posts.

    User and Manager Options

    User Options

    1. Read/Write Post:

    • Read a post : Randomly select a post from the platform’s database and present it to the user. After reading,
    the user can choose to read another post, report the post (which lowers the post’s author’s reputation), or exit.

    • Write a post : Prompt the user to write a post (up to 140 characters) and append it to the platform’s post file.

    2. View Your Statistics: Show the user’s accumulated reputation score and average reputation per post. These
    scores should be updated frequently and should use STL algorithms (of your choice).

    3. Display Top 10 Most Problematic Users: Sort the users by their reputation score (lowest first using a class
    operator overload). If there’s a tie at zero, break it by the number of moderated posts they have triggered. Display
    the bottom 10. Use STL sorting and iterators.

    4. Exit the Program

    1

    Manager Options

    1. Reset Moderation Content: Clear all previously added banned words or phrases.

    2. Add Blocked Content: Add new words or phrases that should be censored.

    3. Add Another Manager: Only an existing manager can add a new manager by specifying their name and regis-
    tration number.

    4. Set the Sample File: Set or change the name of the text file that contains the platform posts.

    5. Exit the Program

    Content Moderation Engine

    The engine must censor posts that contain blocked words or phrases. Every censored word or phrase should be replaced
    by a series of ‘X’s of the same length, and every post that has been censored should include the #moderatedpost tag at
    the end.

    • Consider a “word” as a sequence of non-whitespace characters containing more than one letter.

    • Remove punctuation at the start or end of words, but leave punctuation and digits that appear in the middle of
    words.

    • Convert all input to lowercase before checking for blocked content.

    Examples:

    • If “hate” is blocked: Original: “They truly hate her ideas.” Moderated: “They truly XXXX her ideas. #moderat-
    edpost”

    • If “cried all night” is blocked (a phrase): Original: “He cried all night after the announcement.” Moderated: “He
    XXXXX XXX XXXXX after the announcement. #moderatedpost”

    Classes and Files

    You will be provided with files in the Assignment2files folder, including:

    • Person.h and Person.cpp: A complete Person class (you may add extra members but do not alter existing ones
    except where noted).

    • User.h and Manager.h: Declarations for derived classes of Person. You must implement these in User.cpp and
    Manager.cpp, respectively, following the specifications in the comments.

    You may add extra member functions to these classes, but only define them in the .cpp files.

    Additional Class: ReadPosts

    You will have a ReadPosts class that:

    • Reads a large text file of platform posts.

    • Each record in the file may look like: userID postID post content date/time

    • You will be given a partial implementation and a header file. Use these as provided.

    • Implement a findPost function to select a random post from a multimap or similar container.

    • If any file cannot be opened, terminate gracefully with an error message.

    2

    Main Program Requirements

    1. Prompt for a username (or manager name) and determine their role.

    2. If a User does not exist yet, create a new one and inform them using a try-catch statement.

    3. If a Manager line is found, load their details. Only an existing Manager can add another.

    4. Use a template function login to read from a user/manager file. For Users: Read registration, name, and scores,
    and create User objects. For Managers: Read registration number and name, then create a Manager object.

    5. After login, provide the respective menu options as described earlier.

    6. You MUST use STL algorithms (for each, sort, etc.) and iterators, where pointed, but do not stop there.

    7. Handle file I/O errors gracefully.

    Challenge

    Make the ReadPosts class behave like a custom iterable container (similar to a linked list). Use this custom iterator in
    the top 10 calculation and in displaying the top 10 most problematic users.

    Deliverables

    Submit a single zip file containing a single folder. Acceptable formats: .zip, .7z, or a gzipped tar file. Other formats
    lose 10%.

    Include:

    • All source files (.cpp, .h)

    • A MAKE file for compilation

    • Any required files for the program to run

    Marking Scheme

    Marking Criteria Marks
    Style/Efficiency/Commenting 25
    Implementation of all classes (User and Manager) 5
    Main: User and manager options 20
    Top 10 most problematic users 5
    ReadPosts Class 15
    Find post with find function 5
    Requested usage of STL functions 10
    MAKE file for compilation 5
    Challenge 10
    Total 100

    Notes

    Avoid unnecessary copying or repetitive code. Comments should clearly describe what each function does and what each
    non-local variable represents. Within function bodies, use brief comments for groups of lines rather than every single
    statement. Use the STL wisely.

    Compile using the MAKE file and execute the application for testing.

    Good luck!

    3

    Detailed Marking Scheme (Deductions)

    Criteria for Mark Deductions Deduction (Marks)
    S
    ty
    le
    /

    E
    ffi
    ci
    en
    cy
    /

    C
    o
    m
    m
    en
    ti
    n
    g

    M
    ax

    2
    5
    d
    ed
    u
    c.

    Poor code readability (inconsistent indentation, messy formatting). Up to -5
    Unclear or non-descriptive variable/function names Up to -3
    Redundant or duplicate variables/objects in memory Up to -5
    Lack of or insufficient commenting Up to -5
    Code not compiling fully Up to -10
    Abrupt runtime interruption (crashes) Up to -10
    Extra code unrelated to requirements Up to -10
    Wrong submission format (not following instructions) Up to -10
    Missing or incorrect implementation of required members in
    User/Manager classes

    Up to -5

    Not using Template Function for login Up to -5
    User/Manager registration not storing data correctly Up to -3
    Authentication system failing to validate users properly Up to -2

    P
    la
    tf
    o
    rm

    D
    ed
    u
    ct
    io
    n
    s Required user/manager menu options not implemented (e.g., read/write

    tweet, add blocked content)
    Up to -10

    User statistics (accumulative/average score) and top 10 wrong results Up to -5
    Tie-breaking rules (e.g., #moderatedtweet count) not implemented Up to -5
    ReadPosts class incomplete or non-functional Up to -10
    Incorrect parsing or processing of platform posts Up to -5
    Not using required STL functions (e.g., for each, sort) Up to -5
    Not using iterators where specified Up to -5
    No MAKE file or MAKE file not building correctly Up to -3
    MAKE file does not compile all required sources Up to -2
    Not implementing the custom iterable container as required Up to -5
    Not integrating the custom iterator with sorting/iteration tasks Up to -5

    Total Possible Deductions -100

    4

    **Assignment2-20250111.zip**

    This file is too large to display. [View in new window](https://www.sweetstudy.com/files/assignment2-20250111-zip-10151695)

    **## CAssignment2.pdf**

    CE221 – C++ Programming Assignment 2 – 24/25
    Dr Michael Barros (m.barros@essex.ac.uk)

    Deadline: 13:59:59, Monday 13th January 2025

    Notice

    You should refer to sections 5 and 7 of the Undergraduate Students’ Handbook for details of the University policy
    regarding late submission and plagiarism; the work handed in must be entirely your own. Your programs will be
    checked by an intelligent plagiarism detection system that looks for similarities between the submitted programs.
    (Since some of the code has been supplied on Moodle, there will inevitably be similarities, so I will examine any
    submissions flagged by the checker to determine whether the similarities that have been detected are reasonable.)

    This assignment comprises a single exercise. The files for use in this assignment are available in Moodle as a zip file.
    Submission of this assignment will be via FASER.

    Introduction

    In this assignment, you will develop a basic social media content management platform (e.g. think of it as X (twitter) or
    Reddit). The platform simulates a discussion of people and their posts with two types of distinct users:

    1. Users: Individuals who read and write posts.

    2. Managers: Individuals responsible for moderating the platform by setting and updating the content restrictions
    (i.e., blocked words or phrases). They also moderate who can become a manager.

    Your program will needs to display statistics about users reputation and help identify the top 10 most problematic
    users based on their reputation scores.

    Key Objectives

    1. Provide a system where Users can read and write posts.

    2. Provide a system where Managers can set and manage blocked content.

    3. Display the top 10 most problematic users who have accumulated the lowest reputation scores (or are tied at zero
    and have multiple moderated posts).

    4. Allow Users to view their statistics (accumulated or average scores).

    5. Implement a moderation engine that censors blocked content within posts.

    User and Manager Options

    User Options

    1. Read/Write Post:

    • Read a post : Randomly select a post from the platform’s database and present it to the user. After reading,
    the user can choose to read another post, report the post (which lowers the post’s author’s reputation), or exit.

    • Write a post : Prompt the user to write a post (up to 140 characters) and append it to the platform’s post file.

    2. View Your Statistics: Show the user’s accumulated reputation score and average reputation per post. These
    scores should be updated frequently and should use STL algorithms (of your choice).

    3. Display Top 10 Most Problematic Users: Sort the users by their reputation score (lowest first using a class
    operator overload). If there’s a tie at zero, break it by the number of moderated posts they have triggered. Display
    the bottom 10. Use STL sorting and iterators.

    4. Exit the Program

    1

    Manager Options

    1. Reset Moderation Content: Clear all previously added banned words or phrases.

    2. Add Blocked Content: Add new words or phrases that should be censored.

    3. Add Another Manager: Only an existing manager can add a new manager by specifying their name and regis-
    tration number.

    4. Set the Sample File: Set or change the name of the text file that contains the platform posts.

    5. Exit the Program

    Content Moderation Engine

    The engine must censor posts that contain blocked words or phrases. Every censored word or phrase should be replaced
    by a series of ‘X’s of the same length, and every post that has been censored should include the #moderatedpost tag at
    the end.

    • Consider a “word” as a sequence of non-whitespace characters containing more than one letter.

    • Remove punctuation at the start or end of words, but leave punctuation and digits that appear in the middle of
    words.

    • Convert all input to lowercase before checking for blocked content.

    Examples:

    • If “hate” is blocked: Original: “They truly hate her ideas.” Moderated: “They truly XXXX her ideas. #moderat-
    edpost”

    • If “cried all night” is blocked (a phrase): Original: “He cried all night after the announcement.” Moderated: “He
    XXXXX XXX XXXXX after the announcement. #moderatedpost”

    Classes and Files

    You will be provided with files in the Assignment2files folder, including:

    • Person.h and Person.cpp: A complete Person class (you may add extra members but do not alter existing ones
    except where noted).

    • User.h and Manager.h: Declarations for derived classes of Person. You must implement these in User.cpp and
    Manager.cpp, respectively, following the specifications in the comments.

    You may add extra member functions to these classes, but only define them in the .cpp files.

    Additional Class: ReadPosts

    You will have a ReadPosts class that:

    • Reads a large text file of platform posts.

    • Each record in the file may look like: userID postID post content date/time

    • You will be given a partial implementation and a header file. Use these as provided.

    • Implement a findPost function to select a random post from a multimap or similar container.

    • If any file cannot be opened, terminate gracefully with an error message.

    2

    Main Program Requirements

    1. Prompt for a username (or manager name) and determine their role.

    2. If a User does not exist yet, create a new one and inform them using a try-catch statement.

    3. If a Manager line is found, load their details. Only an existing Manager can add another.

    4. Use a template function login to read from a user/manager file. For Users: Read registration, name, and scores,
    and create User objects. For Managers: Read registration number and name, then create a Manager object.

    5. After login, provide the respective menu options as described earlier.

    6. You MUST use STL algorithms (for each, sort, etc.) and iterators, where pointed, but do not stop there.

    7. Handle file I/O errors gracefully.

    Challenge

    Make the ReadPosts class behave like a custom iterable container (similar to a linked list). Use this custom iterator in
    the top 10 calculation and in displaying the top 10 most problematic users.

    Deliverables

    Submit a single zip file containing a single folder. Acceptable formats: .zip, .7z, or a gzipped tar file. Other formats
    lose 10%.

    Include:

    • All source files (.cpp, .h)

    • A MAKE file for compilation

    • Any required files for the program to run

    Marking Scheme

    Marking Criteria Marks
    Style/Efficiency/Commenting 25
    Implementation of all classes (User and Manager) 5
    Main: User and manager options 20
    Top 10 most problematic users 5
    ReadPosts Class 15
    Find post with find function 5
    Requested usage of STL functions 10
    MAKE file for compilation 5
    Challenge 10
    Total 100

    Notes

    Avoid unnecessary copying or repetitive code. Comments should clearly describe what each function does and what each
    non-local variable represents. Within function bodies, use brief comments for groups of lines rather than every single
    statement. Use the STL wisely.

    Compile using the MAKE file and execute the application for testing.

    Good luck!

    3

    Detailed Marking Scheme (Deductions)

    Criteria for Mark Deductions Deduction (Marks)
    S
    ty
    le
    /

    E
    ffi
    ci
    en
    cy
    /

    C
    o
    m
    m
    en
    ti
    n
    g

    M
    ax

    2
    5
    d
    ed
    u
    c.

    Poor code readability (inconsistent indentation, messy formatting). Up to -5
    Unclear or non-descriptive variable/function names Up to -3
    Redundant or duplicate variables/objects in memory Up to -5
    Lack of or insufficient commenting Up to -5
    Code not compiling fully Up to -10
    Abrupt runtime interruption (crashes) Up to -10
    Extra code unrelated to requirements Up to -10
    Wrong submission format (not following instructions) Up to -10
    Missing or incorrect implementation of required members in
    User/Manager classes

    Up to -5

    Not using Template Function for login Up to -5
    User/Manager registration not storing data correctly Up to -3
    Authentication system failing to validate users properly Up to -2

    P
    la
    tf
    o
    rm

    D
    ed
    u
    ct
    io
    n
    s Required user/manager menu options not implemented (e.g., read/write

    tweet, add blocked content)
    Up to -10

    User statistics (accumulative/average score) and top 10 wrong results Up to -5
    Tie-breaking rules (e.g., #moderatedtweet count) not implemented Up to -5
    ReadPosts class incomplete or non-functional Up to -10
    Incorrect parsing or processing of platform posts Up to -5
    Not using required STL functions (e.g., for each, sort) Up to -5
    Not using iterators where specified Up to -5
    No MAKE file or MAKE file not building correctly Up to -3
    MAKE file does not compile all required sources Up to -2
    Not implementing the custom iterable container as required Up to -5
    Not integrating the custom iterator with sorting/iteration tasks Up to -5

    Total Possible Deductions -100

    4

    **Assignment2-20250111.zip**

    This file is too large to display. [View in new window](https://www.sweetstudy.com/files/assignment2-20250111-zip-10151695)