Category Archives: C++ Programs With Class and Objects

Design and Use Triangle Class – C++ Program

Task: Design and Use Triangle Class – C++ Program Detail of C++ Program for Design and Use Triangle Class Write a C++ Program to design a class Triangle with two float variables ‘base’ and ‘height’ and three member functions1. void setBase(float b) to set value of base2. void setHeight(float h) to set value of base3.… Read More »

Loading

C++ Program Temperature Conversion Using Class and Objects

Task: Write a C++ Program Temperature Conversion Using Class and Objects Source Code For C++ Program Temperature Conversion Class /* Write a C++ Program to design a class Temperature with two float variables fahren and celsius and a member function ‘conversion’ to convert fahrenheit into celsius */ #include<iostream> using namespace std; // define a class… Read More »

Loading