Sunday, November 1, 2020

Menu Program in C++

 A simple program that I wrote to demonstrate how to create a menu program using C++ programming.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com


Program Listing


// Created By: Mr. Jake Rodriguez Pomperada, MAED-IT, MIT

// Date    : October 31, 2020 Saturday

// Tool    : C++

// Email   : jakerpomperada@gmail.com

// Website : www.jakerpomperada.com

// Place   : Bacolod City, Negros Occidental


#include <iostream>


using namespace std;



void  menu()

{

    char choice;

    do {

   

        system("cls");

        cout << "\n\t\t\tMenu Program in C++";

        cout << "\n\n\t Created By: Mr. Jake R. Pomperada,MAED-IT,MIT";

        cout << "\n\n";

        cout << "\n\t\t\t [1] Add Record ";

        cout << "\n\t\t\t [2] Edit Record ";

        cout << "\n\t\t\t [3] Delete Record ";

        cout << "\n\t\t\t [4] View Record ";

        cout << "\n";

cout << "\n\t\t\t [5] Quit Program ";

        cout << "\n\n";

        cout << "\n\t\t Enter Your Choice :=> ";

        cin >> choice;

        if (choice == '1') {

            cout << "\n\n You select Add";

            cout << "\n\n";

            system("pause");

            menu();

        }

        else if (choice == '2') {

            cout << "\n\n You select Edit";

            cout << "\n\n";

            system("pause");

            menu();

        }

    else if (choice == '3') {

            cout << "\n\n You select Delete";

            cout << "\n\n";

            system("pause");

            menu();

        }

        else if (choice == '4') {

            cout << "\n\n You select View";

            cout << "\n\n";

            system("pause");

            menu();

        }

         else if (choice == '5') {

            cout << "\n\n\tThanks for using this program and return to OS.";

            cout << "\n\n";

break;

        }

     else if (choice != '5') {

         cout << "\n\n\n \t\t\t Invalid Option Try Again...";

         cout << "\n\n";

         system("pause");

    }


 } while (choice != '5');

}


// Main Program

int main()

{

  menu();

}



No comments:

Post a Comment