jituTechnology

jituTechnology

>Write a program to find the area of cube, cylinder and rectangle using the concept of function overloading

>/* Write a program to find the area of cube, cylinder and rectangle using the concept of function overloading Programmed by: Name: Jitendra Kr Yadav Roll: 10116 (NCIT-ELX) Date: 12 july 2011 */ #include <iostream.h> #include <conio.h> inlineint area(int a) { return(6*a*a); } inline float area(float a, float b) { return(3.14*a*(a+b)); } inlineint area(int a, […]

read more

>4.1 Write a program to swap the private data of two classes using friend function.

> /*Write a program to swap the private data of two classes using friend function. Programmed by: KiranShrestha Roll No.: 10121 Programmed on: 31st July, 2011*/ #include <iostream.h> #include <conio.h> class b; class a { int x; public: void assign(int t) { x =t; } void display() { cout<<“value of x is: “<<x<<endl; } friend […]

read more

>2.4 Design a class called Person that contains appropriate members for storing name, age, gender and telephone number

> /*Design a class called Person that contains appropriate members for storing name, age, gender and telephone number. Write member functions that can read and display these data. Programmed by: Name: Jitendra Kr Yadav Roll: 10116(NCIT-ELX) Date:20 july,2011*/                                                                                                           #include<iostream.h> #include<conio.h> #include<math.h> class Person { private: char name[30]; int age; char gender[7]; char phno[11]; public: […]

read more

>Write a Program using structure to create a database for a hospital giving details about the patient admitted.

>/*Write a Program using structure to create a database for a hospital giving details about the patient admitted. Programmed By: Name: Jitendra Kr Yadav Roll: 10116(NCIT-ELX) Date: 15 July 2011 */ #include <iostream.h> #include <conio.h> struct patient { char name[30]; int age; intbn; charnoi[30]; char gender[30]; intwn; struct dob { int day; int month; int […]

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

September 2019
S M T W T F S
« Jun    
1234567
891011121314
15161718192021
22232425262728
2930