This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A palindromic number is a number (such as 626) that remains the same when its digits are reversed. | |
The function returns true if a given number is a palindrome, and false, if it is not. | |
The code in main works and results in the expected output. | |
*/ | |
#include <iostream> | |
using namespace std; | |
bool isPalindrome(int x, int n) { | |
//complete the function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* You need to make a countdown app. | |
Given a number N as input, output numbers from N to 1 on separate lines. | |
Also, when the current countdown number is a multiple of 5, the app should output "Beep". */ | |
#include <iostream> | |
using namespace std; | |
int main() { | |
//Variable | |
int number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This program is a Body Mass Index (BMI), Basal Metabolic Rate (BMR) and Active Metabolic Rate (AMR) calculator. | |
--------------------------------------------------------------------------- | |
BMI | |
--------------------------------------------------------------------------- | |
The formula used to calculate the BMI is BMI = weigh * (703 / (height^2)). | |
BMI Categories: | |
- Underweight = <18.5. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This program converts temperature from Fahrenheit (F) to Celcius (C) and viceversa. | |
The formulas used are the following: | |
- Celcius to Fahrenheit: C = (F - 32)/1.8. | |
- Fahrenheit to Celcius: F = (C * 1.8) - 32. | |
*/ | |
#include <iostream> | |
#include <algorithm> //Tolower and Toupper | |
#include <cctype> //Tolower and Toupper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdlib> | |
#include <fstream> | |
#include <ctime> | |
#include <string> | |
using namespace std; | |
int main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
The program asks you the currency of your money, the currency to which you would like to change and your money amount. | |
The currency exchange used is: 1€ / 1,17$ - 1€ / 0.91 £ - 1,28 $ / 1 €. | |
*******************************************************************************/ | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
The program asks you the currency of your money, the currency to which you would like to change and your money amount. | |
The currency exchange used is: 1€ / 1,17$ - 1€ / 0.91 £ - 1,28 $ / 1 €. | |
*******************************************************************************/ | |
#include <iostream> | |
using namespace std; | |
int main () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Normal Version | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
cout <<"Hello World"; | |
return 0; | |
} |