jituTechnology

jituTechnology

Uncategorized

>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

>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 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

May 2026
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31