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 program in C++, which demonstrate = operator overloading.


Find the error and complete the following program #include <iostream> #include <vector> std::vector<std::string> getUniqueBrands(const std::vector<std::string>& brand1, const std::vector<std::string>& brand2) { throw std::logic_error("yet to be implemented"); } int main() { std::vector<std::string> brand1 = {"LOUIS_VUITTON", "HERMES", "PRADA"}; std::vector<std::string> brand2 = {"GUCCI", "PRADA", "HERMES"}; std::vector<std::string> result = getUniqueBrands(brand1, brand2); for(auto element : result) { std::cout << element << ' '; // should print GUCCI HERMES LOUIS_VUITTON PRADA } }
Write a C++ programm to create a one-dimensional (integer type) array of size N. Create a Manu-based approach and solve the following. I) Number of occurrences of a given Number in the array. Ii) Remove the duplicate elements in the array. III) Second largest and Second smallest element in the array. IV) Search an element in an array. V) Sorting the array elements in ascending or descending based on user choice.
Write a c program to prompt the user to enter 3 integers namely: temp ,tent ,teep as variables names .The program should compare the integers and display the cube of the smallest.
A rectangle is 4 times as long as it is wide. If the length is increased by 4 inches and the width is decreased by 1 inch, the area will be X_AREA square inches. If X_AREA is entered by the user, create a program that will determine what were the dimensions (length and width) of the original rectangle?

input price & quantity.if net price is greater than 10000 the discount is 10%.if we enter -1 as the price then the code must stop and calculate the net price


Create structure of Student with following data members Name Reg No CGPA Email ID Create array of 30 students in main function and provide following functionalities Initializing Students Inserting new Student Updating particular student record Deletion of particular student Searching of particular student Sorting all student
Write a C++ program to create a class by a name Employee. The Employee class must have the following data members. Employee-id Employee-name Position Department Basic-pay Deductions(car loans, home loans, and any other type of loans ) The Employee class must have the following member functions Accept ()- it is used to get input for all data members Total-salary()- calculates the salary includes HRA 25%, DA 12% and vehicle allowance 15% of basic-pay. This basic-pay will be varied based on different positions. Display ()- Display all data that has been received as an input along with a calculated salary. Salary is calculated by the formula Salary = Basic-pay + HRA + DA + Vehicle allowance - Deductions. Create N number of Employee details with necessary object for this class to run this program efficiently.( Implement the OOPS concept Polymorphism , inharitance, and friend function where it is necessary).

Write a program to overload pre increment and post increment using friend function.


WAP to Create a product class which consist of product no, name, price, quantity and amount. Create 3 functions named getdata() for input from the user, displaydata() to display the details and calculate() to calculate amt = price * quantity. Enter the details for 5 products. Pass the object in the function. Use constructor to initialize the values.



LATEST TUTORIALS
APPROVED BY CLIENTS