Monday, November 22, 2021

Beverage Selection in C++

Beverage Selection in C++

 Machine Problem in C++

A small store only sells Coke 1.5 liters and San Miguel 1 liter, Make a program that will input type of item and number of item, C-for Coke with a price of 65.00  and S- for San Miguel with a price of 120.00.  Compute and display the total amount, and your program will be terminated if you input T in the type of item.

 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.





Program Listing

/*


Author : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

www.jakerpomperada.blogspot.com and www.jakerpomperada.com

jakerpomperada@gmail.com

Bacolod City, Negros Occidental Philippines.


Machine Problem in C++


A small store only sells Coke 1.5 liters and

San Miguel 1 liter, Make a program that will input type 

of item and number of item, C-for Coke with a price of 65.00 

and S- for San Miguel with a price of 120.00. 

Compute and display the total amount, and your 

program will be terminated if you input T in the type of item.


*/


#include <iostream>

#include <cctype>


int main()

{

char select_drinks,ch;

double compute=0.00, qty=0.00;

   

do {


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

std::cout << "\tBeverage Selection in C++\n";

std::cout <<"\n";

std::cout <<"\tC-for Coke P65.00\n";

std::cout <<"\tS-for San Miguel P120.00\n";

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

std:: cin >> select_drinks;

ch = toupper(select_drinks);

 

if (ch=='T') {

break; 

}

 

if (ch=='C') {

std::cout <<"\n";

std::cout <<"\tHow Many Quantity of Coke P65.00 : ";

std::cin >> qty;

compute = (qty * 65);

std::cout <<"\n";

std::cout  <<"\tTotal Quantity of  Coke P65.00 : " << qty <<"\n";

std::cout <<"\tThe Total Amount is PHP " << compute <<".";

} else if  (ch=='S') {

std::cout <<"\n";

std::cout <<"\tHow Many  Quantity of San Miguel P120.00 : ";

std::cin >> qty;

compute = (qty * 120);

std::cout <<"\n";

std::cout  <<"\tTotal Quantity of San Miguel P120.00 : " << qty <<"\n";

std::cout <<"\tThe Total Amount is PHP " << compute <<".";

}


} while (ch!='T');

  std::cout << "\n";

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

std::cout <<"\n";

}

Student Year Level in C

Student Year Level in C

 Machine Problem in C

Write a  program to display the high school level of  a student, based on its year-entry. For example, 

the year-entry 1 means the student is a freshman,  2 for sophomore, and so on. Here are the given criteria:

Year-entry number                                 High - School Level

1 Freshman

2 Sophomore

3 Junior

4 Senior

Other entry no. "Out-of-School"

 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.





Program Listing

year_level.c

/*

Author : Jake Rodriguez Pomperada, MAED-IT, MIT

www.jakerpomperada.com and www.jakerpomperada.blogspot.com

jakerpomperada@gmail.com

Bacolod City Negros Occidental Philippines


Machine Problem in C


Write a  program to display the high school level of 

a student, based on its year-entry. For example, 

the year-entry 1 means the student is a freshman,

 2 for sophomore, and so on. Here are the given criteria:


Year-entry number              High - School Level


1 Freshman

2 Sophomore

3 Junior

4 Senior


Other entry no. "Out-of-School"


*/


#include <stdio.h> 

  

main()

{

    int num;

   

   printf("\n");

   printf("\tStudent Year Level in C");

   printf("\n\n");

   printf("\tEnter year-entry number: ");

   scanf("%d",&num);

   

   printf("\n");

   if (num==1)

        printf("\t You Belong To Freshmen.");

else if (num==2)

      printf("\t You Belong To Sophomore.");

else if (num==3)

      printf("\t You Belong To Junior.");

else if  (num==4)

      printf("\t You Belong To Senior.");

else 

      printf("\t Out-of-School");

   printf("\n\n");

   printf("\tEnd of Program");

   printf("\n"); 

}




How To Stop Windows 10 Updates

Sunday, November 21, 2021

Addition of Three Numbers Using C in Linux

Addition of Three Numbers in C Using Linux

 A simple program to demonstrate the addition of three numbers using C language in Linux Mint operating system.

 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.



Program Listing

#include <stdio.h>

int main(){
    int a=0,b=0,c=0, sum=0;

    printf("\n\n");
    printf("\tAddition of Three Numbers in C using Linux");
    printf("\n\n");
    printf("\tEnter three numbers : ");
    scanf("%d%d%d",&a,&b,&c);
    sum = (a+b+c);
    printf("\n");
    printf("\tThe sum of %d, %d, and %d is %d.",a,b,c,sum);
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n");

}





My Review on Linux Mint 20 Operating System

Linked List in C++

Linked List in C++

Linked List in C++

 A linked list program that I wrote 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.





Program Listing

#include <cstddef>

#include <iostream>


using namespace std;


class Node {

    public:

        int data;

    Node * next;

};


void print_list(Node * n) {


    while (n != NULL) {

        cout <<"\t" << n->data << "\n";

        n = n->next;

    }

}


int main() {

    Node * head = NULL;

    Node * second = NULL;

    Node * third = NULL;

    Node * fourth = NULL;

    Node * fifth = NULL;

    Node * sixth = NULL;


    head = new Node();

    second = new Node();

    third = new Node();

    fourth = new Node();

    fifth = new Node();

    sixth = new Node();



    head->data = 10;

    head->next = second;


    second->data = 20;

    second->next = third;


    third->data = 30;

    third->next = fourth;


    fourth->data = 40;

    fourth->next = fifth;


    fifth->data = 50;

    fifth->next = sixth;


    sixth->data = 60;

    sixth->next = NULL;


    cout <<"\n\n";

    cout <<"\tLinked List in C++\n\n";

    print_list(head);

    cout <<"\n\n";

    cout <<"\tEnd of Program";

    cout <<"\n";

}

Saturday, November 20, 2021

Mobile Service Provider in C++

Mobile Service Provider in C++

 Machine Problem in C++

Make a program that will input type of network provider. 

A - for Smart and Display "SMART USER". 

B- for Globe Display "GLOBE USER" and C-for Sun Display "SUN USER". 

Your program will be terminated when you input Z.

 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.




Program Listing


/*


Author : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

www.jakerpomperada.blogspot.com and www.jakerpomperada.com

jakerpomperada@gmail.com

Bacolod City, Negros Occidental Philippines.


Machine Problem in C++


3. Make a program that will input type of network provider. 

A - for Smart and Display "SMART USER". 

B- for Globe Display "GLOBE USER" and C-for Sun Display "SUN USER". 

Your program will be terminated when you input Z.


*/


#include <iostream>

#include <cctype>


int main()

{

char select_sim,ch;

   

do {


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

std::cout << "\tMobile Service Provider in C++\n";

std::cout <<"\n";

std::cout <<"\tA-for Smart\n";

std::cout <<"\tB-for Globe\n";

std::cout <<"\tC-for SUN";

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

std:: cin >> select_sim;

ch = toupper(select_sim);

 

     if (ch=='Z') {

break; 

}

 

if (ch=='A') {

std::cout <<"\n";

std::cout <<"\tSMART USER";

} else if  (ch=='B') {

std::cout <<"\n";

std::cout <<"\tGLOBE USER";

} else if  (ch=='C') {

std::cout <<"\n";

std::cout <<"\tSUN USER";

} while (ch!='Z');

  std::cout << "\n";

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

std::cout <<"\n";

}




Friday, November 19, 2021

Area of the Circle Using Functions in VB.NET

Area of the Circle Using Functions in VB.NET

 A simple program to compute the are of the circle using functions in Microsoft Visual Basic NET.

 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.






Program Listing

Public Class Form1


    Dim area As Double

    Function Solve_Area(ByVal radius As Double) As Double


        radius = Single.Parse(Val(TextBox1.Text))


        area = Math.Round(3.14F * radius * radius, 2)


        Return area

    End Function


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        TextBox2.Text = Solve_Area(Val(TextBox1.Text))

    End Sub


    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click

        End

    End Sub


    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

        TextBox1.Text = ""

        TextBox2.Text = ""

        TextBox1.Focus()

    End Sub

End Class


Roman Numeral To Decimal in Java

Roman Numeral To Decimal in Java

 A simple program to ask the user to give roman numeral and then the program will convert the given roman numeral into decimal equivalent using Java 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.





Program Listing

import java.util.*;

import java.util.Scanner;  



class Roman_To_Decimal


public static int romanToInteger(String roman) 

 {

    Map<Character,Integer> numbersMap = new HashMap<>();

    numbersMap.put('I',1);

    numbersMap.put('V',5);

    numbersMap.put('X',10);

    numbersMap.put('L',50);

    numbersMap.put('C',100);   

    numbersMap.put('D',500);   

    numbersMap.put('M',1000);  

        

    int result=0;

        

    for(int i=0;i<roman.length();i++)

    {

      char ch = roman.charAt(i);      // Current Roman Character

      

      //Case 1

      if(i>0 && numbersMap.get(ch) > numbersMap.get(roman.charAt(i-1)))

      {

        result += numbersMap.get(ch) - 2*numbersMap.get(roman.charAt(i-1));

      }

      

      // Case 2: just add the corresponding number to result.

      else

        result += numbersMap.get(ch);

    }

        

    return result;

 }

 

  

 public static void main(String args[])

 {

 

Scanner input = new Scanner(System.in);  // Create a Scanner object

 

System.out.println("\n");

System.out.print("\t\tRoman Numeral To Decimal in Java");

System.out.println("\n");

System.out.print("\tGive Roman Numberal Value : ");


    String romanNumber = input.nextLine(); 


    int result = romanToInteger(romanNumber.toUpperCase());

   

    

   System.out.println();

   System.out.println("\tThe Roman Number is: "+romanNumber.toUpperCase());

   System.out.println();

   System.out.println("\tIts Decimal Value is: "+result);

   

   System.out.println();

   System.out.println("\tEnd of Program");

   System.out.println();

   input.close();

 }

}

 


Thursday, November 18, 2021

Student Age Determiner in C++

Student Age Determiner in C++

 A simple program to determine the average, maximum, and minimum age of the students in a class 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.



Program Listing


#include <cstdlib>

#include <iostream>


using namespace std;


int main(int argc, char *argv[])

{

           int age[5];

           int i,sum=0, avg=0;

           int max=0,min=100;

            cout << "\n\t===================================================";

            cout << "\n\t\t     STUDENT AGE DETERMINER 1.0";

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

            cout << "\n\t===================================================";

            cout << "\n\n";

            for(i=0;i<5;i++)

            {

                       cout << "Enter the age of the student  " << i+1 <<":";

                       cin >> age[i];

             }

            for(i=0;i<5;i++)

            {

                        sum=sum+age[i];


                        if(age[i]>max)


                        {


                            max=age[i];


                        }


                        if(age[i]<min)


                        {


                                    min=age[i];


                        }


            }


            avg=sum/5;

            cout << "\n";

            cout << " \n\t==========================";

            cout << " \n\t==== GENERATED REPORTS ===";

            cout << " \n\t==========================";

            cout << "\n\n";

            cout << "Average age of the students of the class : " << avg << endl;


            cout << "Maximum age of the student of the class : " << max << endl;


            cout << "Minimum age of the student of the class : " << min << endl;


        cout << "\n\n";

    system("PAUSE");

    return EXIT_SUCCESS;

}