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

Create a generic function max that gives the maximum value of three generic type arguments that are passed to it. Then test this function by calling it with char, int, and float type.


write a c++ program that calls for n values from a user and return the greatest among them


how to add a behaviour to modify details and display them in c++


Suppose you work for an employer that sells vehicles and your employer instructs you to
design a program using the C++ language to determine the car that corresponds to the price
that your program calculated. The price of the car is determined by adding three(3) prices:
which are engine price, colour price and the price based on the colour of the car.
The engine price ranges between R500 000 – R2000000-00
The colour of the car ranges between R7000 – R10000
The price based on the power of the car ranges between R300 000 – R600 000
 If the sum of the three(3) prices is between R700 000 – R1000000, the program must
display that the car is in the range of a VW Golf 8 GTI
 If the sum of the three(3) prices is between R1100000-1800000, the program must
display that the car is in the range of a Mercedes Benz GLC63s
 If the sum of the three(3) prices is between R1900 000 – R2500000, the program
must display that the car is in a range of a BMW M8 challenger
D. DRAW A Flowchart for the program
Write a class local phone that contains an attribute phone to store a local phone number. The class contains member functions to input and display phone number. Write a child class NatPhone for national phone numbers that inherits localPhone class .It additionally contains an attribute to store city code .. It also contains member function to input and show the city code. Write another class IntPhone for international phone numbers that inherits' Natphone class\.It additionally contains an attribute to store country code. It also contains member functions to input and show the country code. [01]
Write c++ Program using files for employees

Justify the following statement with the help of a suitable example: “In a class hierarchy of several levels of several levels, if we want a function at any level to be called through a base class pointer then the function must be declared as virtual in the base class”.


Create a generic function max that gives the maximum value of three generic type arguments that are passed to it. Then test this function by calling it with char, int, and float type. (Please provide executeable code in C++).


Write a program to find the number of registered students in each semester for BIT and IT students, implemented as an array of students records. The student record has the following fields -nine digit student number, -student name, -student surname, -program registered for, -semester registered for. Assume that the above data is read from a line of a text file -"STDTA.txt". Your program should display the above information with the total number of students registered for BIT, the total number of students registered for IT, and it should also display the count of students in each semester for both BIT and IT.


Write a program to find owing students in each semester for BIT and IT, implemented as an array of students records. The student record has the following fields: -nine digits student ID number, -student name, -student surname, - program registered for, -semester registered for. Assume that the above data is read from a line of a text file - "STDTA.txt". Your program should display the information of all students BIT and IT who have paid less than £1900.00, the total owed by the students, and it should also display the count of owing student in each program (BIT and IT)



LATEST TUTORIALS
APPROVED BY CLIENTS