Questions: 11 448

Answers by our Experts: 10 707

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a c++ program to find sum of all even numbers between 1-n.- using for loop


Write a C++ program to print all odd numbers between 1 to 100


Create a rectangle class having length and width as parameter. Write getter/setter for each parameter. Write default constructor that should initialize the default value to the length and width.. Write member functions to calculate area and another function to calculate perimeter in class. Write a function to print the information regarding rectangle which include length, width, area and parameter.


Formula to calculate area = 0.5 * length * width

Formula to calculate perimeter=2 * length+ 2 * width

Q1. Design an application for hospital management system. For this, create the following classes

and members.

Person - name, date of birth, sex

Doctor - Specialization

Patient- Casenumber, Disease, date of admission, date of discharge, bill number.

Write function to input the data from the user and display data to the user.


Colleges in India are following the CGPA system. Continuous hard work is needed to get to a good CGPA at the end of every of semester. Placements depends a lot on CGPA for good job packages. Suppose XYZ company is coming to your college and you are one among the coordinators to find the eligible students. That company need at least 5 brilliant students in an ascending order. Write a program using c++ programming language that consist of a class having one float array data member which stores the random CGPA of 20 students and containing one member function to sort students in ascending order of their CGPA.


Explain the concept of multipath inheritance with the help of suitable programming example.


. Explain Discuss in detail about the problem of ambiguity in multiple inheritance. How the ambiguity problem is resolved in multiple inheritance by taking suitable example.


The manager of the company has informed his assistant to enter the age of all the workers working in production department. Among all he has to find the employee with maximum age employee. Help the manager witn c++ program based on the concept of object oriented programming by creating a class employee having members empid, empname, edept,eage and display the name ,dept. and salary employee whose salary is minimum. Store the date of at least 7 employees. Make the data members of class only public. (6) Constraints Employee salary should be greater than or equal to 10000 if constraints are not matched then display "Wrong Salary Input’ 


. There are 15 students in the class. Students had their mid term result in INT105 and teacher from CSE domain wants to find the average marks of the class for course code INT105 and display it. Write a program using C++ programming language that consists of an class having name Student containing one integer array data member which stores the total marks of 15 students and float data member that calculate the stores average marks to 10 students. Use constructor to initialize data members and member functions to calculate and display average marks.


One day while Cody was playing with his friends in the woods, they stumbled upon a bearded old man living alone in his cabin. Cody and his friends were shocked that somebody could grow that old. Cody, refusing to believe that it is possible, asked the old man his age. The old man said, "My age is the sum of The Programmer and your teacher's ages subtracted by the age of your friend, Peter". Puzzled with this statement, Cody quickly tried to input the ages of The Programmer, his teacher, and his friend, Peter. Help Cody find out the age of the old man.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS