Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

problem 1:                   

(a) Describe why Object Oriented Programming approach is better than Structured Programming Approach.                                                       

(b) prepare the simple C++ program to describe basic structure of C++ programming.

(c) Describe the usage of the following C++ operators with the help of the ex program.    

(a) sizeof operator

(b) Logical Operators

(c) Scope resolution operator

problem 2:                   

(a) describe class Book with all basic attributes like title, author, publisher, price etc. Define default constructor, member functions display_data() for displaying the Book details. Use suitable access control specifiers in this program.

(b) Describe the following terms in the context of object oriented programming. Also describe how these concepts are implemented in C++ by giving the ex program for each.    

(a) Abstraction

(b) Encapsulation

(c) Operator Overloading

(d) Static Member

problem 3:                    

(a) Define polymorphism? What are various forms of polymorphism? Describe implementation of polymorphism with the help of the C++ program.

(b) Define friend function? How it is implemented in C++? Describe advantages of using friend function with the help of the ex.

problem 4 :                   

(a) Describe the following functions for manipulating file pointers, with the help of ex program:

• seekg()

• seekp()

• tellg()

• tellp()   

(b)describe exception? How an exception is different from an error? Describe how exceptions are handled in C++, with the help of the ex program.

problem 5:                   

(a) What do you understand by template? prepare suitable statements to create a template class for Stack data structure in C++.

(b) What is inheritance? What are various types of inheritance? Describe advantages of using inheritance.

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M92167

Have any Question? 


Related Questions in C/C++

Write an application that allows the user to enter two

Write an application that allows the user to enter two variables: number (real) and code (character). Calculate the value indicated by the table below: If code is Result A symbol the whole part of the number everything e ...

Problem 1overview for problem 1a of this assignment you

Problem #1 Overview: For problem 1(a) of this assignment, you will need a C++ compiler. In order to receive credit, your program must compile and run; and you must provide the actual source code file so that I can compil ...

C program codeoverviewfor this assignment write a program

C++ program code Overview For this assignment, write a program that will simulate a single game of Craps. Craps is a game of chance where a player (the shooter) will roll 2 six-sided dice. The sum of the die will determi ...

Fix a programthe program is already done and it runs welli

Fix a program The program is already done and it runs well.. I just need someone to fix it for me, the problem happens when you insert invalid day or invalid ticket type, I want you to end the program *at that point* as ...

A write an array implementation of self-adjusting lists in

a. Write an array implementation of self-adjusting lists. In a self-adjusting list, all insertions are performed at the front. A self-adjusting list adds a find operation, and when an element is accessed by a find, it is ...

Q 1 write a c program to declare two integer one float

Q. 1 Write a C++ program to declare two integer , one float variables and assign 10, 15, and 12.6 to them respectively. It then prints these values on the screen. Q. 2 Write a C++ program to prompt the user to input her/ ...

Programming assignment-1 program specification1 your

Programming Assignment- 1. Program Specification 1. Your program must read 8-bit ASCII strings from standard input -- for instance, using the cin object in C++, or stdin in C. You must consume all input from standard inp ...

You need to program a microprocessor that would have a

You need to program a microprocessor that would have a temperature, gas, humidity and PIR sensor connected to it. It would send the data to a PC via a Zigbee and receive commands from the PC via the Zigbee to control mot ...

Write code to create the generator submit your source code

Write code to create the generator. Submit your source code as well as a description of how I could run the program, sample screenshots of the program in action, and the various changes that could be produced through you ...

Discussion questionsplease respond to all of the following

Discussion Questions Please respond to all of the following prompts: • What is a friend function and how is it declared? • Which operators cannot be overloaded and why? • What is a macro in C++ programming and what are s ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate