[SOLVED] CS151 # Module 7

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

Rate this product

Inheritance, access modifiers
### Homework
#### Project 1
Write a class **PString** that is derived from the **STL** string class. The
**PString** class should add a member function which determines whether the
string is a palindrome.
#### Project 2
Write a class named **EncryptableString** that is derived from the **STL** string
class. The **EncryptableString** class adds a member function which encrypts the
string contained in the object by replacing each letter with its successor in
the ASCII ordering.

Assume that the only characters to be encrypted in an **EncryptableString**
object are letters (a → z and A → Z), and numbers (0 → 9), and that the
successor of ‘z’ is ‘a’, the successor of ‘Z’ is ‘A’, and the successor of ‘9’
is ‘0’. Other characters should not be encrypted, such as spaces and
punctuation.
### Lab
#### Project 1
Complete the People At MCC classes
#### Project 2
Write classes representing animals, birds, and dogs

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.