A company wants you to write a C++ program to maintain the contact details of its employees. Employee has a name, email, phone number, education, address, office phone extension, room number. The number of employees in the company are 21 but the program should be scalable to handle more employees. The company admin will use this system and he should be able to add, update, delete, search, print individual employee record and to print list of all employees.
Your task is to tell me that how would you do that, by using algorithm (psedocode or flow chart).
Write a C++ Program that:
· Declares a 3x3 array.
· Input complete array from user.
· Print it’s diagonal.
What are the output of the program given below?
Program 1
#include <iostream>
using namespace std;
int main(){
int width = 10;
int height = 15;
double wide;
cout<<"PROGRAMME TO CALCULATE WIDE FOR TRIANGLE\n";
cout<<"##############################\n";
wide=0.5*height*width;
cout<<"\nWIDE: "<<wide<<"\n";
cout<<"\n##############################################\n";
return 0;
}
Program 2
#include <iostream>
using namespace std;
int main()
{
int x = 180, y = 200;
y = ++x;
cout << " x : " << x << endl << " y : " << y << endl;
}
Try to write pseudocode and create a flowchart for a program that calculates the average of three grades and prints the average.
The word GOOD should be printed only if the average is more than 80.
Write a programme to demonstrate Hybrid Inheritance with some real examples. Also mention the possible ways of removing ambiguity in this Inheritance.
What is the application of Function overloading and Function Overriding? How do we achieve this? Write programme to demonstrate the use of both features.
There is an Admission class that assigns the admission id and registration number to the Student. The student’s general information i.e. name, email, and contact number is initialized through another class. The student's result is controlled by another class that returns the student's cgpa based on his/her score in all tgpa’s.
Create 5 objects of students, input and display their name, registration number, section, cgpa using any possible type of Inheritance.
A palindrome is a string that reads the same forwards as backwards. Using
only a fixed number of stacks and queues, the stack and queue ADT functions, and a fixed
number of int and char variables, write a code to determine if a string is a palindrome. Assume that the string is read from standard input one character at a time. The code should output true or false as appropriate.
A palindrome is a string that reads the same forwards as backwards. Using
only a fixed number of stacks and queues, the stack and queue ADT functions, and a fixed
number of int and char variables, write a code to determine if a string is a palindrome. Assume that the string is read from standard input one character at a time. The code should output true or false as appropriate.
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.