C++ Answers

Questions answered by Experts: 9 913

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

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


You are required to develop a simple result sheet generator for an Advanced level class. Assume that class consists of 30 students and each student follows a subject. Implement your result sheet generator as a menu driven C++ application. Your program should read 30 students marks from the keyboard and print mark, grade sheet and summary sheet as per the details given below. i. Draw a top-level design diagram for the above problem. ii. Write a method named ‘main_menu ()’ to display the following menu items ----------------------- Result Sheet Generator ----------------------- [1] Add New Student Marks [2] Print Mark Sheet [3] Print Grade Sheet [4] Print Summary Sheet [5] Exit iii. Use an array to store all marks of the 30 students. iv. Write a method to add_new_marks () to add marks for the 30 students. v. Validate your input range from 0- 100 marks.

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.


LATEST TUTORIALS
APPROVED BY CLIENTS