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).