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

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


1 a) Describe atleast eight (8) elements of Commerce. [8 marks]

b) Give two alternative definitions of e-Commerce. [4 marks]
c) Briefly discuss the following forces behind E-Commerce: [8 marks]
Q 2 a) The CPU is considered as the brain of the computer. Briefly discuss what this
statement entails. [ 4 marks]
b) State and briefly discuss four (4) common features of spreadsheet programs
such as Microsoft Excel. [8 marks]
c) State and discuss four (4) primary tasks of most Database Management Systems
(DBMS) packages. [8 marks]
Q 3 a) Briefly state and discuss four (4) ways in which a business or an organisation could
be structured (departmentalisation). [4 marks]
b) Briefly state and discuss four (4) of the five functional areas in which most IT
departments are organized. [8 marks]
c) One of the ways to categorize security controls is taxonomy based on what the control
does (verb). State and briefly discuss four (4) out of the five common categories for this taxanomy (8marks)
LATEST TUTORIALS
APPROVED BY CLIENTS