Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE PROVIDE WORKING C# Code with output if you answer. Design an archive system to store novels. A novel can have many pages. Within a

PLEASE PROVIDE WORKING C# Code with output if you answer.

Design an archive system to store novels. A novel can have many pages. Within a page, there can
be several columns and frames. A column can contain frames, so can a frame contain columns.
Moreover, multiple images may be seen in a column or frame. A column is very likely to contain
several lines of text, which can be a combination of characters and images. A UML class diagram
is shown below that depicts many composition relationships. Please re-design it into a hierarchical
representation to improve software reuse.
One restriction is that a type should not directly include its own type. For example, a column
should not include a column directly. However, it is ok to include an indirect object type. For
example, a column can have frames which contain columns, so that a relationship for a column to
contain columns indirectly is acceptable.
The Novel class and its entity classes, such as Page, will provide five methods to allow contents
manipulation. These methods include save, retrieve, view, edit and delete. Given a Novel object,
an administrator can run all five methods of the Novel object. However, an editor can only run the
object’s save, retrieve, and delete functions, and a writer can only execute the view and edit
operations. 


Implement C# code to do the followings. The five methods save, retrieve, view, edit and delete do
not require detailed implementation. Please just print out a simple message. For example, if a page
is revised, just show something like “A page has been updated.” 
1. Create a Novel object that contains one page. The page has one Column and one Frame.
The Column contains one LineOfText with five Characters “CHECK”. The Frame
contains one Column which contains one LineOfText with three Characters “421”.
2. For the created Novel object, a writer calls the object’s view method to see the result as
“TEST411”.

Step by Step Solution

3.41 Rating (145 Votes )

There are 3 Steps involved in it

Step: 1

Here is a basic implementation in C for the given requirements csharp using System Abstract class for Content abstract class Content public abstract void save public abstract void retrieve public abst... 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_2

Step: 3

blur-text-image_3

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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions