Need help on C++ project

seiai
c_short_questions.docx

1. Design a function() to Confirm that a Certain String is on a List.

2. Design a class for each of these: A College; An Automobile; An Employee; and A House. No need to provide any functionality, just a declaration with major attributes and relationships.

a. Design two classes that use inheritance. Make one be a human and the other be some inanimate object.

b. Code one of the classes you designed.

3. The “Pythagorean theorem” (which, incidentally, was known to Indian mathematicians a long time before Pythagoras) states that “the square of the hypotenuse of a right-angled triangle is equal to the sum of the squares of the other two sides.” Putting it another way, if a triangle has a right angle between sides a and b, then for the third side c the relation c2 = a2 + b2 holds. Take two sides of a triangle as input and calculate the length of the hypotenuse.

4. Using windows programming, do a multiple dialog project: have several dialogs in the same project.

5. Do a Registration program for a school. Ask for the SSN; name; address; birth year; how many units; and whether or not a High School graduate. If the student is not a HS graduate, find out if they are still in High School. If so, ask if they have the school principal’s permission, and tell them to get it if they don’t (don’t allow registration). If the non-graduate is not in HS, the student must be over 18 to register. If the student is in HS, tuition is free. If the address State is California, then the fee is $26 per unit. Otherwise, add $172 per unit.

6. Write a program that edit checks some input for validity.

7. Demonstrate concatenating strings in at least 2 different ways.

8. Access a database from a program.

9. A study of cryptography and its growth as a science can shed light on the nature of languages and on certain aspects of history. For example, the level of education of the Boers in the Boer War can be noted from the fact that the British officers often sent messages written in normal schoolboy Latin, secure in the fact that if they did fall into the wrong hands, they could not be understood. One of the simplest codes (used from the times of the Greeks) is representing the letters of the alphabet by numbers. An array contains a series of two-digit integers. Each integer represents one character of the alphabet as follows:

00 represents a blank space 01 represents an A 02 represents a B 03 represents a C . . . 26 represents a Z

Write a program that reads the entries and prints the characters corresponding to the integers. The program should check that all integers are between 0 and 26. If this is not the case, the program should print a message indicating that the data is invalid.