Wednesday, September 28, 2022

Leap Year Using If Else If in C++

Leap Year Using If Else If in C++

 A program to ask the user to give year and then the program will check if the given year is a leap year or not using if else if in 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.

 

 




 

Program Listing

 
#include <iostream>

using namespace std;

int main()
{
  int year=0;

  cout << "\n\n";
  cout<<"\tLeap Year Using If Else If in C++\n\n";
  cout<<"\tWhat is the year? ";
  cin>>year;
  cout << "\n\n";

  if ( year%400 == 0)
    cout<<"\tThe given year " <<year<<" is a leap year.\n";
  else if ( year%100 == 0)
    cout<<"\tThe given year " <<year<<" is not a leap year.\n";
  else if ( year%4 == 0 )
    cout <<"\tThe given year "<<year<<" is a leap year.\n";
  else
    cout << "\tThe given year "<<year<<" is not a leap year.\n";
  cout << "\n\n";
  cout <<"\tEnd of Program";
  cout << "\n\n";
}

Tuesday, September 27, 2022

Display Array of Strings in C#

 A simple program to display array of string 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.

 



 Program Listing


using System;


/* string.cs
Author : Jake Rodriguez Pomperada, MAED-IT, MIT
Tools : C#
Date : September 27, 2022 Tuesday 6:44 PM
Website : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
Email : jakerpomperada@gmail.com
*/

public class average
{
public static void Main()
{
int[] arr = new int[5];
Console.Write("\n\n");
Console.Write("\t---------------------------------------------------------");
Console.Write("\n\t\t\tDisplay Array of Strings in C#\n");
Console.Write("\t---------------------------------------------------------\n\n");
string[] subjects = new string[5];
subjects[0] = "English";
subjects[1] = "Math";
subjects[2] = "Filipino";
subjects[3] = "Science";
subjects[4] = "Physical Education";
for (int i = 0; i < arr.Length; i++)
{
string element = subjects[i];
Console.Write("\t{0}\n ",element);
}

Console.Write("\n");
Console.Write("\tEnd of Program");
Console.Write("\n");
}
}


 

Average Grade, Highest Grade and Lowest Grade in C#

Average Grade, Highest Grade and Lowest Grade in C#

 Machine Problem

Write a C# program that will input your grades in different subjects last year

and display the average grade, highest grade and lowest grade.

Sample Output:

Enter grade in English: 89

Enter grade in Math: 91

Enter grade in Filipino: 92

Enter grade in Science: 88

Average: 90

Lowest Grade: 88

Highest Grade:92

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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing

using System;


/* average.cs
Author : Jake Rodriguez Pomperada, MAED-IT, MIT
Tools : C#
Date : September 27, 2022 Tuesday 3:58 PM
Website : www.jakerpomperada.com
Email : jakerpomperada@gmail.com
*/

public class average
{
public static void Main()
{
int[] arr = new int[4];
int i=0;
int average = 0;
int total_grades = 0;

Console.Write("\n\n");
Console.Write("\t---------------------------------------------------------");
Console.Write("\n\tAverage Grade, Highest Grade and Lowest Grade in C#\n");
Console.Write("\t---------------------------------------------------------\n\n");
string[] subjects = new string[4];
subjects[0] = "English";
subjects[1] = "Math";
subjects[2] = "Filipino";
subjects[3] = "Science";
for (i = 0; i < arr.Length; i++)
{
string element = subjects[i];
Console.Write("\tEnter Grade in {0} : ",element);
arr[i] = Convert.ToInt32(Console.ReadLine());
total_grades+= arr[i];
average = total_grades/4;
}

int Highest_Grade = arr[0];
int Lowest_Grade = arr[0];

for(i=0; i<4; i++)
{
if(arr[i]> Highest_Grade)
{
Highest_Grade = arr[i];
}


if(arr[i]<Lowest_Grade)
{
Lowest_Grade = arr[i];
}
}
Console.Write("\n");
Console.Write("\tAverage : {0} \n",average);
Console.Write("\tLowest Grade : {0} \n",Lowest_Grade);
Console.Write("\tHighest Grade : {0} \n",Highest_Grade);
Console.Write("\n");
Console.Write("\tEnd of Program");
Console.Write("\n");
}
}


 

Monday, September 26, 2022

Input and Display Numbers Using Arrays in C++

Input and Display Numbers Using Arrays in C++

 A program to ask the user to give five numbers and stored in arrays and display the five numbers on the screen 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <iostream>
#include <iomanip>

using namespace std;

int main()
    {
    int i=0, arr[5],c=0;
    cout <<"\n\n";
    cout <<"\tInput and Display Numbers Using Arrays in C++";
cout <<"\n\n";
    for(i=1;i<=5;i++)
    {
        cout <<"\tGive value in item " << i << " : ";
        cin >> arr[i];
       
    }
    cout <<"\n\n";
    cout <<"\tList of Input Numbers\n\n\n";
    cout <<"\t";
for(i=1;i<=5;i++)
    {
  
           cout <<arr[i] <<setw(5);
        
    }
    cout <<"\n\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n";

Greater Than 15 in C++

Greater Than 15 in C++

 A program that will ask the user to give five numbers and then the program will display the numbers that has a higher numerical value than 15 using for loop statements, if else statement and arrays in 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <iostream>
#include <iomanip>

using namespace std;

int main()
    {
    int i=0, arr[5],c=0;
    int counter=0;
    cout <<"\n\n";
    cout <<"\tGreater Than 15 in C++";
cout <<"\n\n";
    for(i=1;i<=5;i++)
    {
        cout <<"\tGive value in item " << i << " : ";
        cin >> arr[i];
       
    }
    cout <<"\n";
    cout <<"\t";
for(i=1;i<=5;i++)
    {
   if (arr[i] >= 15) {
           cout <<arr[i] <<setw(5);
           counter+=1;
        }
}
cout <<"\n\n";
cout <<"\tThe total numbers greater than 15 are "
  << counter << ".\n";
    cout <<"\n";
    cout <<"\tEnd of Program";
    cout <<"\n";

Sunday, September 25, 2022

Upper Case A String in C#

Upper Case A String in C#

 A simple program to convert lower case string into upper case string format 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
           
            string str1 = "information technology";

            string convert_upper = str1.ToUpper();

            Console.WriteLine("\n\n");
            Console.WriteLine("\t" +convert_upper);
            Console.ReadKey();
        }
    }
}

Celsius To Fahrenheit in TypeScript

Celsius To Fahrenheit in TypeScript

 Machine Problem

Write a program that will convert the given Celsius value of 100 into Fahrenheit equivalent, and display the results on the screen.

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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.



Program Listing


/* celsius_fahrenheit.ts
   Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   July 13, 2022  11:00 AM   Wednesday
   Bacolod City, Negros Occidental
*/

var  celsius = 100;

// Converting Fahrenheit To Celsius
 let fahrenheit = celsius * 9/5 + 32


// This code will display two decimal places
let round_result = fahrenheit.toFixed(2);

console.log();
console.log("Celsius To Fahrenheit in TypeScript\n");
console.log(celsius + "\xB0C is equal to " + round_result + "\xB0F.\n");
console.log("End of Program\n");

Count Number of Words in a String in C

Count Number of Words in a String in C

  A simple program to ask the user to give a sentence and then the program will count the number of words in the given sentence in 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <stdio.h>

#include <string.h>



int main()

{

    char given_string[100];

    int count = 0, i=0;

printf("\n\n");

printf("\tCount Number of Words in a String in C\n\n");

printf("\tGive a String : ");

    gets(given_string);

    

    for (i = 0; given_string[i] != '\0';i++)

    {

        if (given_string[i] == ' ')

            count++;    

    }

    printf("\n\n");

    printf("\tNumber of words in the string are: %d",count + 1);

    printf("\n\n");

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

}