Create a class which stores employee name,id and salary Derive two classes from ‘Employee’ class: ‘Regular’ and ‘Part-Time’. The ‘Regular’ class stores DA, HRA and basic salary. The ‘Part-Time’ class stores the number of hours and pay per hour. Calculate the salary of a regular employee and a par-time employee, using virtual function
If james monet consistently save 50 pesos in a day,how much will.he save in a year?
Recheck this code and show the correct code
int countEvent(int a[], int size)
{
int x= 0;
for (int i = 0; i < n; i++)
{
if (a[i] % 2 == 0 ){
}
}
return(x);
}
1. Write down a node structure for this case:
A teacher wants to manage each student’s master list with a computer
program. A list structure holds the following data; studID, studName,
Course, and Yr_level.
2. Create a program that will accept elements from the user, based on the created
node structure above. The number of elements depends on the no. of items
given by the user. Be able to display all the elements.
Write a C++ data structure program to perform following
operations on Array using switch case.
(Note: Make class
Use Switch case for menu
Create single dimension array dynamically)
1) Linear Search in Double Dimension Array
2) Check whether Double Dimension Array is Sparse Matrix or NOT
write a simple program in c++ to calculate the salary of an employee where by the basic salary will be entered by the user and other allowance as constant.
The following are the other allowance
1. dressing allowance 30% of basic
2. Fuel allowance 20% of basic
3. Maintenance allowance 30% of basic
4. SSNIT allowance 10% of basic
5. Rent allowance 40% of basic
Calculate your gross salary
Write a program to create a dynamic array of user defined size. Size should be in the range of 0 to 15. Write a function FindLarge that should ask user to enter a non-negative number. Function should find the next largest number than the input number in the list.
Write a program to create a dynamic array of user defined size. Array should be of character type. Write a function ChangeCase() that should convert all the small alphabets to capital and vice versa. All array operations should be done using pointers
Create a dynamic array of user defined size. Now take input in array from user. Take a new (integer) value from user and search that how many times the entered number is present in the array.