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

How to convert basic data to user


defined data type? Explain

Explain how overloading a unary operator is almost similar to overloading a binary operator with necessary examples and include main() function to demonstrate. Mention the differences between these two in terms of number of operands they deal with.

Explain how overloading a unary operator is almost similar to overloading a binary operator with necessary examples and include main() function to demonstrate. Mention the differences between these two in terms of number of operands they deal with.

write a program to add three find factorial using class


Write a program to overload operators in the same program by writing suitable operator friend functions for following expression:



O7=((O1>=O2) +(O3 && O4) *(O5<O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class “overloading”, and this class is having one integer data member]

Write a program to perform class to basic conversion [Such as: Class is: Triangle with data members base and height(float), and basic type is float(area of triangle)].

 Write a program to take input for n book records from user and write those book records in a file named: ”record”, whose price is less than INR 500 . Program should also perform random access in the file, after taking input for a particular record number to read and it should also perform random record overwriting after taking input of new record and the record number to overwrite. After overwriting record, display all records on the screen [Attributes of book: Book_id, Book_price, Book_name, Book_author_name]


Suppose you are given a Customer’s list registered as executive members in a storeand you are required to implement an array-based Customerlist. Each Customerin the list hasname, customerID, Contactand membership Category (category can be regular and VIP). Implement different functionsfor entering the data (likeconstructor (for setting to default values),setName, setId, etc.). You also need to implement the following function related to the array.insertCustomer(): It has 2 options•Asking the user for indexand then insert the Customerat that indexAND•Asking the user for the ID of the customerwhere the new Customeris to be added (New Customershould be added at the index of the CustomerwhoseIDis entered)oIf the list is full,it should create a larger list (new size should be entered by the user), copy all the data in it and make insertion as instructedoInsertion will only be made if the IDof the new Customerdoesn’t exist in the listdeleteCustomer()


 Create an Address class, which contains street#, house#, city and code (all of type char*).

Create another class Person that contains an address of type Address. Give appropriate get

and set functions for both classes. Test class person in main.


Create a counter class, overload ++ operator for counter post and pre increment, use the

object of counter class as a loop counter for printing a table in main function.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS