Search

Tag

Programming C

My Presentation At BMIIT https://www.youtube.com/channel/UC49tNGU-eeK1Iiy0uU6busA

http://www.youtube.com/watch?v=uU1xX5tUT6Q

Consider problem statement given in 2.2, implement initializing data member considering default basic salary 5000 rs.

AIM:-Consider problem statement given , implement initializing data member considering default basic salary 5000 rs. Input:-   #include<iostream> #include<string.h> using namespace std; class func {     char ch;     int sub1,sub2,sub3,sub4,sub5,i;      public:         ... Continue Reading →

Consider problem statement given in 2.3, perform following functionalities: a. Initialize X and Y with default value 0. b. Addition of two point is addition of its member X and Y respectively. Provide addPoints function to implement this. i,e, P1=(2, 5), P2=(4, 1), result point (2+4, 5+1)=(6, 6) c. The point which is far from the origin is considered as max point. Implement function which will return point object from given two points. (note: implement using return by reference)

AIM:-Consider problem statement given in 2.3, perform following functionalities: a. Initialize X and Y with default value 0. b. Addition of two point is addition of its member X and Y respectively. Provide addPoints function to implement this. i,e, P1=(2,... Continue Reading →

Write Program For Time class Using Programming c++.

AIM:-   Write Program For Time class Using Programming c++.   Iinput:-   #include<iostream> #include<string.h> using namespace std; class dhaval { int h=0,m=0,s=0,n_h,n_m,n_s,i,j,k; char am_pm[2]; public: void accept() { cout<<"enter 12 or 24:"; cin>>i; } void calculate() { if(i==12) {... Continue Reading →

Generally a bank account contains data member as account number, name of customer, type of account and amount. Design a class to model the bank account. Write a menu driven program to perform basic operations on bank account like deposit, withdraw, display balance, display with full details

AIM:-Generally a bank account contains data member as account number, name of customer,               type of account and amount. Design a class to model the bank account. Write a menu        ... Continue Reading →

A point on the two dimensional plane can be represented by two numbers: an X coordinate and a Y coordinate. The distance of the point from the origin can be calculated using Pythagorean Theorem. Write a program that uses a class called point to model a point. Allow user to perform following task on point: a. Set X coordinate

AIM:-  A point on the two dimensional plane can be represented by two numbers: an X coordinate and a Y coordinate. The distance of the point from the origin can be calculated using Pythagorean Theorem. Write a program that uses... Continue Reading →

Write a program to model employee class with appropriate data members and member functions, and allow user to initialize data, calculate salary, and display basic detail of employee and display pay sleep.

AIM:-Write a program to model employee class with appropriate data members and member               functions, and allow user to initialize data, calculate salary, and display basic detail of            ... Continue Reading →

Write a program to model student class which contains Enrollment number, Name of student, Course, Semester, Marks of subject FOP, DBMS, CFO, Maths and PC

AIM:-Write a program to model student class which contains Enrollment number, Name of                     student, Course, Semester, Marks of subject FOP, DBMS, CFO, Maths and PC. Input:-   #include<iostream> #include<string.h> using namespace... Continue Reading →

Write a program to convert input string into PigLatin string

AIM:-Write a program to convert input string into PigLatin string. Input:- #include<stdio.h> int fu(); int main() {     char ch[150];               printf("enter string=");     gets(ch);          fu(ch);     return... Continue Reading →

A WordPress.com Website.

Up ↑