Monday, November 30, 2020

STUDENT GRADING AND INFORMATION SYSTEM IN C

 A database program that I called Student Grading and Information System in C which uses binay file to add, update, view, and delete the student records.

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 at 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

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.



Program Listing

/* student_system.c 

   Mr. Jake Rodriguez Pomperada,MAED-IT, MIT

   Dev C++

   www.jakerpomperada.com , www.jakerpomperada.blogspot.com

   jakerpomperada@gmail.com

   Bacolod City, Negros Occidental Philippines.

 */

  

#include <stdio.h>

#include <stdlib.h>

#include <conio.h>

#include <ctype.h>

#include <string.h>


main( )

{

FILE  *fp, *ft ;

char  another, choice ;

struct student

{

char  stud_id[200];

char  name[200];

char  course[200];

char  sex;

int   age;

char  address[200];

char  email[200];

char  subject[200];

float prelim,midterm,endterm,final_grade;

} ;


struct student info ;

char student_id[200];

int flag=0;


long int  recsize ;


fp = fopen ( "BIODATA.DAT", "rb+" ) ;


if ( fp == NULL )

{

fp = fopen ( "BIODATA.DAT", "wb+" ) ;


if ( fp == NULL )

{

puts ( "Cannot open file" ) ;

exit(0) ;

}

}


recsize = sizeof ( info ) ;


while (1)

{

        system("CLS");

        printf("\n");

    printf("\n==============================================");

        printf("\n");

        printf("\nSTUDENT GRADING AND INFORMATION SYSTEM IN C ");

        printf("\n");

        printf("\n===============================================");

  printf("\n\n");

printf ( "1. ADD STUDENT RECORDS") ;

printf("\n");

printf ( "2. DISPLAY STUDENT RECORDS" ) ;

printf("\n");

printf ( "3. UPDATE STUDENT RECORDS" ) ;

printf("\n");

printf ( "4. SEARCH STUDENT RECORDS" ) ;

printf("\n");

printf ( "5. DELETE STUDENT RECORDS" ) ;

printf("\n");

printf ( "6. QUIT PROGRAM" ) ;

printf("\n\n");

printf ("SELECT YOUR CHOICE : ") ;

fflush (stdin) ;

choice = getche() ;

switch (choice)

{

case '1' :

fseek (fp, 0 ,SEEK_END) ;

another = 'Y' ;


while ( another == 'Y' )

{

system("cls");

printf("\n\n");

                    printf("=== Add New Student Record in the Database ===");

                    printf("\n\n");

printf("Enter Student ID             : ");

scanf("%s",&info.stud_id);

printf("Enter Student Name           : ");

fflush(stdin);

gets(info.name);

printf("Enter Course                 : ");

fflush(stdin);

gets(info.course);

    printf("Enter Gender M/F             : ") ;

                    info.sex = toupper(getche());

                    printf("\n");

                    printf("Enter Age                    : ") ;

                    scanf("%d",&info.age);

                    printf("Enter Home Address           : ");

                    fflush(stdin);

gets(info.address);

printf("Enter Email Address          : ");

scanf("%s",&info.email);

printf("Enter Subject                  : ");

fflush(stdin);

gets(info.subject);

printf("Enter Prelim Grade           : ");

scanf("%f",&info.prelim);

printf("Enter Midtem Grade           : ");

scanf("%f",&info.midterm);

printf("Enter Endterm Grade           : ");

scanf("%f",&info.endterm);

info.final_grade = (info.prelim * 0.20) + (info.midterm * 0.30) + (info.endterm * 0.50);

printf("\n\n");

                    printf("\nFinal Grade         : %2.0f",info.final_grade);

fwrite ( &info, recsize, 1, fp ) ;

printf("\n\n");

printf ("\nAdd another Record (Y/N) : ") ;

fflush (stdin) ;

another = toupper(getche()) ;

}


break ;


case '2' :

    system("cls");

rewind (fp);

printf("\n\n");

                printf("=== View the Records in the Database ===");

                printf("\n\n");

while ( fread ( &info, recsize, 1, fp ) == 1 )

         {

    printf("\n");

            printf("\n Student ID          : %s",info.stud_id);

        printf("\n Name                : %s",info.name);

    printf("\n Course              : %s",info.course);

    printf("\n Gender              : %c",info.sex);

    printf("\n Age                 : %d",info.age);

    printf("\n Home Address        : %s",info.address);

    printf("\n Email Address       : %s",info.email);

    printf("\n Subject             : %s",info.subject);

    printf("\n Prelim Grade        : %2.0f",info.prelim);

    printf("\n Midterm Grade       : %2.0f",info.midterm);

    printf("\n Endterm Grade       : %2.0f",info.endterm);

    printf("\n");

    info.final_grade = (info.prelim * 0.20) + (info.midterm * 0.30) + (info.endterm * 0.50);

    printf("\n Final Grade         : %2.0f",info.final_grade);

printf("\n\n");

        }

            system("pause");

            break ;


case '3' :

               rewind (fp);


another = 'Y' ;

while (another == 'Y')

{

                    system("cls");

                    printf("=== Update Student Records in the Database ===");

                    printf("\n\n");

printf("\n");

                    printf("Enter Student ID Number      : ");

scanf("%s",&student_id);

rewind (fp) ;

while (fread( &info, recsize, 1, fp ) == 1 )

{

                    if ( strcmp ( info.stud_id, student_id ) == 0 )

                    {

                        printf("Enter Student ID       : ");

                        scanf("%s",info.stud_id);

                        printf("Enter Student Name     : ");

                        fflush(stdin);

                        gets(info.name);

                        printf("Enter Course           : ");

                        fflush(stdin);

                        gets(info.course);

                        printf("Enter Gender M/F       : ") ;

                        info.sex = toupper(getche());

                        printf("\n");

                        printf("Enter Age              : ") ;

                        scanf("%d",&info.age);

                        printf("Enter Home Address     : ");

                        fflush(stdin);

                        gets(info.address);

                        printf("Enter Email Address    : ");

                        scanf("%s",&info.email);

                        printf("Enter Subject          : ");

                        fflush(stdin);

                        gets(info.subject);

                        printf("Enter Prelim Grade     : ");

                        scanf("%f",&info.prelim);

                        printf("Enter Midtem Grade     : ");

                        scanf("%f",&info.midterm);

                        printf("Enter Endterm Grade    : ");

                        scanf("%f",&info.endterm);

                        printf("\n");

                        info.final_grade = (info.prelim * 0.20) + (info.midterm * 0.30) + (info.endterm * 0.50);

                        printf("\n Final Grade         : %2.0f",info.final_grade);

                        printf("\n\n");

                        printf("Records has been updated in the database.");

                        printf("\n\n");

                        system("pause");

fseek ( fp, - recsize, SEEK_CUR ) ;

fwrite ( &info, recsize, 1, fp ) ;

break ;

                    }

                }

             if (strcmp(info.stud_id,student_id) != 0 )

                    {

                        printf("\n\n");

                        printf("No Record in the Database.");

                        printf("\n");

                        system("pause");

                        break;

                    }

                    printf("\n\n");

printf ( "\nUpdate Another Record (Y/N) : " ) ;

fflush (stdin) ;

another = toupper(getche());

}


break ;


case '4' :

                rewind (fp);


another = 'Y' ;

while ( another == 'Y' )

{

                    system("cls");

                    printf("=== Search Student Records in the Database ===");

                    printf("\n\n");

    printf("Enter Student ID       : ");

scanf("%s",&student_id);

printf("\n");

rewind (fp) ;

while ( fread( &info, recsize, 1, fp ) == 1 )

{

if (strcmp(info.stud_id,student_id) == 0 )

{

                            printf("\n");

                            printf("\n ID Number           : %s",info.stud_id);

                            printf("\n Name                : %s",info.name);

                            printf("\n Course              : %s",info.course);

                            printf("\n Gender              : %c",info.sex);

                            printf("\n Age                 : %d",info.age);

                            printf("\n Home Address        : %s",info.address);

                            printf("\n Email Address       : %s",info.email);

                            printf("\n Subject             : %s",info.subject);

                            printf("\n Prelim Grade        : %2.0f",info.prelim);

                            printf("\n Midterm Grade       : %2.0f",info.midterm);

                            printf("\n Endterm Grade       : %2.0f",info.endterm);

                            printf("\n");

                            info.final_grade = (info.prelim * 0.20) + (info.midterm * 0.30) + (info.endterm * 0.50);

                            printf("\n Final Grade         : %2.0f",info.final_grade);

                            printf("\n\n");

                            system("pause");

                            break;

                }

}


            if (strcmp(info.stud_id,student_id) != 0 )

                    {

                        printf("\n\n");

                        printf("No Record in the Database.");

                        printf("\n\n");

                        system("pause");

                        break;

                    }

                    printf("\n\n");

printf ( "\n Search Another Student Record (Y/N) : " ) ;

fflush (stdin) ;

another = toupper(getche());

}

break ;


case '5' :

another = 'Y' ;

while ( another == 'Y' )

{

system("cls");

flag=0;

                    printf("=== Delete Student Records in the Database ===");

                    printf("\n\n");

printf("Enter Student ID       : ");

scanf("%s",&student_id);

printf("\n");


    ft = fopen ("TEMP.DAT", "wb") ;

rewind (fp) ;

while (fread (&info, recsize, 1, fp) == 1 )

{

if (strcmp(info.stud_id, student_id) != 0 )

fwrite(&info, recsize, 1, ft ) ;

else

                            flag=1;

}


fclose (fp) ;

fclose (ft) ;

remove ("BIODATA.DAT") ;

rename ("TEMP.DAT", "BIODATA.DAT") ;

fp = fopen ("BIODATA.DAT", "rb+") ;


                  if(flag==1) {

                        printf("\n\n");

                        printf("Record Successfully Deleted From the Database.");

                        printf("\n\n");

                        system("pause");

                    }


else if (flag!=1) {

                        printf("\n\n");

                        printf("Sorry Record Not Found in the Database.");

                        printf("\n\n");

                        system("pause");


                    }


                        printf("\n\n");

                        printf( "Delete Another Record (Y/N) " ) ;

                        fflush ( stdin ) ;

                        another = toupper(getche());

}

break ;


case '6' :

fclose (fp) ;

printf("\n\n");

/* textcolor(YELLOW+BLINK); */

printf("             Thank You For Using This Program !!!   ");

printf("\n\n");

system("PAUSE");

exit(0);

}

}

} /* End of Code */


Multiplication Table in C

 A program that I wrote using C language to create a multiplication table.

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 at 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

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.



Program Listing


/* 

   multiplication_table.c

   Mr. Jake Rodriguez Pomperada, MAED-IT, MIT

   www.jakerpomperada.com , www.jakerpomperada.blogspot.com

   jakerpomperada@gmail.com

   Bacolod City, Negros Occidental Philippines 

   November 30, 2020   Monday  2:28 PM

*/



#include <stdio.h>



int main()

{

    int row=0,column=0;


    printf("\n\n");

    printf("\t     MULTIPLICATION TABLE IN C\n\n");

    

    for(row=1; row<=12; row++){

        for(column=1; column<=12; column++){

            printf("%4d", row*column);

    }

    printf("\n");

    }

    printf("\n\n");

    printf("\t\tEnd of Program");

    printf("\n\n");

}


Even Numbers Using For Loop Skip No. 4,8 and 28 in C++

 Machine Problem in C++ 

Using for loop statement write a C++ program that  will display numbers 0,2,4,6,8..30 and skip 

numbers 4,8,28.

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 at 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

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

/*

Machine Problem in C++


Using for loop statement write a C++ program that 

will display numbers 0,2,4,6,8..30 and skip 

numbers 4,8,28.

*/


// continue.cpp

// Mr. Jake Rodriguez Pomperada, MAED-IT, MIT

// www.jakerpomperada.com , www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


#include <iostream>

#include <iomanip>


using namespace std;


int main()

{

     

      int a=0;

         

      cout <<"\n\n";

      cout <<"\tEven Numbers Using For Loop Skip No. 4,8 and 28 in C++";

      cout <<"\n\n";

      cout <<"\t";

      for (a=0; a<=30; a+=2) {

  

if (a== 4 ||  a== 8 ||  a== 28)

        {

       

      continue;

       }

   cout <<setw(4) << a <<setw(4);     

      }    

  cout << "\n\n";

      cout << "\tEnd of Program";

      cout << "\n\n";

}


Sunday, November 29, 2020

Paano gumamit ng variables sa C++

How to create a variables in C++

 In this tutorial I will show you how to declare and use variables in C++ programs.

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 at 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

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.


Program Listing

// variables.cpp

// Mr. Jake Rodriguez Pomperada, MAED-IT, MIT

// www.jakerpomperada.com , www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


#include <iostream>


using namespace std;


int main()

{

    int age = 32;

float a = 15.75;

double b = 1234.45;

string title = "Welcome to C++";

char reply = 'Y';

bool answer = 1;

cout << "\tAge is " << age << "\n";

cout << "\t The value of variable A is " << a <<"\n";

cout << "\t The value of variable B is " << b <<"\n";

cout << "\t" << title <<"\n"; 

cout << "\t Reply " << reply << "\n";

cout << "\t Answer " << answer;

}

April Boy Regino Pumanaw na

Friday, November 27, 2020

Student Average Grade in C++

 In this tutorial I will teach you how to solve the student average grade using C++ programming language.

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 at 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

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

// student_average_grade.cpp

// Mr. Jake Rodriguez Pomperada,MAED-IT,MIT

// www.jakerpomperada.com / www.jakerpomperada.blogpspot.com

// jakerpomperada@gmail.com

// November 27, 2020  Friday

// Bacolod City, Negros Occidental Philippines


#include <iostream>

#include <iomanip>

#include <ctype.h>


using namespace std;



int main()

  {

 

double first_grade=0.00;

  double second_grade=0.00;

  double third_grade=0.00;

  double average_grade=0.00;

  string student_name,remarks;

 

  char reply='Y';

 

  do {

  

  std::cout << "\n\n";

  std::cout << "\tStudent Average Grade in C++";

  std::cout << "\n\n";

  cin.ignore(256, '\n');

std::cout << "\tEnter Student Name : ";

  std::getline (std::cin,student_name);

    std::cout << "\tEnter 1st Grade : ";

  cin >> first_grade;

  std::cout << "\tEnter 2nd Grade : ";

  cin >> second_grade;

  std::cout << "\tEnter 3rd Grade : ";

  cin >> third_grade;

 

  

    average_grade = (first_grade 

                 + second_grade 

+ third_grade)/3;

 

  if (average_grade >= 75) {

 

  remarks = "Passed";

    } else {

    remarks = "Failed";

}

std:: cout << setprecision(2) <<fixed <<"\n";

std::cout << "\tThe Average of " <<student_name

      << " is " <<average_grade;

std::cout <<"\n\n";      

std::cout << "\tRemarks : " << remarks;

std::cout << "\n\n";

std::cout << "\tWould You Like to Try Again? (Y for Yes / N for No) ";

cin >> reply;  

} while (toupper(reply) == 'Y');

std::cout << "\n\n";

  std::cout << "\tEnd of Program";

 

  }


Thursday, November 26, 2020

Basic Math Operations in C#

Basic Math Operations in C#

 In this tutorial I will show you how to write a program that will ask the user to give two numbers and then the program will compute the sum, difference, product, and  quotient of the two given number using C# 

 programming language.


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 at 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

If you like this video please click the LIKE button,SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

Form1.cs


using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;


namespace Product_of_Two_Numbers

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }


        private void button1_Click(object sender, EventArgs e)

        {

            int a, b, sum, difference, multiply,quotient ;

            a = Convert.ToInt32(textBox1.Text);

            b = Convert.ToInt32(textBox2.Text);

            sum = a + b;

            difference = a - b;

            multiply = a * b;

            quotient = a / b;

            textBox3.Text = sum.ToString();

            textBox4.Text = difference.ToString();

            textBox5.Text = multiply.ToString();

            textBox6.Text = quotient.ToString();

        }


        private void button2_Click(object sender, EventArgs e)

        {

            textBox1.Text = "";

            textBox2.Text = "";

            textBox3.Text = "";

            textBox4.Text = "";

            textBox5.Text = "";

            textBox6.Text = "";

            textBox1.Focus();

        }


        private void button3_Click(object sender, EventArgs e)

        {

            Application.Exit();

        }

    }

}


Divisible By 5 in C++

Divisible By 5 in C++

  In this tutorial, I will show you how to write a program that will input a number and will print “Divisible” if the number is divisible by 5, otherwise print “Not Divisible” using a C++ programming language.

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 at 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

If you like this video please click the LIKE button ,SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

divisible.cpp

// divisible.cpp

// Jake Rodriguez Pomperada,MAED-IT, MIT

// November 26, 2020   Thursday

// www.jakerpomperada.com , www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com


#include <iostream>



int main(int argc, char **argv)

{

    int num=0;

    

    std::cout << "\n\n";

    std::cout << "\tDivisible By 5 in C++";

    std::cout << "\n\n";

    std::cout << "\tEnter a number: ";

    std::cin >> num;

    std::cout << "\n";

    if (num % 5 == 0)

        std::cout << "\tThe given number "

          <<num << " is divisible by 5.\n";

    else

        std::cout << "\tThe given number "

          << num << " is not divisible by 5.\n";

    std::cout << "\n\n";

    std::cout << "\tEnd of Program";

    std::cout << "\n\n";

}