Questions: 11 448

Answers by our Experts: 10 707

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 & Filtering

Make a c++ program that will display netpay of employee by inputting the basic pay and overtime pay. It should compute first the gross pay which which is the sum of the input values and the tax which is 10% of the basic pay. The netpay is gross pay minus tax. Use a function for each computation.


Make a c++ program that will print the highest number of the three input number using a function.


Write a program in which inheritance and other oop concepts are used. 


You have to write code in which we will get the output of quiz test. 


Player enter the name and roll no and quiz test will start


You should use fstream and question will be in in .txt file

( The question you copied are as follow

1.WHEN COMPUTER WAS FIRST INVENTIONED?

a.1822

b.1823

c.1834

d.1922

a

2.WHO kILLED PRESEDENT BENOGIR VUTTO?

a.nawaz shrif

b.pervase

c.non of them

d.political leder

c

3.WHO IS THE CAPTAIN OF BANGLADESH CRICKET TREAM?

a.asharaful

b.murtaja

c.rafiq

d.aftab

a

4.WHAT IS OUR NATIONAL GAME?

a.cicket

b.football

c.hadodo

d.badminton

c

5.WHO IS NOW CHIEFJUSTICS IN BANGLADESH?

a.yeaz uddin

b.moin

c.jalil

d.fakhar uddin

d

6.WHO IS THE PRIME MINISTER OF INDIA?

a.sonia gundi

b.rajib gundi

c.autol biharipal

d.pervase

c

7.WHAT IS THE DATE OF SIDDR ORCUS?

a.16th nov

b.17th nov

c.18th nov

d.20th n0v

a

8.WHEN WILL BE THE NEXT WORLD CUP CRICKET?

a.2011

b.2012

c.2009

d.2008

a


)


20 marks


3) Write a C++ program to solve the following problems (Red colour texts are to indicate user inputs that can be changed)

A) Calculate the area of a circle by accepting the radius of the circle from the user (NB: Area of Circle = 2חr)

Out Put

What is the radius of the circle: 10

Area = 62.8

B) Calculate the factorial of any integer number input from the user (NB: 4! = 1 * 2 * 3 * 4 = 24)

    Out Put

    Enter an Integer Number: 4

    4! = 24

C) Waliya Bank is giving 7% interest for customer deposit, write a C++ program which enables customers to predict their total balance if they deposit an amounts and keep it for some time

    Out Put

    Enter your Account Number: 2000342200267

    Enter your Name: Abebe Kebede

    Enter the amount: 1000

    How long to keep it (number of month): 10

Dear Abebe Kebede

Acc: 2000342200267

After 10 Months you will get a total of 700 Birr Interest

Your Balance will be = 1700 Birr

write program to print the area of rectangle by creating class name 'Area' with the method of cumpute area which take the value of it is length and width as parameter and return area of rectangle length and width of rectangle area entered through keyboard


Write a program that would print the information (name, year of joining, salary,address) of three employees by creating a class named 'Employee'. The outputshould be as follows: Name Year of joining Address Robert 1994 64C-


What is the output of each of the following statements? Assume that

x = 5, y = 2, z = 10, and temp = 0

 

 


1. if (y >= x)

      y = z;

   cout<< x << " " << y << " " << z << endl;

 

2. if (y >= x)

   {

      y = z;

      cout<< x << " " << y << " " << z << endl;

   }

 

3. if (z < y)

      temp = x;

      x = z;

   z = temp;

   cout<< x << " " << y << " " << z << endl;

 

 

4. if (z > y)

   {

      temp = x;

      x = z;

      z = temp;

   }

   cout<< x << " " << y << " " << z << endl;

 


5. if (x >= 6)

   cout<< x + y << endl;

   cout<< x + y << endl;

 

 

 

6. if (x + y > z)

      x = y + z;

   else

      x = y - z;

   cout<< x << " " << y << " " << z << endl;


Instructions:


  • Using a do...while() loop, continuously scan for random integers that will be inputted by the user and print out its square, separated in each line.
  • Once the inputted value is 0, it will still print out its square value but should then terminate the loop afterwards. Use this concept in making your loop condition.

Sample Results:


Input


Multiple lines containing an integer.


2

6



Output


Multiple lines containing an integer.


4

36



    I.       z = [a2 + 4ac] ÷ 2


Write a program in c++ to check wether a number is positive, negative or zero


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS