NotesforMSc
  • Home
  • Computer Science
  • Programming
  • Mathematics
  • Solved Examples
Download PDF
    1. Home
    2. C-Plus-Examples
    3. C++ Program to Write a Bio-data
    • C++ Examples
    • Math
      • Convert Radian to Degree
      • Find Trigonometric Ratios
      • Solve Quadratic Equations
      • Sum of n^2/(n-1) Series
      • Sum of Even and Odd
      • Count Digit
      • Print Number Triangles
      • Factorial without Recursion
      • Print Pascal Triangle
      • Sine and Cosine Series
      • Hamming Distance Function
    • Strings
      • Write a Bio-data
    • Finance
      • Compound Interest
      • Net Present Value (NPV)
    • Data Structures
      • Queue using Arrays
      • Queue Using Pointers
      • Infix To Prefix Expression
      • Infix to Postfix
      • Sum using Linked-List
      • Doubly Linked-List

    C++ Program to Write a Bio-data

    Posted on March 22, 2020 by admin

    Table of Contents

    • Problem Definition
    • Flowchart – C++ program to write a bio-data
    • Program Code – C++ program to write a bio-data
    • Output
    • Do It Your Self Exercise

     

    This is a C++ program to write a bio-data. The program is written in Dev-C++ installed on a Windows 7 64-bit system. You can use any standard C++ compiler to compile and run this program.

    The program is intended for beginners learning C++ programming language. You may change the dummy information displayed with the program. Also, try changing the format of the Biodata as an exercise.

    In this post, we have provided you with a problem definition, a flowchart, program source code and verified output of the program itself. You can do any modification to the program suitable to you.

    Problem Definition

    The program is a simple demonstration of printing output from a C++ program using cout (output stream). If you like to rewrite the program with cin (input stream). It means you can ask for inputs during runtime.

    The program is divided into 4 sections that display Biodata information as follows

    1. Name and contact details
    2. Personal details
    3. Educational details
    4. Work experiences

    Each of the section contains some details which may or may not like to modify, but keep the format simple.

    Flowchart – C++ program to write a bio-data

    The following is the flowchart for the program to write bio-data in C++. Each section represents some details about the candidate and it is printed to the console, when the program executes.

    Figure 1 - Flowchart for Program to write Biodata
    Figure 1 – Flowchart for Program to write Biodata

    Program Code – C++ program to write a bio-data

    //A simple C program that output biodata of an imaginary person
    #include "ostream.h"
    #include "stdio.h"
    
    int main()
    {
    cout << "\t\t\t\t" << "BIODATA" << endl;
    
    for(int i = 0;i << 70;i++)
    cout << "_";cout << endl; cout << endl;
    
    cout << "Mr.Miyagi" << endl;
    cout << "[email protected]" << endl;
    cout << "mob: 983234535" << endl;
    cout << "Twitter:[email protected]" << endl;
    
    for( int i = 0;i < 70;i++)
    cout << "_";cout << endl;
    
    //Personal Details
    
    cout << endl;
    cout << "PERSONAL DETAILS" << endl;
    cout << endl;
    cout << "Full Address :"<< "\t\t"<< "101,4R,Okinawa,Japan"<< endl;
    cout << "Age :"<< "\t\t"<< "28 Year"<< endl;
    cout << "Passport No :"<< "\t\t"<< "AK56453332MZED" << endl; cout << endl;
    
    cout << "EDUCATIONAL DETAILS" << endl;
    cout << endl;
    cout << "Graduation :"<<"\t\t"<< "70% Marks," << " " << "Year 2006"<< endl;
    cout << "Grad Major :"<<"\t\t"<<"Computer Science"<< endl;
    cout << "Other Qual :"<<"\t\t"<< "MS EXCEL,MATLAB Certified"<< endl; cout << endl;
    
    cout << "WORK EXPERIENCE" << endl;
    cout << endl;
    cout << "Comptech Inc :" << "\t\t"<<"2007 May - 2010 August"<< endl;
    cout << "Designation :"<<"\t\t"<<"Junior Programmer"<< endl;
    
    for( int i = 0;i << 70;i++)
    cout << "_"; cout << endl;
    
    system("PAUSE");
    return 0;
    }

    Output

    The output of the program is given in the following figure.

    When the program begins it will prints all the details that you input within the program, to the console. You can change the format of the bio-data by making necessary changes to the program.

    You can have a Facebook ID, instead of X.com ID. Or you may want to change the mobile number to a landline number.

    ____________________________________________________________________
                             BIODATA
    ____________________________________________________________________
    Mr.Miyagi
    [email protected]
    mob: 983234535
    X: [email protected]
    ____________________________________________________________________
    PERSONAL DETAILS
    
    Full Address  :            101, 4R, Okinawa, Japan
    Age           :            28 Year
    Passport No   :            AK56453332MZED
    
    EDUCATIONAL DETAILS
    
    Graduation    :            70% Marks, Year 2006
    Grad Major    :            Computer Science
    Other Qual    :            MX EXCEL, MATLAB Certified
    
    WORK EXPERIENCE
    
    Comptech Inc  :            2007 May - 2010 August
    Designation   :            Junior Programmer
    ___________________________________________________________________

    Do It Your Self Exercise

    Now that you know how this program works.

    Change the program code to make a Biodata dynamically. It means the program should accept all input details in runtime and output the results.

    « PreviousNext »
    Advertisements
    ©2025 NotesforMSc-All Rights Reserved.
    • About
    • Contact Us
    • No Refund Policy
    • Cookie Policy
    • Privacy Policy
    • Terms and Conditions