V15 - Session #05 - Module 2 - Sequential Programming - Part 3 - Dynamic Initialization
*Session #05: Wed, 29th July 2020, 6.00am to 7.45am*
*Theory:*
- Formula to calculate the roots of Quadratic Equation
- What is a class?
- What is an object?
- Why is class called an object factory?
- How to create an object of a pre-defined class?
- How to create an object of Scanner class?
*Programs done in today’s class:*
- Program to calculate the roots of quadratic equation (both in book and bluej)
- Program to accept two integers and find the sum.
- Program to accept two floating point numbers and find its difference.
*Assignment Programs:*
- Program to accept two integers from user and find the sum, difference, product, quotient and remainder.
Use double data type for the following programs
- Program to accept the side of a square and calculate its area.
- Program to accept the length and breadth of a rectangle and calculate its area.
- Program to accept the radius of a circle and calculate its area.
- Program to accept the base and height of triangle and calculate its area.
- Program to accept the three sides of triangle and calculate its area.
- Program to accept the radius of a sphere and find its volume and surface area.
- Program to accept the temperature in Fahrenheit from the user and convert Fahrenheit to Celsius.
- Program to accept the temperature in Celsius from the user and convert Celsius to Fahrenheit.
- Program to accept angle in degrees from the user and convert angle measured in degrees to radians.
- Program to accept angle in degrees from the user and convert angle measured in radians to degrees.
- Program to accept the coefficients of a quadratic equation and find its roots.
[Do the assignments in a separate note book (Assignment Note Book). And send the pics of the written programs to my WhatsApp 7676012222 before this Sunday]
[After writing the programs in the assignment book, then practice these programs along with programs done in today’s class on BLUEJ]
*Next Class*
Wednesday, 5th August 2020, 6am to 7.45am
_Regards,_
_Saravanan Ganesh_
0 comments