Contact Us

Contact Us :  Codezclub provides Solved Programming Codes for C , C++ Programming, Data Structures, Java Programming, with Detailed Description and Latest Technology Updates.

CodezClub is one of India’s fast-growing websites for Programming Codes. We are constantly trying to serve you a better experience in learning. If you have any queries or doubts, you can contact us here. We shall reach out to you shortly.

If you have any business inquiries or any discussions to make, feel free to contact us.

4.1 7 votes
Article Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments

Define a class Student. Inherit it into engineering, arts, commerce, and science students. Inherit engineering student into computer science, electronics and communication, and information technology student. Provide constructors for all the classes. Now define a virtual function display() for displaying the details for all classes in their respective classes using the same base class pointer (a pointer to student). Now, use the virtual function to access the electronics and communication object. It can be seen that without any pointer casting, the base class pointer can access the derived class object using virtual function

A Raghavendra Reddy

anyone please tell the answer for this question

Abdul moiz

collection of positive integers that are entered by the user from the keyboard.your program shuold prompt the user to enter each integer followed by the return key,and to enter “-1″at the end of the list of integers to be added.Note that there is no need to store list of integers:you can keep track of the sum as the user is entering the values.
Modify your code so that the code terminates if the sum of integers entered upto that point exceeds 100.
(C++ language)


Create a base class called user to represent a user in an application. Include data members name (string) and password (string) in class user. Derive two classes from user to represent two different kinds of user : admin and normal user. Class admin needs a new data member to store phone number (integer) of administrator. Include a member function called authenticate() in class user. Keep this function pure virtual in base class but override it to perform specific authentication procedure for both derived classes. Define appropriate constructors in all these classes to initialize data members of created objects such that… Read more »


void main()


int i = 2, j = 1, x;

X = ++i + ++j – –j – –i;

printf(“x=%d i=%d j = %d”, x, i, j);


I need output of the Program.
In Turbo its different but online compiler its different.


You are required to write a C++ program using Classes or Structs to fulfil one of the client briefs listed below. You only need to write a program for one of the client briefs, the choice is up to you. Client Brief 1: BMI Calculator A local health clinic wants a simple to use application that can keep track of multiple patients Body Mass Index (BMI) measurements. The application should be able to: Add a new patient with their Name, Phone number, email, Initial weight & Height List the patient’s names, phone numbers & email addresses. Update the weight for… Read more »


can anyone help me out please

Alishba Faheem

1.     There is an application which inputs hundred numbers from user, if user enters a positive number it increments valid numbers count. But if user enters other than integer it terminates. You are required to write and execute the code for this application such that instead of termination it shows message “input is not valid” and re input a number.

plz provide solution

Selvin Gounder

Demonstrate the use of a combination of selection and loop structure in C++ programming. For this assignment you are required to create a program for Save Energy Electricity & Co to assist them in automating the billing process for all its customers. A customer is billed at 33.10 cents per unit. However, all households with a combine annual income below $30,000, will be eligible for government subsidy for the first 100 units of electricity usage per month at a rate of 0.1590 cents per unit. All units above 100 will be charged the full tariff. For example: Customer A with… Read more »

Wesley Newcomb

The goal of a traffic simulation is to collect data about the traffic flow. In our project we start with
modeling one orthogonal intersection controlled by a traffic light. Each roadway leading to and
from the intersection will have a fixed length (providing space for a fixed number of cars). The
simulation is driven by a timer. Vehicles (e.g. cars, trucks, buses, motorcycles) arrive onto the
four lanes of traffic leading to the intersection every timer unit with a probability 1:n (n selected
by user – suggested value 6). 
Answer source in C++?