You are given n number of different numbers. Write the pseudo code to identify the number
whose value is in between the other numbers.
Example:
Lets suppose input numbers are:2,13,5
Output:5
write the pseudo-code, flowcharts and code of program in which You have to take the temperature in Celsius from the user and convert it to Fahrenheit.
If the converted temperature is odd, print the temperature in Fahrenheit. If the converted temperature is
even, covert the Fahrenheit temperature to Kelvin and display it on the screen
A program uses a char variable named department and two double variables named salary and raise. The department variable contains one of the following letters (entered in either uppercase or lowercase): A, B, or C. Employees in departments A and B are receiving a 2% raise. Employees in department C are receiving a 1.5% raise. Write the C++ code to calculate and display the appropriate raise amount. Display the raise amount in fixed-point notation with two decimal places.
Q1. Consider the code given below.
How many times the following are invoked:
I) Default constructor
II) Parameterized constructor
III) Copy constructor
IV) Destructor
class test
{ int a;
public:
test(){a=0;}
test(int x) {a=x;}
test(const test &T){a=T.a;}
~test(){ }
test add(test X)
{ test T;
T.a=a+X.a;
return 0;
}
};
int main()
{ test t1(5),t2(10),t3;
t3=t1.add(t2);
return 0;
}
[Assume all the header files and namespaces included.]
Write a program that will output the square root of any number entered through the keyboard, until the inputted number, is zero.
Create a class called ‘Student’ holding the basic information about the student including the roll.no and name.
Derive a class called ‘Academics’ from the student with the protected members for accessing three different subject marks.
Derive another class from Student called ‘Extracurricular’ with the sports mark.
Now compute the result marks(average of academics + sports marks) creating a class result inheriting academics and extracurricular
All the banks operating in India are controlled by RBI. RBI has set a well defined guideline (e.g. minimum interest rate, minimum balance allowed, maximum withdrawal limit etc) which all banks must follow. For example, suppose RBI has set minimum interest rate applicable to a saving bank account to be 4% annually; however, banks are free to use 4% interest rate or to set any rates above it.
Write a java program to implement bank functionality in the above scenario. Note: Create few classes namely Customer, Account, RBI (Base Class) and few derived classes (SBI, ICICI, PNB etc). Assume and implement required member variables and functions in each class.
All the banks operating in India are controlled by RBI. RBI has set a well defined guideline (e.g. minimum interest rate, minimum balance allowed, maximum withdrawal limit etc) which all banks must follow. For example, suppose RBI has set minimum interest rate applicable to a saving bank account to be 4% annually; however, banks are free to use 4% interest rate or to set any rates above it.
Write a program to implement bank functionality in the above scenario. Note: Create few classes namely Customer, Account, RBI (Base Class) and few derived classes (SBI, ICICI, PNB etc). Assume and implement required member variables and functions in each class.
Write a pseudo code for a program which will accept two numbers from the keyboard and calculate the sum and product displaying the answer on the monitor screen