Q1-

This program deals with strings and requires the use of pointers (in a fairly simple fashion).
You might consider yourself writing a programmer for a book editor to place a set of index entries into alphabetical order. Some complications arise here in that punctuation in the entries is ignored in fixing the order of the entries, as are several other symbols. Hence you need to not necessarily compare whole string of characters (so strcomp is not going to do the job). Basically you can do as a subprogramme which will compare just the relevant characters of two strings.

Q2-

This program introduces structures and a simple class with associated ideas from the basic knowledge from the pervious steps.

Set up a class date which models a date with fields for the day, the month and the years. Ste up constructors and a destructor, and some member functions to print a date, input a date, and write a suitable function to add N days to a date.


Can you write some code which will say what day of the week a particular date is?

Q3-

This question, a full class with pointers and generators is required. Write a polynomial package which will manipulate polynomials. The class should be able to input a polynomial, print a polynomial, add, subtract and multiply polynomials.

You will be manipulating arrays of doubles which are the coefficients of the polynomial.

Recommended Answers

All 2 Replies

Member Avatar for iamthwee

Was there any questions or do you expect someone to do that for you?

This will propably be locked if you don't respond with some actual work.

[Moderator edit: Removed lame abbreviations so people can actually understand this post]

Member Avatar for iamthwee

Is this c or c++ or c#?

the output 4 question 3 may look like the following. 1 and 2 was easiest.

If u have any questions after u have tried given them here.

:-|

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.