Display Bio-Data on the terminal with the help of C++ program in Turbo C
/* Display Bio-Data on the terminal with the help of C++ code here.. */
#include<iostream.h> ___(Don't Missing Syntax required).
#include<conio.h> ___(Don't Missing Syntax required).
#include<stdio.h> ___(Don't Missing Syntax required).
#include<io.h> ___(Don't Missing Syntax required).
#include<string.h> ___(Don't Missing Syntax required).
class bio
{
private:
int no;
char
*name;
char
*add;
char
*qual;
char
*gen;
float
wgt,hgt;
public:
bio(int
num,char *nm,char *ad,char *qu,char *ge,float w,float h)
{
no=num;
name=nm;
add=ad;
qual=qu;
gen=
ge;
wgt=w;
hgt=h;
}
void
display() ___(Don't Missing Syntax required).
{
cout<<"\n..........My
Biodata........."<<endl; ___(Don't Missing Syntax required).
cout<<"\n
Number:"<<no<<endl;
cout<<"\n
Name :"<<name<<endl;
cout<<"\n
Address :"<<add<<endl;
cout<<"\n
Qualification:"<<qual<<endl;
cout<<"\n
Gender:"<<gen<<endl;
cout<<"\n
Weight:"<<wgt<<endl;
cout<<"\n
Height:"<<hgt<<endl;
cout<<"\n............................."<<endl;
}
};
void main()
{
int nums;
char nm[10]; ___(Don't Missing Syntax required).
char *adds;
char *quals;
char *gens;
float wgt,hgt;
clrscr();
cout<<"\n
Enter Your Detail"<<endl; ___(Don't Missing Syntax required).
cout<<"\n
Enter your number:"; ___(Don't Missing Syntax required).
cin>>nums;
cout<<"\n
Enter your name:"; ___(Don't Missing Syntax required).
cin>>nm;
cout<<"\n
Enter your address:"; ___(Don't Missing Syntax required).
cin>>adds;
cout<<"\n
Enter qualification:";
cin>>quals;
cout<<"\n
Enter your gender:";
cin>>gens;
cout<<"\n
Enter your height:";
cin>>hgt;
cout<<"\n
Enter your weight:";
cin>>wgt;
bio
b(nums,&nm[0],adds,quals,gens,hgt,wgt); ___(Don't Missing Syntax required).
b.display();
getch(); ___(Don't Missing Syntax required).
}
Help: First of all enter your bio-data above program code
and output of your above program through bio-data
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Colour Triangle Program Code in Turbo C++
/* Colour Triangle Program Code Here */
#include<iostream.h> ___(Don't Missing Syntax required).
#include<conio.h> ___(Don't Missing Syntax required).
void main()
{
int i,j,n;
clrscr();
cout<<"Enter
Any Value :"; ___(Don't Missing Syntax required).
cin>>n;
for(i=n;
i>=1; i--)
{
for(j=i;
j>=1; j--)
{
textcolor(j+500);
textbackground(j);
cprintf("*");
}
cout<<endl;
}
getch();
}
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
ASCII Value Program Code in Console Application VB
#ASCII Value Program Code Here..
Module Module1 /* Modile1 is an name of the Console Module */
Public name(20)
As Char
Public i, s As
Integer
Sub Main()
System.Console.Write("Enter Your Name:__")
name =
System.Console.ReadLine()
s =
name.Length - 1
System.Console.WriteLine("Ascii Value:=")
For i = 0
To s
System.Console.WriteLine(name(i) & ":" & Asc(name(i)))
Next
System.Console.Read()
End Sub
End Module
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
EQUATION_EVOLUATION Programming Code in Console Application VB
# Here Programming Code is an EQUATION_EVOLUATION
Module Module1 /*Module1 is an name of module*/
Public a, b, c,
d As Integer
Sub Main()
System.Console.Write("Enter Value of A :") ___(Don't Missing Syntax required)*
a =
System.Console.ReadLine ___(Don't Missing Syntax required)*
System.Console.Write("Enter Value of B :") ___(Don't Missing Syntax required)*
b =
System.Console.ReadLine ___(Don't Missing Syntax required)*
c = (a + a)
- b
d = (b + b)
+ a
System.Console.WriteLine("Value of A :" & a) ___(Don't Missing Syntax required)*
System.Console.WriteLine("Value of b :" & b) ___(Don't Missing Syntax required)*
System.Console.WriteLine("Value of c :" & c) ___(Don't Missing Syntax required)*
System.Console.WriteLine("Value of d :" & d) ___(Don't Missing Syntax required)*
System.Console.Read()
End Sub
End Module
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Odd-Even Programming Code in Console Application Visual Studio
#BELOW PROGRAMMING CODE ODD-EVEN CONSOLE HERE...
Module oddeven /* oddeven is an Module Name */
Dim i As
Integer
Sub Main()
System.Console.Write("Enter Your Number:-") ___(Don't Missing Syntax required)*
i =
System.Console.ReadLine___(Don't Missing Syntax required) *
If (i Mod 2
= 0) Then
System.Console.WriteLine("Even Number") ___(Don't Missing Syntax required)*
Else
System.Console.WriteLine("odd") ___(Don't Missing Syntax required)*
End If
System.Console.Read() ___(Don't Missing Syntax required)*
End Sub
End Module
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Leap Year Programming Code in Console Application on Visual Studio
# Leap Year
Console Programming Code Here...
Module leapyear /* Module Name*/
Sub Main()
Dim
i As Integer
System.Console.Write("Enter your Year")
i =
System.Console.ReadLine()
If
(i Mod 4 = 0) Then
System.Console.Write("Leap year")
Else
System.Console.Write("Not Leap Year")
End
If
System.Console.Read()
End Sub
End Module
Prime Or Not Prime Number Code in Console Application on VB
#CODING HERE...
Module Module1
Sub Main()
Dim i, j,
x, y As Integer
System.Console.WriteLine("Enter No:")
x =
System.Console.ReadLine
j = 1
While (j
<= x)
If (x
Mod j = 0) Then
y =
y + 1
End If
j = j +
1
If (y =
2) Then
System.Console.WriteLine("No Is Prime")
Else
System.Console.WriteLine("No Is Not Prime")
End If
System.Console.Read()
End While
End Sub
End Module
ARMSTRONG number C++ Program Code
include<iostream.h>
include<stdio.h>
include<conio.h>
class test
{
private:
int n,a,b,s;
public:
void getdata()
{
cout<<"\n\n\n -> Enter The Number:- ";
cin>>n;
s=0;
b=n;
}
void putdata()
{
while(n>=1)
{
a=n%10;
s=s+(a*a*a);
n=n/10;
}
// cout<<"\n Your Revers Number Of:- ";
//cout<<s;
if(b==s)
{
cout<<"\n\n This Is Armstrong Number are ";
}
else
{
cout<<"\n\n this Number is not Armstrong Number are ";
}
}
};
void main()
{
clrscr();
test t1,t2,t3;
t1.getdata();
t1.putdata();
t2.getdata();
t2.putdata();
t3.getdata();
t3.putdata();
getch();
}
Thanks & Regards
-Yagnik Gorasiya
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Subscribe to:
Posts
(
Atom
)