jituTechnology

jituTechnology

Write a program to find the maximum of two member variables suing friend function

  /*Write a program to find the maximum of two member variables suing friend function   Programmed by: KiranShrestha Roll No.: 10121 Programmed on: 31st july,2011*/ #include <iostream.h> #include <conio.h> class D { intx,y; public: D(int a, int b) { x= a; y=b; } void display() { max(x,y); } friend void max (int ,int); }; […]

read more

>Write a Program that uses a structure to store the three parts of a phone number separately, call the structure phone

>/* A phone no., such as (212) 767-8900 can be thought of as having three parts: the area code (212), the exchange (767), and the number (8900).Write a Program that uses a structure to store the three parts of a phone number separately, call the structure phone. Create two structure variable of type phone. Initialize […]

read more

>Write a program to calculate the volume converts each dimension from a distance variable to a variable of type float representing feet and fraction of a foot and then multiply the

>/*create a structure called volume that uses three variables of type distance to model the volume of room. Initialize a variable of type volume of room. Initialize a variable of type volume to specify dimensions, then calculate the volume it represents and printout the results. To calculate the volume converts each dimension from a distance […]

read more

>2.1: Write a complete program with definitions of the class Rational with its method defined inside

>/*Write a complete program with definitions of the class Rational with its method defined inside Programmed by: Name: Jitendra Kumar Yadav Roll no.: 10116 Programmed on: 17th july,2011*/ #include <iostream.h> #include <conio.h> class Rational { private: int n; int d; public: void show() { cout << n<<“/”<<d<<endl; } void assign(int a,int b) { n= a; […]

read more

>2.3 Create a class point that represents a three dimensional co-ordinates system

> /* create a class point that represents a three dimensional co-ordinates system. Each object of Point have coordinates, (x,y,z) and methods to assign coordinates to the point objects. Add a method to calculate the distance from origin and to print the point in the form of (x,y,z) Programmed by: Jitendra Kr Yadav Roll: 10116(NCIT-ELX) […]

read more


Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

March 2024
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31