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

>3.2 Toollbooth at a bridge programme

> /*imagine a tollbooth at a bridge. Cars passing by the booth are expected to pay a five-rupee toll. Mostly they do, but sometimes a car goes by without paying. The tollbooth keeps track of the number of cars that have gone by and of the total amount of money collected. Model this tollbooth with […]

read more


Connect with Me

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

Calendar

August 2020
S M T W T F S
« Jun    
 1
2345678
9101112131415
16171819202122
23242526272829
3031