Friday, November 10, 2017

Code Review: Diabetic Diagnosis System

Compiler or Tool: Turbo C

Programming Language: C++

User Interface Type: CUI [Character User Interface]

Description:

This Diabetic Diagnosis System is nothing but automating diagnosis process of diabetic patient. Even though the system is very small it teaches how to code simple system of RAM type [i.e., not file handling support system] in C++ language.

The system contains one class, diabetic class with following properties:

clip_image001

The main() function presents main menu and becomes single point entry and exit code. The main() function call graph is as follows:

clip_image002

The menu presented by this main() function is as follows:

clip_image004

The system is good example for how to generate a good idea/code with already existing process. It uses one class and two functions. It is open for adding more features and facilities within it.

Total code lines for this system are 438 lines [approximately]. It is a most suitably called as mini project in C++ language.

If you want to write or construct or program C++ mini-project and do not know how or from where to start buy this simple e-book: Code Review of 26 C++ mini-projects.

Note: For other details send request e-mail to mailforprojects@rediffmail.com. Add your comments in below available comment box.

 

Note: Click these label/tags to view all related posts. Tags: C++MiniProject

 

…till next post, bye-bye & take care.

Thursday, November 9, 2017

C++ Code Review: calculates sum of series of type 1 -4 7 -10 ... -40

Description: This program calculates sum of series of type 1 -4 7 -10 ... -40.

Code:

//Compiling Tool: Code::Block IDE with MinGW

//Program calculates sum of series of type 1 -4 7 -10 ... -40.

 

#include<iostream>

#include<conio.h> //for getch()

 

using namespace std;

 

int main()

{

 

    int i,a=-1,b,n;

 

    cout<<"Series Type:1 -4 7 -10 ... -40"<<endl;

    cout<<"Enter the range value of n:";

    cin>>n;

 

    for(i=1;i<=n;i+=3)

    {

        a*=-1;

        b=i;

        b*=a;

        cout<<b<<" ";

    }

 

    getch();

}     

 

Output:

 clip_image002

If you want to write or construct or program C++ mini-project and do not know how or from where to start buy this simple e-book: Code Review of 26 C++ mini-projects. For book sample click this link.

Add your comments in below available comment box.

Note: Click these label/tags to view all related posts. Tags: C++Code

 

…till next post, bye-bye & take care.

Tuesday, November 7, 2017

C++ Code Review: calculates sum of series of type 1 2 4 8 16 32 64 128...2^n

Description: This program calculates sum of series of type 1 2 4 8 16 32 64 128...2^n.

Code:

//Compiling Tool: Code::Block IDE with MinGW

//Program calculates sum of series of type 1 2 4 8 16 32 64 128...2^n.

 

#include<iostream>

#include<conio.h> //for getch()

#include<math.h> // for pow()

 

using namespace std;

 

int main()

{

 

    int n,i;

 

    cout<<"Series Type:1 2 4 8 16 32 64 128...2^n"<<endl;

    cout<<"Enter the value of n:";

    cin>>n;

 

    for(i=1; i<=n; i*=2)

    {

       cout << i << " ";

    }

 

    getch();

}    

 

Output:

clip_image002

If you want to write or construct or program C++ mini-project and do not know how or from where to start buy this simple e-book: Code Review of 26 C++ mini-projects. For book sample click this link.

Add your comments in below available comment box.

Note: Click these label/tags to view all related posts. Tags: C++Code

 

…till next post, bye-bye & take care.