Learn Computer Programming Free from our source codes in my website.
Sponsored Link Please Support
https://www.techseries.dev/a/27966/qWm8FwLb
https://www.techseries.dev/a/19181/qWm8FwLb
My Personal Website is http://www.jakerpomperada.com
Email me at jakerpomperada@gmail.com and jakerpomperada@yahoo.com
Friday, November 26, 2021
Temperature Listing in C++
Machine Problem in C++
Write a program in C++ to converts the given temperature measurements in Celsius to Fahrenheit. Use an looping statement, and an array for this program.
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
// temperature.cpp
// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.blogspot.com and www.jakerpomperada.com
// jakerpomperada@gmail.com
/* Machine Problem in C++
Write a program in C++ to converts the given
temperature measurements in Celsius to Fahrenheit.
Use an looping statement, and an array for this
program.
*/
#include <iostream>
using namespace std;
int main()
{
float celsius[] = {35.2, 26.3, 34.78, 19.34, 33.7};
float fahrenheit=0.00;
cout <<"\n\n";
cout << "\tThe temperature measurements in Celsius are:\n\n";
cout << "\t";
for (int a=0; a<5; a++) {
cout <<a[celsius] << " ";
}
cout <<"\n\n";
cout << "\tThe temperature measurements in Fahrenheit are:\n\n";
cout << "\t";
for (int a=0; a<5; a++) {
fahrenheit = (a[celsius] * 9.0) / 5.0 + 32;
cout <<fahrenheit<< " ";
}
cout <<"\n\n";
cout << "\tEnd of Program";
cout <<"\n\n";
}
Thursday, November 25, 2021
Lower Case in C++
Machine Problem in C++
/*
* 2.Summative Assessment 2
* Create a C++ program which converts a given string to
* lowercase.
* The output should be like the following:
* Original String :
* I LOVE C++ PROGRAMMING!
* String in lowercase :
* i love c++ programming!
* CCS0007 Computer Programming 2
*/
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 <iostream>
#include <cstring>
#include <cctype>
using namespace std ;
int main ()
{
char arr[] = "I LOVE C++ PROGRMlMING!";
cout << "Original String:\n";
cout << arr << "\n";
for (int i = 0; arr[i] != '\0'; ++i)
arr[i] = tolower(arr[i]);
cout << "String in Lowercase:\n";
cout << arr << "\n";
cout << "\n\nCCS0007 Computer Programming 2" << endl ;
return 0 ;
}
Wednesday, November 24, 2021
Rain Drops Checker in C++
Machine Problem in C++
A weather station validates the rain into its critical level by its raindrops fell. Make program that will input number of raindrops fell, Check if raindrops fell is equal to 10,000 then display "CRITICAL RAIN". Your program will be terminated if you input zero in the raindrops fell.
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 weather station validates the rain into its critical
level by its raindrops fell. Make program that will
input number of raindrops fell, Check if raindrops
fell is equal to 10,000 then display "CRITICAL RAIN".
Your program will be terminated if you input zero in
the raindrops fell.
*/
#include <iostream>
int main()
{
int raindrops=0;
do {
std::cout << "\n\n";
std::cout << "\tRain Drops Checker in C++";
std::cout <<"\n\n";
std::cout <<"\tEnter number of raindrops fell: ";
std:: cin >>raindrops;
if (raindrops==0) {
break;
}
if (raindrops <= 10000) {
std::cout <<"\n";
std::cout <<"\tCRITICAL RAIN";
} else {
std::cout <<"\n";
std::cout <<"\tNORMAL RAIN";
}
} while (raindrops!=0);
std::cout << "\n\n";
std::cout << "\tEnd of Program";
std::cout <<"\n";
}
Subtract Two Numbers Without Using Subtraction Operator in C++
A simple program that I wrote using C++ programming language that will ask the user to give two number and then the program will subtract the difference of two numbers without using subtraction operator.
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
/* Subtract two numbers without using subtraction operator */
#include <iostream>
int main(){
int x=0,y=0,sum=0;
std::cout <<"\n\n";
std::cout <<"\tSubtract Two Numbers Without Using Subtraction Operator in C++";
std::cout <<"\n\n";
/* Input Here */
std::cout <<"\tGive Two Numbers : ";
std::cin >> x >> y;
/* Computation Here */
sum = x + ~y + 1;
/* Output */
std::cout <<"\n\n";
std::cout <<"\tDifference between " << x <<
" and " << y << " is " << sum << ".";
std::cout <<"\n\n";
std::cout <<"\tEnd of Program";
std::cout <<"\n\n";
}
Tuesday, November 23, 2021
Subtract Two Numbers Without Using Subtraction Operator in C
A simple program that I wrote using C programming language that will ask the user to give two number and then the program will subtract the difference of two numbers without using subtraction operator.
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
/* Subtract two numbers without using subtraction operator */
#include <stdio.h>
int main(){
int x=0,y=0,sum=0;
printf("\n\n");
printf("\tSubtract Two Numbers Without Using Subtraction Operator in C");
printf("\n\n");
/* Input Here */
printf("\tGive Two Numbers : ");
scanf("%d%d",&x,&y);
/* Computation Here */
sum = x + ~y + 1;
/* Output */
printf("\n\n");
printf("\tDifference between %d and %d is %d.",x,y,sum);
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
}
Monday, November 22, 2021
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
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");
}
Sunday, November 21, 2021
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");
}