Create an 'Employee' class with emp_id, emp_name and emp_gender as data members - member function to input the details of employee - member function to output the details of employee. Write a main function to create objects of Employee class. Take the input of 3 different employee from the user and display the details on the console output screen.
You have taken a job with a software user who has contracted your previous employer to develop the system for them. You discover that your company's interpretation of the requirement is different from the interpretation taken by your previous employer. Discuss what you should do such situation. You know that the cost to your current employer will increase if the ambiguities are not resolved. You have also a responsibility of confidentiality to your previous employer.
Write the pseudocode for an application that will:
a) Prompt a user for three numbers.
b) Store the values entered by a user in an array as they are provided by the user.
c) Ask a user if they would like to search for a value:
If the user wishes to search for a value, the user needs to be prompted for a value to search for. If the value is found, a notification needs to be provided to the user.
d) Use a for loop to cycle through the arrays to calculate and display the total of the values stored in the array
2. Create a function that has 5 parameters. This function will calculate the average grade of 5 subjects.
The 5 grades on each subject should be 1 line of user input.
sample output:
Enter 5 Grades: 70 72 73 74 60
Your average grade is 69.8 and you are failed.
Activity:
1. FizzBuzz
Create a program that will display numbers 1-31. When the number Is divisible by 3, it will print Fizz besides
the number. But when the number is divisible by 5, it will print buzz besides the number. But if the number is
divisible by 3 and 5, it will print FizzBuzz besides the number.
Sample output:
1
2
3fizz
4
5buzz
6fizz
7
8
9fizz
10buzz
11
12fizz
13
14
15fizzbuzz
16
17
18fizz
19
20buzz
21fizz
22
23
24fizz
25buzz
26
27fizz
28
29
30fizzbuzz
Find value in c++
a) 5 + 2/3
Find value in c++
a) 12 % 27
Find value in c++
Expression
a) 12 % 27
b) 27 + 4 / 3
Implement a class MeraSet, which abstracts a mathematical Set of integral numbers. Maximum members can be 100. Implement following Member functions:
int Insert(int e) ; // adds value e to the set and returns 1, if the value already exists or the set has already 100 members, then it does not add and return -1.
int Size(); // return size of the set
int Remove(int e); // removes e from Set, and return 1. If e is not member of set, returns -1.
void Print(); // prints the members of the set in set notation e.g. Set = {1,2,3,8,-3 }
operator + ; // returns union of two sets
operator -; // returns difference set of two sets i.e. A-B
Make private member variables and more functions as you like.
Implement MeraSet3 class similar to last assignment. Make it unlimited, ie. use new and delete to extend or contract memory size of underlying array as required. Initially make it size 1, and grow it to two when you have the first insert, and so on. Similarly reduce size by 1 when a member element is removed.
Explain with an example why constructor is important.