[SOLVED]  CSE1202 Assignment1

30.00 $

Category:

Description

5/5 - (1 vote)

 

  1. Write a C++ program that can solve the following equation:

𝑍 = 2𝑥10 + 3𝑦8 − 31

  1. Write a C++ program to display the following output using any loop: 1

22

333

4444

55555

  1. A cricket team has the following table of batting figures for a series of ODI matches:
Player Name Runs Innings Time not out
Shakib Al Hasan 6062 200 20
Tamim Iqbal 5689 167 10
Mushfiqur Rahim 5521 171 15

Write a C++ program to read the following figures set out in the above form, to calculate the batting averages and to display the complete table including the batting averages.

  1. Write a C++ function that can solve a particular problem using function overloading. (NB: You can use Problem no. 3)
  2. Define a class that represents a bank account. Include the following members:

Member Data:

  1. i) Name of the depositor ii) Account number iii) Type of account iv) Balance amount in the account Member Function:
  2. i) To assign initial values (name, account no., type of acc., balance) ii) To calculate total amount after a certain number of years (use the compound interest formula to calculate the final amount) iii) Display account holder name and total amount
  3. Write a C++ program that can initiate private member data using constructor function.
  4. Write a C++ program to call a constructor function both implicitly and explicitly.
  5. Write a C++ program to solve a particular problem using single/ multiple/ multilevel/ hierarchical.

(NB: You can use same problem in different types of inheritances)

 

  1. Write a C++ program that can convert temperature in Celsius into Fahrenheit.
  2. Write a C++ program that uses objects as function arguments.
  3. Write a C++ program that can take and display all the employees’ names and ages in a company. Use array of objects to access individual employee.
  4. Write a C++ program to solve the following equation:

𝐴 = 1 + (1/2)2 + (1/3)3 + (1/4)4 + … + (1/𝑛)𝑛

  1. Write a C++ program that can take the input from users and calculate the “AREA” of the corresponding shape from the table below:
Shape Input
Trapezium T
Circle C
Square S
Rhombus R