NAVANA LIMITED has imported 50 new TOYOTA COROLLA CROSS.
So, the Managing Director has instructed the concerned department to keep all the information
of these 50 cars for future development and statistics. For that reason, the GM of Sales and
Marketing department has marked out the mandatory information which are Customer_Name,
NID_Number, Purchase_Date, Engine_No, Registration_No. Also, they want some
functionality which are like inserting the information, showing all the sold list of Car and
Changing the ownership of the car. Now develop a solution using C++ to help NAVANA
LIMITED implementing this system following the below instructions.
Create a class called 'Matrix' containing constructor that initializes the number of rows and the
number of columns of a new Matrix object. The Matrix class has the following information:
1 - number of rows of matrix
2 - number of columns of matrix
3 - elements of matrix (You can use 2D vector)
The Matrix class has functions for each of the following:
1 - get the number of rows
2 - get the number of columns
3 - set the elements of the matrix at a given position (i,j)
4 - Adding two matrices.
5 - multiplying the two matrices
You can assume that the dimensions are correct for the multiplication and addition.
An egg distribution company uses different sizes of packings for eggs, that is, 30 eggs packing, 24 eggs packing, 18 eggs packing, 12 eggs packing and 6 eggs packing. Write a program which prompts user to enter total number of eggs (input validation is always must) to be packed and then calculate how many packings of each size will be possible. Also tell if there will be any eggs left to be packed. (10 marks)
1)WAP to print the sum and product of digits of an integer.
2)Create a class Box containing length, breath and height. Include following
methods in it:
a) Decrement, Overload -- operator (both prefix & postfix)
b) Overload operator==(to check equality of two boxes), as a friend function
c) Overload Assignment operator
d) Check if it is a Cube or cuboid Write a program which takes input from the user
for length, breath and height to test the above class.
A quadrilateral is represented by having Dimensions L and B units. Write a program to create two objects. Initialize one using default constructor and other using parameterized Constructor. Find out the perimeter of the quadrilateral and print it
Program to sort array elements in ascending order
As a form of quality control, the Pancake Kitchen has recorded, on a Pancake file, two measurements for each of its pancakes made in a certain month: the thickness in mm (millimetres) and the diameter in cm (centimetres). Each record on the file contains the two measurements for a pancake, thickness followed by diameter. The last record in the file contains values of 99 for each measurement. Design a program that will read the Pancake file, calculate the minimum, the maximum and the average for both dimensions, and print these values on a report.
Write a C++ program that will accept an input for the array size. Store the user input and sort array elements in ascending order.
Develop a C++ program that will compute the values of six trigonometric functions (sine, cosine, tangent, cotangent, secant, and cosecant) at any angle without using cmath/math.h library. (Hint : Transform Maclaurin Series of sine and cosine function into C++ codes)
Delete a word from the given string. Popup a message if the string is empty.