/Robert-Lafore

Object-Oriented Programming in C++

Primary LanguageC++

Robert-Lafore

Object-Oriented Programming in C++

Solutions to exercises.

Chapter 2: C++ Programming Basics

This chapter introduces some basic fundamentals to write some elementry program in C++. It introduces three such fundamentals: basic programming construction, variables, and input/output (I/O).

Ques. No. Pg. No. Question Solution
1. 71 Conversion C++
2. 71 Table Generation C++
3. 71 Generate the following output C++
4. 71 Favourite Poem C++
5. 72 Lowercase or Uppercase C++
6. 72 Currency Conversion C++
7. 72 Temp. Conversion C++
8. 72 Use of setfill() C++
9. 72 Fraction addition C++
10. 73 Currency Conversion C++
11. 73 Left-Justify Text C++
12. 73 Currency Conversion C++

Chapter 3: Loops and Decisions

In this chapter loops and decisions statements are introduced. This chapter teaches us some fundamentals of loop and decisions along with some detail descritions.

Ques. No. Pg. No. Question Solution
1. 126 Table of multiples C++
2. 126 Temp. Conversion C++
3. 126 Displaying numbers C++
4. 127 Fraction Calculator C++
5. 127 X Pyramid C++
6. 127 Factorial C++
7. 127 Compound Interest C++
8. 128 Currency addition C++
9. 128 Party problem C++
10. 128 Compound Interest inverse C++
11. 128 3-function calculator C++
12. 129 Fraction Calculator C++

Chapter 4: Structures

This chapter is devoted to structures. It teaches us to organsie some simple variables into complex entities. In other words we can say that it helps to create some user define data types.

Ques. No. Pg. No. Question Solution
1. 158 Phone number C++
2. 158 Coordinates C++
3. 158 Volume C++
4. 158 Emp Info C++
5. 159 Date C++
6. 159 Enum C++
7. 159 Enum+Date C++
8. 159 Fraction C++
9. 159 Time C++
10. 160 Currency Conversion C++
11. 160 Time addition C++
12. 160 Fraction calculator C++

Chapter 5: Functions

This chapter is dedicated to functions. A function groups a number of program statements into a unit and give it a name. Function helps to aid in the conceptual organization of a programs.

Ques. No. Pg. No. Question Solution
1. 212 Circle Area C++
2. 212 Power function C++
3. 212 Smaller C++
4. 212 Larger Distance C++
5. 212 Time functions C++
6. 212 Adding Time using Structure C++
7. 213 Double(DT) Power C++
8. 213 Swap number C++
9. 213 Swap Time C++
10. 213 Count value C++
11. 213 Add Currency C++
12. 213 Calculator C++

Chapter 6: Objects and Classes

This chapter introduces the concepts of class and objects. Class is a specification or blueprint for a number of objects while an Object is an instance of a Class.

Ques. No. Pg. No. Question Solution
1. 259 Model Int datatype C++
2. 259 Model tollboth C++
3. 260 Model Time data C++
4. 260 Employee details C++
5. 260 I/O Date C++
6. 260 Employee class C++
7. 260 Ocean Nav. C++
8. 261 Assigned S.No. C++
9. 261 Fraction addition C++
10. 261 Ship Pos.&S.No. C++
11. 262 Fraction Calculator C++
12. 262 Fraction Mul. Table C++

Chapter 7: Arrays and Strings

In this chapter we’ll look first at arrays of basic data types such as int and char . Then we’ll examine arrays used as data members in classes, and arrays used to hold objects. Thus this chapter is intended not only to introduce arrays, but to increase your understanding of object-oriented programming.

Ques. No. Pg. No. Question Solution
1. 313 Reverse a C-String C++
2. 314 Employee Details C++
3. 314 Avg of english distances C++
4. 314 Max Int C++
5. 314 Average fraction Number C++
6. 314 Contract bridge Game C++
7. 314 Group Money C++
8. 315 Safe Array C++
9. 315 Stack Array C++
10. 316 Safe array C++
11. 316 Convert Number C++
12. 317 String to long doube C++

Chapter 8:

In this chapter we’ll look first at arrays of basic data types such as int and char . Then we’ll examine arrays used as data members in classes, and arrays used to hold objects. Thus this chapter is intended not only to introduce arrays, but to increase your understanding of object-oriented programming.