jituTechnology

jituTechnology

Uncategorized

>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

>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

>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

>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

>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


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