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

>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.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 to find the volume of 3 objects; namely cube, cylinder and rectangular box using the same function name, volume().

>/* Write a program to find the volume of 3 objects; namely cube, cylinder and rectangular box using the same function name, volume(). programmed by: Name: Jitendra Kr Yadav Roll: 10116(NCIT-ELX) date: July 12, 2011 */ #include <iostream.h> #include <conio.h> inlineint volume(int a) {      return(a*a*a); } inline float volume(int a, int b) {      […]

read more


Connect with Me

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

Calendar

April 2024
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930