Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

Write a class student with three data members rollno, name and NoOFpresents. It also contains the following member functions

• Input () function to input the values

• Display () to display the values

• CaluculatePercentage () to calculate the percentage of attendance.

• HighestPercentage () to return the highest percentage of the student.

Write a program to that allow user to enter data of five students and number of presents in a month (30 Days). The program should display each student’s data, number of presents and percentage of presents. The program should also display the record of student with highest percentage.



Write a program to manage the book store in which there is a class BOOK with five data members BookID, Title, Author, price and quantity. It also contains the following member functions:

• Input () function is used to input the values of data members.

• Display () function is used to display the values.

• Purchase () function is used to add to numbers of books in quantity.

• Sold () function is used to minus from the number of books from the quantity of book.

Create an object of BOOK. Input the values in data members of object and then display the data of object. In main () function, also use switch statement to prompt the user for choice of operations either to purchase or sell a book. Sold () function must also check the quantity available to sell.



Declare the class Time consisting of data members hours, minutes and seconds. Invoke a null constructor Time() when an object is created, the parameterized constructor Time(hrs, min, sec) to assign values for the data members and show() member function is used to display the time information in format. Finally free the resources of data objects using destructor member function

RUNTIME INPUT

12

59

45

Output should be

12:59:45


Actions takens when you encountered these problems:

1. Electric shock due to jewelry

2. Smelling of burnt parts of computer


Create a class by name Area and initialize the data members. Then, find areas of square [Area(a)], area of rectangle [Area(l, b)], area of triangle [Area(a, b, c)] using constructor overloading. Also define a destructor to destroy the object.

(Initialize the class members using constructors and destroy the objects by using destructor)


Create a class called employee with the following details as variables within it.

1. Name of the employee

2. Age

3. Designation

4. Salary

Get the details of 5 employees and initialize it using Constructor. Release resources using destructor. print the name, designation and salary of employees, Find the highest salaried employee in professor grade and display their details.

(Initialize the class members using constructors and destroy the objects by using destructor)



Let A is an integer array of size 10 and array A can only accept 10 integers. Check any negative number is found and array out of bound if size of array exceeds. If found throw an exception.


Sample input:

15,25,-35,15,36


Output:

Negative Number cannot defined


Develop a C++ programs on BANKING SYSTEM have Customer class with name, address and phone no. Create derived class account class with data members like account number, name, deposit, withdraw amount and type of account. A customer can deposit and withdraw amount in his account. Develop a C++ program to display the details of a customer and the remaining balance amount. [Note: Use virtual function]


Sample Input :

41049

RAM

10000

2000

savings


output

41049

RAM

10000

2000

8000


Design a template function for swapping the int, double and char type values between two variables. Note: Use function overloading.


Develop a C++ program to read the value from user and display the address using wild pointer.


LATEST TUTORIALS
APPROVED BY CLIENTS