Create a 2D array of size m x n where m is the number of employees working and n is the
number of weekdays (mon – fri). Populate the array with the hours the employees have worked
for 1 week (random values between 5 and 10).
ch -='A'-'a ' ;meaning in c++
Create a program in C++ that will declare two classes. The "Student" class will inherit the class "Person". Below are the following attributes of each class.
Class name: Person
Attribute: Age is in datatype integer
Class name: Student
Attribute: Department is in datatype string
Value of variable Age is 25. Value of variable Department is IT_Department
Differentiate between compiler and linker?
Write a Program that generates the following output:
10
20
19
Use an Integer constant for the 10, an arithmetic assignment operator to generate
the 20, and a decrement operator to generate the 19.
Q#4: Write a program that generates the Following table:
1990 135
1991 7290
1992 11300
1993 16200
Use a Single cout statement for all output.
Create an abstract class MathSymbol may provide a pure virtual function doOperation(), and create two more classes Plus and Minus implement doOperation() to provide concrete implementations of addition in Plus class and subtraction in Minus class.
Given a set of 'n' elements and 'r', write a generic function (Numbers and characters) to right shift the set of elements by 'r' position . If the elements are moved to the position that is greater than ‘n’ then wrap the shift process to the beginning of the collection.
For example, if the set of five elements are 1,7,8,9,12 and value of 'r' is 3 then the set of elements would be 8, 9, 12, 1, 7.
Create a class named TIME that has hours, minutes, and seconds, data members, as integers. The class has gettime () to get the specified value in the object, showtime () to display the time object in hh:mm:ss format. Write a main () function to create two-time objects. get the value in two objects and display all time objects.
Write a C++ program that takes a 2D pointer array and calculates the sum of even and odd using
pointer notation of the array.