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 class IntClass with integer array as data member. Create a class CharClass with Char array as

data member. Convert CharClass array to IntClass. Overload + operator to add the converted data

member with the existing IntClass data member. Addition should be done based on index of the arrays.

Display the sum values.



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


Write a program to input name, roll number and marks in 5 subjects for n number of students using structure. Write functions to: -

a.   Find total marks and percentage of all n students.

b.   Display details of a student with a given roll number.

c.   Display the details for all the students having percentage in a given 

     range.

d.   Sort the array in ascending order of marks.


Build a Quiz App as shown to you in the class.

Use Struct for this purpose.

1)Each question should print one by one.

2)We can select one option

  -> If the selected option is correct print "correct answer shabash" and add 5 marks to the total marks

  -> If the selected option is wrong then print "Upps Wrong Answer Naliak"

3) At the end of the quiz you should printout Total marks obtained and on the base of those marks tell the candidate if he/she has paased or fail the Test


Suppose you have 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 power of the car. The engine price ranges R500 000 – R2000000 The colour of the car ranges R7000 – R10000 The price based on the power of the car ranges 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: 1. Write the Pseudocode for your program 2. Draw the flowchart for tracing your program steps


3. A florist wants to send coupons to her 420 regular customers based on the number of orders the customer placed during the past year. The amount on the coupon depends on the number of orders according to the following table:

 Number of Orders

  Amount on Coupon

 2 - 6

7 -15

16-30  The number of orders times R14

The number of orders times R10 The number of orders times R11.50

  31 or more

The number of orders times R17

 The user is asked to enter the name of the customer and the number of orders placed. Determine the value of the customer’s coupon and then display the following


message on the screen (in the example the test data name is Carol and the coupon is worth R50).

  


Write a program to define a class Complex that will contain real and imaginary as the data members. Define appropriate constructors and a display functions. Overload the binary + and the * operator to add and multiply two complex numbers respectively.
Write a program to read the contents of a text file and count the number of characters read from the file.
Write a program to define an abstract class person that will contain the essential information like name, age and sex of a person. Now derive two classes student and Employee both from the class person. The class Student will contain the academic information such as roll number; school etc. and the class Employee will contain information such as department and salary. In the main function declare and array of Person pointers that can hold the address of either Student or Employee object. The program will ask the user to enter the details of students/Employees, create dynamic objects of these classes using new operator and store them in the array. The program will then display the contents of these objects.
Write a program to define a class Two dimensional that will represent a point in the plane by its x and y coordinates. The class will contain constructors and member function that can calculate the distance between any two points in the plane. Derive a new class Three dimensional from the class Two dimensional that will add a new member, the z coordinate. Override the function that calculates distance so that kit can calculate the distance between two points in the space.
LATEST TUTORIALS
APPROVED BY CLIENTS