This file contains 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
algoritmo "metroParaCentimetros" | |
// Autor : Samuel T. C. Santos | |
// Data : 16/06/2014 | |
// Seção de Declarações | |
// Função : Faça um Programa que converta metros para centímetros. | |
var | |
metros, centimetros : real | |
inicio | |
// Seção de Comandos |
This file contains 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
# -*- coding: utf-8 -*- | |
''' | |
Autor: Samuel T. C. Santos | |
Data: 09.11.2014 | |
''' | |
metros = float (input('Metros? ')) | |
centimetros = metros * 100; |
This file contains 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
# -*- coding:utf-8 -*- | |
#------------------------------------------ | |
# Autor: Samuel T. C. Santos | |
# Data: 07/05/2014 | |
# python version-2.x | |
#------------------------------------------ | |
distancia = raw_input("Distancia [km]? ") | |
tempo = raw_input("Tempo [hr]? ") |
This file contains 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
algoritmo "bissexto" | |
// Função : Bissexto - Um ano é bissexto se ele for divisível por 400 ou se ele | |
// for divisível por 4 e não por 100. | |
// Bissexto: 1980, 1984, 1988, 1992, 1996 e 2000. | |
// 1900 não foi bissexto, mas 1600 foi | |
// Autor : Samuel T. C. Santos | |
// Data : 18/02/2015 | |
// Seção de Declarações | |
var | |
ano : inteiro |
This file contains 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
# -*- coding:utf-8 -*- | |
#------------------------------------------ | |
# Autor: Samuel T. C. Santos | |
# Data: 07/05/2014 | |
# python version-2.x | |
#------------------------------------------ | |
base = raw_input("base? ") | |
altura = raw_input("altura? ") | |
area = float(base) * float(altura) |
This file contains 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
package adt.list; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertTrue; | |
import org.junit.Before; | |
import org.junit.Test; | |
/** | |
* Testing the ArrayList implementation. |
This file contains 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
algoritmo "farenheitCelsius" | |
// Função : Faça um Programa que peça a temperatura em graus Farenheit, | |
// transforme e mostre a temperatura em graus Celsius. | |
// C = (5 * (F-32) / 9). | |
// Autor : Samuel T. C. Santos | |
// Data : 17/11/2014 | |
// Seção de Declarações | |
var | |
celsius , farenheit : real |
This file contains 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
import pyautogui | |
class Robot: | |
''' A base class to any robot. ''' | |
def __init__(self): | |
''' Initializing the robot ''' | |
self.pyautogui = pyautogui | |
self.ONE_SECOND = 1 | |
self.MAX_RETRIES = 5 |
This file contains 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
program alg004; | |
{ | |
#-------------------------------------------# | |
# Autor: Samuel T. C. Santos # | |
# Data: 24-04-2014 # | |
# Free Pascal Compiler # | |
#-------------------------------------------# | |
} | |
var | |
altura, massa, imc: real; |
This file contains 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
<html> | |
<head> | |
<title>Alg002</title> | |
<meta charset="utf-8"> | |
<script type="text/javascript"> | |
var dolares = 0; | |
function conversor(){ | |
//acessar o que foi digitado | |
var reais = document.getElementById('reais').value; |
NewerOlder